summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/java
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-21 14:07:41 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-21 14:07:41 +0000
commit2ddfe4bb2bed3bf1d72b1540be89b767162bf83f (patch)
treef8d78887412e7bc88a3f132e01e5f9a1aa884c0e /connectivity/source/inc/java
parent6f147d4a24a06f0874efb07179640941e14d57f0 (diff)
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
Diffstat (limited to 'connectivity/source/inc/java')
-rw-r--r--connectivity/source/inc/java/sql/Connection.hxx23
1 files changed, 20 insertions, 3 deletions
diff --git a/connectivity/source/inc/java/sql/Connection.hxx b/connectivity/source/inc/java/sql/Connection.hxx
index d42001e8dd..4c5a7d9d55 100644
--- a/connectivity/source/inc/java/sql/Connection.hxx
+++ b/connectivity/source/inc/java/sql/Connection.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: Connection.hxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 14:38:25 $
+ * last change: $Author: ihi $ $Date: 2007-11-21 15:07:41 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -55,6 +55,8 @@
#endif
#include "java/sql/ConnectionLog.hxx"
+#include "java/LocalRef.hxx"
+#include "java/GlobalRef.hxx"
namespace connectivity
{
@@ -75,6 +77,8 @@ namespace connectivity
// 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 @@ namespace connectivity
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 @@ namespace connectivity
static void saveClassRef( jclass pClass );
virtual ~java_sql_Connection();
+
public:
static jclass getMyClass();
@@ -113,8 +122,16 @@ namespace connectivity
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