#105213# insert parameter name substitution

This commit is contained in:
Ocke Janssen
2002-11-21 14:46:31 +00:00
parent 4252e83bce
commit d680556f78
4 changed files with 58 additions and 32 deletions

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: Connection.hxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: oj $ $Date: 2002-10-25 09:05:42 $
* last change: $Author: oj $ $Date: 2002-11-21 15:46:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -95,11 +95,20 @@ namespace connectivity
{
friend class OSubComponent<java_sql_Connection, java_sql_Connection_BASE>;
::com::sun::star::uno::WeakReference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData;
::com::sun::star::uno::WeakReference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData;
OWeakRefArray m_aStatements; // vector containing a list
// of all the Statement objects
// for this Connection
java_sql_Driver* m_pDriver;
sal_Bool m_bParameterSubstitution;
/** transform named parameter into unnamed one.
@param _sSQL
The SQL statement to transform.
@return
The new statement witgh unnamed parameters.
*/
::rtl::OUString transFormPreparedStatement(const ::rtl::OUString& _sSQL);
protected:
// statische Daten fuer die Klasse
static jclass theClass;
@@ -118,7 +127,12 @@ namespace connectivity
DECLARE_SERVICE_INFO();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
java_sql_Connection( JNIEnv * pEnv, jobject myObj,java_sql_Driver* _pDriver,const ::rtl::OUString& _sGeneredStmt,sal_Bool _bGenEnabled );
java_sql_Connection( JNIEnv * pEnv
, jobject myObj
,java_sql_Driver* _pDriver
,const ::rtl::OUString& _sGeneredStmt
,sal_Bool _bGenEnabled
,sal_Bool _bParameterSubstitution);
// OComponentHelper
virtual void SAL_CALL disposing(void);

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: Driver.hxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: oj $ $Date: 2002-08-01 07:16:25 $
* last change: $Author: oj $ $Date: 2002-11-21 15:46:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,7 +91,7 @@ namespace connectivity
// der Destruktor um den Object-Counter zu aktualisieren
static void saveClassRef( jclass pClass );
void loadDriverFromProperties( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info,::rtl::OUString& _rsGeneratedValueStatement,sal_Bool& _rbAutoRetrievingEnabled);
void loadDriverFromProperties( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info,::rtl::OUString& _rsGeneratedValueStatement,sal_Bool& _rbAutoRetrievingEnabled,sal_Bool& _bParameterSubstitution);
virtual ~java_sql_Driver();
public: