User: ihi Date: 2007-11-21 15:07:43+0000 Modified: dba/connectivity/source/inc/java/sql/Connection.hxx
Log: INTEGRATION: CWS dba24c (1.15.34); FILE MERGED 2007/10/15 13:31:28 fs 1.15.34.1: #i82222# hold the driver's classes class loader as global reference, so we can put it in place as ContextClassLoader everytime a statement is executed File Changes: Directory: /dba/connectivity/source/inc/java/sql/ ================================================= File [changed]: Connection.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/inc/java/sql/Connection.hxx?r1=1.15&r2=1.16 Delta lines: +19 -2 -------------------- --- Connection.hxx 2007-06-27 14:38:25+0000 1.15 +++ Connection.hxx 2007-11-21 15:07:41+0000 1.16 @@ -55,6 +55,8 @@ #endif #include "java/sql/ConnectionLog.hxx" +#include "java/LocalRef.hxx" +#include "java/GlobalRef.hxx" namespace connectivity { @@ -75,6 +77,8 @@ // for this Connection const java_sql_Driver* m_pDriver; jobject m_pDriverobject; + jdbc::GlobalRef< jobject > + m_pDriverClassLoader; jclass m_Driver_theClass; ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > @@ -91,7 +95,11 @@ The new statement witgh unnamed parameters. */ ::rtl::OUString transFormPreparedStatement(const ::rtl::OUString& _sSQL); - void loadDriverFromProperties( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info,::rtl::OUString& _rsGeneratedValueStatement,sal_Bool& _rbAutoRetrievingEnabled,sal_Bool& _bParameterSubstitution,sal_Bool& _bIgnore); + + void loadDriverFromProperties( + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info + ); + protected: // statische Daten fuer die Klasse static jclass theClass; @@ -99,6 +107,7 @@ static void saveClassRef( jclass pClass ); virtual ~java_sql_Connection(); + public: static jclass getMyClass(); @@ -113,8 +122,16 @@ inline sal_Bool isIgnoreDriverPrivilegesEnabled() const { return m_bIgnoreDriverPrivileges;} + /** returns the instance used for logging events related to this connection + */ const java::sql::ConnectionLog& getLogger() const { return m_aLogger; } + /** returns the class loader which was used to load the driver class + + Usually used in conjunction with a ContextClassLoaderScope instance. + */ + const jdbc::GlobalRef< jobject >& getDriverClassLoader() const { return m_pDriverClassLoader; } + // OComponentHelper virtual void SAL_CALL disposing(void); // XInterface --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
