User: hr Date: 2007-06-27 14:39:28+0000 Modified: dba/connectivity/source/inc/java/sql/JStatement.hxx
Log: INTEGRATION: CWS sdblogging (1.2.28); FILE MERGED 2007/04/11 08:55:23 fs 1.2.28.1: #i76119# added support for logging driver activities File Changes: Directory: /dba/connectivity/source/inc/java/sql/ ================================================= File [changed]: JStatement.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/inc/java/sql/JStatement.hxx?r1=1.2&r2=1.3 Delta lines: +12 -7 -------------------- --- JStatement.hxx 2007-01-15 13:37:56+0000 1.2 +++ JStatement.hxx 2007-06-27 14:39:26+0000 1.3 @@ -81,6 +81,8 @@ #include <comphelper/broadcasthelper.hxx> #endif +#include "java/sql/ConnectionLog.hxx" + namespace connectivity { @@ -126,6 +128,7 @@ protected: ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XStatement> m_xGeneratedStatement; java_sql_Connection* m_pConnection; + java::sql::ConnectionLog m_aLogger; ::rtl::OUString m_sSqlStatement; // Properties sal_Int32 m_nResultSetConcurrency; @@ -169,7 +172,9 @@ static jclass getMyClass(); // ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: - java_sql_Statement_Base( JNIEnv * pEnv, java_sql_Connection* _pCon ); + java_sql_Statement_Base( JNIEnv * pEnv, java_sql_Connection& _rCon ); + + sal_Int32 getStatementObjectID() const { return m_aLogger.getObjectID(); } // OComponentHelper virtual void SAL_CALL disposing(void); @@ -211,8 +216,8 @@ { friend class OSubComponent<OStatement_BASE2, java_sql_Statement_BASE>; public: - OStatement_BASE2(JNIEnv * pEnv, java_sql_Connection* _pCon ) : java_sql_Statement_Base( pEnv, _pCon ), - OSubComponent<OStatement_BASE2, java_sql_Statement_BASE>((::cppu::OWeakObject*)_pCon, this){} + OStatement_BASE2(JNIEnv * pEnv, java_sql_Connection& _rCon ) : java_sql_Statement_Base( pEnv, _rCon ), + OSubComponent<OStatement_BASE2, java_sql_Statement_BASE>((::cppu::OWeakObject*)(&_rCon), this){} // OComponentHelper virtual void SAL_CALL disposing(void); @@ -238,7 +243,7 @@ static jclass getMyClass(); // ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: - java_sql_Statement( JNIEnv * pEnv, java_sql_Connection* _pCon ) : OStatement_BASE2( pEnv, _pCon){}; + java_sql_Statement( JNIEnv * pEnv, java_sql_Connection& _rCon ) : OStatement_BASE2( pEnv, _rCon){}; virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); virtual void SAL_CALL acquire() throw(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
