User: hr      
Date: 06/06/19 18:35:51

Modified:
 /dba/connectivity/source/drivers/jdbc/
  ResultSet.cxx

Log:
 INTEGRATION: CWS warnings01 (1.24.30); FILE MERGED
 2006/01/25 20:50:31 sb 1.24.30.4: RESYNC: (1.24-1.25); FILE MERGED
 2005/11/21 10:07:49 fs 1.24.30.3: #i57457# warning-free code on unx*
 2005/11/16 12:59:11 fs 1.24.30.2: #i57457# warning free code
 2005/11/07 14:43:42 fs 1.24.30.1: #i57457# warning-free code

File Changes:

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

File [changed]: ResultSet.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/jdbc/ResultSet.cxx?r1=1.26&r2=1.27
Delta lines:  +147 -190
-----------------------
--- ResultSet.cxx       19 Apr 2006 13:16:50 -0000      1.26
+++ ResultSet.cxx       20 Jun 2006 01:35:49 -0000      1.27
@@ -110,9 +110,9 @@
 
 jclass java_sql_ResultSet::theClass = 0;
 java_sql_ResultSet::java_sql_ResultSet( JNIEnv * pEnv, jobject 
myObj,java_sql_Statement_Base* pStmt)
-:      java_sql_ResultSet_BASE(m_aMutex),
-       OPropertySetHelper(java_sql_ResultSet_BASE::rBHelper),
-       java_lang_Object( pEnv, myObj )
+    :java_sql_ResultSet_BASE(m_aMutex)
+    ,java_lang_Object( pEnv, myObj )
+    ,OPropertySetHelper(java_sql_ResultSet_BASE::rBHelper)
 {
        SDBThreadAttach::addRef();
        osl_incrementInterlockedCount(&m_refCount);
@@ -166,8 +166,8 @@
                if( t.pEnv )
                {
                        // temporaere Variable initialisieren
-                       static char * cSignature = "()V";
-                       static char * cMethodName = "close";
+                       static const char * cSignature = "()V";
+                       static const char * cMethodName = "close";
                        // Java-Call absetzen
                        static jmethodID mID = NULL;
                        if ( !mID  )
@@ -206,8 +206,8 @@
        if( t.pEnv ){
 
                // temporaere Variable initialisieren
-               static char * cSignature = "(Ljava/lang/String;)I";
-               static char * cMethodName = "findColumn";
+               static const char * cSignature = "(Ljava/lang/String;)I";
+               static const char * cMethodName = "findColumn";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -234,8 +234,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/io/InputStream;";
-               static char * cMethodName = "getBinaryStream";
+               static const char * cSignature = "(I)Ljava/io/InputStream;";
+               static const char * cMethodName = "getBinaryStream";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -257,8 +257,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/io/InputStream;";
-               static char * cMethodName = "getCharacterStream";
+               static const char * cSignature = "(I)Ljava/io/InputStream;";
+               static const char * cMethodName = "getCharacterStream";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -281,8 +281,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Z";
-               static char * cMethodName = "getBoolean";
+               static const char * cSignature = "(I)Z";
+               static const char * cMethodName = "getBoolean";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -304,8 +304,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)B";
-               static char * cMethodName = "getByte";
+               static const char * cSignature = "(I)B";
+               static const char * cMethodName = "getByte";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -326,8 +326,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv )
        {
-               static char * cSignature = "(I)[B";
-               static char * cMethodName = "getBytes";
+               static const char * cSignature = "(I)[B";
+               static const char * cMethodName = "getBytes";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -356,8 +356,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/sql/Date;";
-               static char * cMethodName = "getDate";
+               static const char * cSignature = "(I)Ljava/sql/Date;";
+               static const char * cMethodName = "getDate";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -380,8 +380,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)D";
-               static char * cMethodName = "getDouble";
+               static const char * cSignature = "(I)D";
+               static const char * cMethodName = "getDouble";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -403,8 +403,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)F";
-               static char * cMethodName = "getFloat";
+               static const char * cSignature = "(I)F";
+               static const char * cMethodName = "getFloat";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -426,8 +426,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)I";
-               static char * cMethodName = "getInt";
+               static const char * cSignature = "(I)I";
+               static const char * cMethodName = "getInt";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -448,8 +448,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "()I";
-               static char * cMethodName = "getRow";
+               static const char * cSignature = "()I";
+               static const char * cMethodName = "getRow";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -470,8 +470,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)J";
-               static char * cMethodName = "getLong";
+               static const char * cSignature = "(I)J";
+               static const char * cMethodName = "getLong";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -494,8 +494,8 @@
 
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Ljava/sql/ResultSetMetaData;";
-               static char * cMethodName = "getMetaData";
+               static const char * cSignature = 
"()Ljava/sql/ResultSetMetaData;";
+               static const char * cMethodName = "getMetaData";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -515,8 +515,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/sql/Ref;";
-               static char * cMethodName = "getArray";
+               static const char * cSignature = "(I)Ljava/sql/Ref;";
+               static const char * cMethodName = "getArray";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -538,8 +538,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/sql/Ref;";
-               static char * cMethodName = "getClob";
+               static const char * cSignature = "(I)Ljava/sql/Ref;";
+               static const char * cMethodName = "getClob";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -560,8 +560,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/sql/Ref;";
-               static char * cMethodName = "getBlob";
+               static const char * cSignature = "(I)Ljava/sql/Ref;";
+               static const char * cMethodName = "getBlob";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -583,8 +583,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/sql/Ref;";
-               static char * cMethodName = "getRef";
+               static const char * cSignature = "(I)Ljava/sql/Ref;";
+               static const char * cMethodName = "getRef";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -608,10 +608,10 @@
                jvalue args[2];
                // Parameter konvertieren
                args[0].i = (sal_Int32)columnIndex;
-               args[1].l = XNameAccess2Map(t.pEnv,typeMap);
+               args[1].l = convertTypeMapToJavaMap(t.pEnv,typeMap);
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/lang/Object;";
-               static char * cMethodName = "getObject";
+               static const char * cSignature = "(I)Ljava/lang/Object;";
+               static const char * cMethodName = "getObject";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -634,8 +634,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)S";
-               static char * cMethodName = "getShort";
+               static const char * cSignature = "(I)S";
+               static const char * cMethodName = "getShort";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -657,8 +657,8 @@
        ::rtl::OUString aStr;
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/lang/String;";
-               static char * cMethodName = "getString";
+               static const char * cSignature = "(I)Ljava/lang/String;";
+               static const char * cMethodName = "getString";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -683,8 +683,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/sql/Time;";
-               static char * cMethodName = "getTime";
+               static const char * cSignature = "(I)Ljava/sql/Time;";
+               static const char * cMethodName = "getTime";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -707,8 +707,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Ljava/sql/Timestamp;";
-               static char * cMethodName = "getTimestamp";
+               static const char * cSignature = "(I)Ljava/sql/Timestamp;";
+               static const char * cMethodName = "getTimestamp";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -732,8 +732,8 @@
 
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "isAfterLast";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "isAfterLast";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -754,8 +754,8 @@
 
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "isFirst";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "isFirst";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -776,8 +776,8 @@
 
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "isLast";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "isLast";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -797,8 +797,8 @@
 
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "isBeforeFirst";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "isBeforeFirst";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -817,8 +817,8 @@
 
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "afterLast";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "afterLast";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -844,8 +844,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "first";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "first";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -866,8 +866,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "last";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "last";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -887,8 +887,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Z";
-               static char * cMethodName = "absolute";
+               static const char * cSignature = "(I)Z";
+               static const char * cMethodName = "absolute";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -908,8 +908,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)Z";
-               static char * cMethodName = "relative";
+               static const char * cSignature = "(I)Z";
+               static const char * cMethodName = "relative";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -930,8 +930,8 @@
 
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "previous";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "previous";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -957,8 +957,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "rowDeleted";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "rowDeleted";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -978,8 +978,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "rowInserted";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "rowInserted";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -999,8 +999,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "rowUpdated";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "rowUpdated";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1021,8 +1021,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "isBeforeFirst";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "isBeforeFirst";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1044,8 +1044,8 @@
 
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "next";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "next";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1066,8 +1066,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Z";
-               static char * cMethodName = "wasNull";
+               static const char * cSignature = "()Z";
+               static const char * cMethodName = "wasNull";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1087,8 +1087,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "cancel";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "cancel";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1107,8 +1107,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "clearWarnings";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "clearWarnings";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1127,8 +1127,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Ljava/sql/SQLWarning;";
-               static char * cMethodName = "getWarnings";
+               static const char * cSignature = "()Ljava/sql/SQLWarning;";
+               static const char * cMethodName = "getWarnings";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1157,8 +1157,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "insertRow";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "insertRow";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1176,8 +1176,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "updateRow";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "updateRow";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1195,8 +1195,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "deleteRow";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "deleteRow";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1215,8 +1215,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "cancelRowUpdates";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "cancelRowUpdates";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1235,8 +1235,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "moveToInsertRow";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "moveToInsertRow";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1255,8 +1255,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "moveToCurrentRow";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "moveToCurrentRow";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1275,8 +1275,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)V";
-               static char * cMethodName = "updateNull";
+               static const char * cSignature = "(I)V";
+               static const char * cMethodName = "updateNull";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1295,8 +1295,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(IZ)V";
-               static char * cMethodName = "updateBoolean";
+               static const char * cSignature = "(IZ)V";
+               static const char * cMethodName = "updateBoolean";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1314,8 +1314,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(IB)V";
-               static char * cMethodName = "updateByte";
+               static const char * cSignature = "(IB)V";
+               static const char * cMethodName = "updateByte";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1334,8 +1334,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(IS)V";
-               static char * cMethodName = "updateShort";
+               static const char * cSignature = "(IS)V";
+               static const char * cMethodName = "updateShort";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1353,8 +1353,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(II)V";
-               static char * cMethodName = "updateInt";
+               static const char * cSignature = "(II)V";
+               static const char * cMethodName = "updateInt";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1372,8 +1372,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(IJ)V";
-               static char * cMethodName = "updateLong";
+               static const char * cSignature = "(IJ)V";
+               static const char * cMethodName = "updateLong";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1393,8 +1393,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(IF)V";
-               static char * cMethodName = "updateFloat";
+               static const char * cSignature = "(IF)V";
+               static const char * cMethodName = "updateFloat";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1413,8 +1413,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(ID)V";
-               static char * cMethodName = "updateDouble";
+               static const char * cSignature = "(ID)V";
+               static const char * cMethodName = "updateDouble";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1434,8 +1434,8 @@
        {
 
                // temporaere Variable initialisieren
-               static char * cSignature = "(ILjava/lang/String;)V";
-               static char * cMethodName = "updateString";
+               static const char * cSignature = "(ILjava/lang/String)V";
+               static const char * cMethodName = "updateString";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1458,8 +1458,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I[B)V";
-               static char * cMethodName = "updateBytes";
+               static const char * cSignature = "(I[B)V";
+               static const char * cMethodName = "updateBytes";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1484,8 +1484,8 @@
        {
 
                // temporaere Variable initialisieren
-               static char * cSignature = "(ILjava/sql/Date;)V";
-               static char * cMethodName = "updateDate";
+               static const char * cSignature = "(ILjava/sql/Date;)V";
+               static const char * cMethodName = "updateDate";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1509,8 +1509,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(ILjava/sql/Time;)V";
-               static char * cMethodName = "updateTime";
+               static const char * cSignature = "(ILjava/sql/Time;)V";
+               static const char * cMethodName = "updateTime";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1534,8 +1534,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "(I;Ljava/sql/Timestamp;)V";
-               static char * cMethodName = "updateTimestamp";
+               static const char * cSignature = "(I;Ljava/sql/Timestamp;)V";
+               static const char * cMethodName = "updateTimestamp";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1553,54 +1553,14 @@
 }
 // -------------------------------------------------------------------------
 
-void SAL_CALL java_sql_ResultSet::updateBinaryStream( sal_Int32 columnIndex, 
const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& 
x, sal_Int32 length ) throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
+void SAL_CALL java_sql_ResultSet::updateBinaryStream( sal_Int32 
/*columnIndex*/, const ::com::sun::star::uno::Reference< 
::com::sun::star::io::XInputStream >& /*x*/, sal_Int32 /*length*/ ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
 {
-       SDBThreadAttach t;
-       if( t.pEnv )
-       {
-               // temporaere Variable initialisieren
-               static char * cSignature = "(ILjava/io/InputStream;I)V";
-               static char * cMethodName = "updateBinaryStream";
-               // Java-Call absetzen
-               static jmethodID mID = NULL;
-               if ( !mID  )
-                       mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
-               if( mID ){
-                       // TODO
-                       jvalue args[1];
-                       // Parameter konvertieren
-                       args[0].l = 0;
-
-                       t.pEnv->CallVoidMethod( object, 
mID,columnIndex,args[0].l,length);
-
-                       t.pEnv->DeleteLocalRef((jobject)args[0].l);
-                       ThrowSQLException(t.pEnv,*this);
-               }
-       }
+    ::dbtools::throwFeatureNotImplementedException( 
"XParameters::updateBinaryStream", *this );
 }
 // -------------------------------------------------------------------------
-void SAL_CALL java_sql_ResultSet::updateCharacterStream( sal_Int32 
columnIndex, const ::com::sun::star::uno::Reference< 
::com::sun::star::io::XInputStream >& x, sal_Int32 length ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
+void SAL_CALL java_sql_ResultSet::updateCharacterStream( sal_Int32 
/*columnIndex*/, const ::com::sun::star::uno::Reference< 
::com::sun::star::io::XInputStream >& /*x*/, sal_Int32 /*length*/ ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
 {
-       SDBThreadAttach t;
-       if( t.pEnv )
-       {
-
-               // temporaere Variable initialisieren
-               static char * cSignature = "(ILjava/io/InputStream;I)V";
-               static char * cMethodName = "updateCharacterStream";
-               // Java-Call absetzen
-               static jmethodID mID = NULL;
-               if ( !mID  )
-                       mID  = t.pEnv->GetMethodID( getMyClass(), cMethodName, 
cSignature );OSL_ENSURE(mID,"Unknown method id!");
-               if( mID ){
-                       jvalue args[1];
-                       // Parameter konvertieren
-                       args[0].l = 0;
-                       t.pEnv->CallVoidMethod( object, 
mID,columnIndex,args[0].l,length);
-                       t.pEnv->DeleteLocalRef((jobject)args[0].l);
-                       ThrowSQLException(t.pEnv,*this);
-               }
-       }
+    ::dbtools::throwFeatureNotImplementedException( 
"XRowUpdate::updateCharacterStream", *this );
 }
 // -------------------------------------------------------------------------
 void SAL_CALL java_sql_ResultSet::updateObject( sal_Int32 columnIndex, const 
::com::sun::star::uno::Any& x ) throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
@@ -1615,7 +1575,7 @@
 }
 // -------------------------------------------------------------------------
 
-void SAL_CALL java_sql_ResultSet::updateNumericObject( sal_Int32 columnIndex, 
const ::com::sun::star::uno::Any& x, sal_Int32 scale ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
+void SAL_CALL java_sql_ResultSet::updateNumericObject( sal_Int32 columnIndex, 
const ::com::sun::star::uno::Any& x, sal_Int32 /*scale*/ ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
 {
        //      OSL_ENSURE(0,"java_sql_ResultSet::updateNumericObject: NYI");
        updateObject( columnIndex,x);
@@ -1627,8 +1587,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "()I";
-               static char * cMethodName = "getConcurrency";
+               static const char * cSignature = "()I";
+               static const char * cMethodName = "getConcurrency";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1650,8 +1610,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "()I";
-               static char * cMethodName = "getType";
+               static const char * cSignature = "()I";
+               static const char * cMethodName = "getType";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1672,8 +1632,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "()I";
-               static char * cMethodName = "getFetchDirection";
+               static const char * cSignature = "()I";
+               static const char * cMethodName = "getFetchDirection";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1694,8 +1654,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "()I";
-               static char * cMethodName = "getFetchSize";
+               static const char * cSignature = "()I";
+               static const char * cMethodName = "getFetchSize";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1717,8 +1677,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()Ljava/lang/String;";
-               static char * cMethodName = "getCursorName";
+               static const char * cSignature = "()Ljava/lang/String;";
+               static const char * cMethodName = "getCursorName";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1739,8 +1699,8 @@
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)V";
-               static char * cMethodName = "setFetchDirection";
+               static const char * cSignature = "(I)V";
+               static const char * cMethodName = "setFetchDirection";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1761,8 +1721,8 @@
        if( t.pEnv )
        {
                // temporaere Variable initialisieren
-               static char * cSignature = "()V";
-               static char * cMethodName = "refreshRow";
+               static const char * cSignature = "()V";
+               static const char * cMethodName = "refreshRow";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1776,12 +1736,11 @@
 
//------------------------------------------------------------------------------
 void java_sql_ResultSet::setFetchSize(sal_Int32 _par0) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
 {
-       jint out(0);
     SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment geloescht worden!");
        if( t.pEnv ){
                // temporaere Variable initialisieren
-               static char * cSignature = "(I)V";
-               static char * cMethodName = "setFetchSize";
+               static const char * cSignature = "(I)V";
+               static const char * cMethodName = "setFetchSize";
                // Java-Call absetzen
                static jmethodID mID = NULL;
                if ( !mID  )
@@ -1828,7 +1787,6 @@
                case PROPERTY_ID_RESULTSETCONCURRENCY:
                case PROPERTY_ID_RESULTSETTYPE:
                        throw 
::com::sun::star::lang::IllegalArgumentException();
-                       break;
                case PROPERTY_ID_FETCHDIRECTION:
                        bRet = ::comphelper::tryPropertyValue(rConvertedValue, 
rOldValue, rValue, getFetchDirection());
                        break;
@@ -1853,7 +1811,6 @@
                case PROPERTY_ID_RESULTSETCONCURRENCY:
                case PROPERTY_ID_RESULTSETTYPE:
                        throw ::com::sun::star::uno::Exception();
-                       break;
                case PROPERTY_ID_FETCHDIRECTION:
                        setFetchDirection(comphelper::getINT32(rValue));
                        break;




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

Reply via email to