User: hr      
Date: 2007-06-27 14:37:29+0000
Modified:
   dba/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx

Log:
 INTEGRATION: CWS sdblogging (1.10.84); FILE MERGED
 2007/04/12 09:03:35 fs 1.10.84.1: #i76119# ThrowLoggedSQLException instead of 
ThrowSQLException

File Changes:

Directory: /dba/connectivity/source/drivers/jdbc/
=================================================

File [changed]: ResultSetMetaData.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/jdbc/ResultSetMetaData.cxx?r1=1.10&r2=1.11
Delta lines:  +24 -23
---------------------
--- ResultSetMetaData.cxx       2006-09-17 02:48:47+0000        1.10
+++ ResultSetMetaData.cxx       2007-06-27 14:37:27+0000        1.11
@@ -54,8 +54,9 @@
 //**************************************************************
 
 jclass java_sql_ResultSetMetaData::theClass = 0;
-java_sql_ResultSetMetaData::java_sql_ResultSetMetaData( JNIEnv * pEnv, jobject 
myObj )
-: java_lang_Object( pEnv, myObj )
+java_sql_ResultSetMetaData::java_sql_ResultSetMetaData( JNIEnv * pEnv, jobject 
myObj, const java::sql::ConnectionLog& _rResultSetLogger )
+    :java_lang_Object( pEnv, myObj )
+    ,m_aLogger( _rResultSetLogger )
 {
        SDBThreadAttach::addRef();
 }
@@ -103,7 +104,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallIntMethod( object, mID,column);
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                } //mID
        } //t.pEnv
        return (sal_Int32)out;
@@ -125,7 +126,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallIntMethod( object, mID,column);
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                } //mID
        } //t.pEnv
        return (sal_Int32)out;
@@ -147,7 +148,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallIntMethod( object, mID);
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                } //mID
        } //t.pEnv
        return (sal_Int32)out;
@@ -168,7 +169,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID )
                        out = t.pEnv->CallBooleanMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
        } //t.pEnv
        return out;
@@ -189,7 +190,7 @@
                if( mID )
                {
                        jstring out = (jstring)t.pEnv->CallObjectMethod( 
object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        aStr = JavaString2String(t.pEnv,out);
                }
 
@@ -214,7 +215,7 @@
                if( mID )
                {
                        jstring out = (jstring)t.pEnv->CallObjectMethod( 
object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        aStr = JavaString2String(t.pEnv,out);
                }
 
@@ -238,7 +239,7 @@
                if( mID )
                {
                        jstring out = (jstring)t.pEnv->CallObjectMethod( 
object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        aStr = JavaString2String(t.pEnv,out);
                }
 
@@ -262,7 +263,7 @@
                if( mID )
                {
                        jstring out = (jstring)t.pEnv->CallObjectMethod( 
object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        aStr = JavaString2String(t.pEnv,out);
                }
 
@@ -286,7 +287,7 @@
                if( mID )
                {
                        jstring out = (jstring)t.pEnv->CallObjectMethod( 
object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        aStr = JavaString2String(t.pEnv,out);
                }
 
@@ -310,7 +311,7 @@
                if( mID )
                {
                        jstring out = (jstring)t.pEnv->CallObjectMethod( 
object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        aStr = JavaString2String(t.pEnv,out);
                }
 
@@ -334,7 +335,7 @@
                if( mID )
                {
                        jstring out = (jstring)t.pEnv->CallObjectMethod( 
object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        aStr = JavaString2String(t.pEnv,out);
                }
 
@@ -358,7 +359,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID )
                        out = t.pEnv->CallBooleanMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
        } //t.pEnv
        return out;
@@ -379,7 +380,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID )
                        out = t.pEnv->CallBooleanMethod( object, mID, column);
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
        } //t.pEnv
        return out;
@@ -401,7 +402,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID )
                        out = t.pEnv->CallBooleanMethod( object, mID, column);
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
        } //t.pEnv
        return out;
@@ -421,7 +422,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallIntMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
                } //mID
        } //t.pEnv
@@ -442,7 +443,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallIntMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
                } //mID
        } //t.pEnv
@@ -463,7 +464,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallIntMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
                } //mID
        } //t.pEnv
@@ -485,7 +486,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallBooleanMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
                } //mID
        } //t.pEnv
@@ -507,7 +508,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallBooleanMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
                } //mID
        } //t.pEnv
@@ -529,7 +530,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallBooleanMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
                } //mID
        } //t.pEnv
@@ -550,7 +551,7 @@
                        mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
                if( mID ){
                        out = t.pEnv->CallBooleanMethod( object, mID, column );
-                       ThrowSQLException(t.pEnv,*this);
+                       ThrowLoggedSQLException( m_aLogger, t.pEnv, *this );
                        // und aufraeumen
                } //mID
        } //t.pEnv




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to