Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
32db3f5d
Kaydet (Commit)
32db3f5d
authored
Eki 11, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#706331 Uncaught exception
Change-Id: I48e11a07924418721d45fcac55bd5aeb68f115a3
üst
aeac20e7
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
93 additions
and
70 deletions
+93
-70
Array.cxx
connectivity/source/drivers/jdbc/Array.cxx
+1
-1
DatabaseMetaData.cxx
connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
+24
-24
InputStream.cxx
connectivity/source/drivers/jdbc/InputStream.cxx
+1
-1
JConnection.cxx
connectivity/source/drivers/jdbc/JConnection.cxx
+4
-4
JStatement.cxx
connectivity/source/drivers/jdbc/JStatement.cxx
+9
-10
Object.cxx
connectivity/source/drivers/jdbc/Object.cxx
+37
-16
PreparedStatement.cxx
connectivity/source/drivers/jdbc/PreparedStatement.cxx
+1
-1
ResultSet.cxx
connectivity/source/drivers/jdbc/ResultSet.cxx
+8
-8
ResultSetMetaData.cxx
connectivity/source/drivers/jdbc/ResultSetMetaData.cxx
+1
-1
SQLException.cxx
connectivity/source/drivers/jdbc/SQLException.cxx
+1
-1
Object.hxx
connectivity/source/inc/java/lang/Object.hxx
+6
-3
No files found.
connectivity/source/drivers/jdbc/Array.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -49,7 +49,7 @@ OUString SAL_CALL java_sql_Array::getBaseTypeName( ) throw(::com::sun::star::sd
sal_Int32
SAL_CALL
java_sql_Array
::
getBaseType
(
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"getBaseType"
,
mID
);
return
callIntMethod
_Throw
(
"getBaseType"
,
mID
);
}
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>
SAL_CALL
java_sql_Array
::
getArray
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XNameAccess
>&
typeMap
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
...
...
connectivity/source/drivers/jdbc/DatabaseMetaData.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -241,73 +241,73 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getVersionColumns(
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxBinaryLiteralLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxBinaryLiteralLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxBinaryLiteralLength"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxRowSize
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxRowSize"
,
mID
);
return
impl_callIntMethod
(
"getMaxRowSize"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxCatalogNameLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxCatalogNameLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxCatalogNameLength"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxCharLiteralLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxCharLiteralLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxCharLiteralLength"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxColumnNameLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxColumnNameLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxColumnNameLength"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxColumnsInIndex
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxColumnsInIndex"
,
mID
);
return
impl_callIntMethod
(
"getMaxColumnsInIndex"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxCursorNameLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxCursorNameLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxCursorNameLength"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxConnections
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxConnections"
,
mID
);
return
impl_callIntMethod
(
"getMaxConnections"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxColumnsInTable
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxColumnsInTable"
,
mID
);
return
impl_callIntMethod
(
"getMaxColumnsInTable"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxStatementLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxStatementLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxStatementLength"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxTableNameLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxTableNameLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxTableNameLength"
,
mID
);
}
sal_Int32
java_sql_DatabaseMetaData
::
impl_getMaxTablesInSelect_throw
(
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxTablesInSelect"
,
mID
);
return
impl_callIntMethod
(
"getMaxTablesInSelect"
,
mID
);
}
Reference
<
XResultSet
>
SAL_CALL
java_sql_DatabaseMetaData
::
getExportedKeys
(
...
...
@@ -567,7 +567,7 @@ OUString java_sql_DatabaseMetaData::impl_callStringMethod( const char* _pMethodN
sal_Int32
java_sql_DatabaseMetaData
::
impl_callIntMethod
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
{
m_aLogger
.
log
(
LogLevel
::
FINEST
,
STR_LOG_META_DATA_METHOD
,
_pMethodName
);
sal_Int32
out
(
(
sal_Int32
)
callIntMethod
(
_pMethodName
,
_inout_MethodID
)
);
sal_Int32
out
(
(
sal_Int32
)
callIntMethod
_Throw
(
_pMethodName
,
_inout_MethodID
)
);
m_aLogger
.
log
(
LogLevel
::
FINEST
,
STR_LOG_META_DATA_RESULT
,
_pMethodName
,
(
sal_Int32
)
out
);
return
out
;
}
...
...
@@ -722,7 +722,7 @@ bool java_sql_DatabaseMetaData::impl_supportsAlterTableWithDropColumn_throw( )
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxIndexLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxIndexLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxIndexLength"
,
mID
);
}
sal_Bool
SAL_CALL
java_sql_DatabaseMetaData
::
supportsNonNullableColumns
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
@@ -896,19 +896,19 @@ Reference< XResultSet > SAL_CALL java_sql_DatabaseMetaData::getTableTypes( ) th
sal_Int32
java_sql_DatabaseMetaData
::
impl_getMaxStatements_throw
(
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxStatements"
,
mID
);
return
impl_callIntMethod
(
"getMaxStatements"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxProcedureNameLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxProcedureNameLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxProcedureNameLength"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxSchemaNameLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxSchemaNameLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxSchemaNameLength"
,
mID
);
}
sal_Bool
SAL_CALL
java_sql_DatabaseMetaData
::
supportsTransactions
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
@@ -1215,19 +1215,19 @@ OUString SAL_CALL java_sql_DatabaseMetaData::getSchemaTerm( ) throw(SQLExceptio
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getDriverMajorVersion
(
)
throw
(
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getDriverMajorVersion"
,
mID
);
return
impl_callIntMethod
(
"getDriverMajorVersion"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getDefaultTransactionIsolation
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getDefaultTransactionIsolation"
,
mID
);
return
impl_callIntMethod
(
"getDefaultTransactionIsolation"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getDriverMinorVersion
(
)
throw
(
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getDriverMinorVersion"
,
mID
);
return
impl_callIntMethod
(
"getDriverMinorVersion"
,
mID
);
}
OUString
SAL_CALL
java_sql_DatabaseMetaData
::
getSQLKeywords
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
@@ -1299,25 +1299,25 @@ sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsLimitedOuterJoins( ) throw
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxColumnsInGroupBy
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxColumnsInGroupBy"
,
mID
);
return
impl_callIntMethod
(
"getMaxColumnsInGroupBy"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxColumnsInOrderBy
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxColumnsInOrderBy"
,
mID
);
return
impl_callIntMethod
(
"getMaxColumnsInOrderBy"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxColumnsInSelect
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxColumnsInSelect"
,
mID
);
return
impl_callIntMethod
(
"getMaxColumnsInSelect"
,
mID
);
}
sal_Int32
SAL_CALL
java_sql_DatabaseMetaData
::
getMaxUserNameLength
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
impl_callIntMethod
(
"getMaxUserNameLength"
,
mID
);
return
impl_callIntMethod
(
"getMaxUserNameLength"
,
mID
);
}
sal_Bool
SAL_CALL
java_sql_DatabaseMetaData
::
supportsResultSetType
(
sal_Int32
setType
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
connectivity/source/drivers/jdbc/InputStream.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -68,7 +68,7 @@ void SAL_CALL java_io_InputStream::skipBytes( sal_Int32 nBytesToSkip ) throw(::c
sal_Int32
SAL_CALL
java_io_InputStream
::
available
(
)
throw
(
::
com
::
sun
::
star
::
io
::
NotConnectedException
,
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"available"
,
mID
);
return
callIntMethod
_Throw
(
"available"
,
mID
);
}
void
SAL_CALL
java_io_InputStream
::
closeInput
(
)
throw
(
::
com
::
sun
::
star
::
io
::
NotConnectedException
,
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
...
...
connectivity/source/drivers/jdbc/JConnection.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -401,13 +401,13 @@ sal_Bool SAL_CALL java_sql_Connection::getAutoCommit( ) throw(SQLException, Run
void
SAL_CALL
java_sql_Connection
::
setReadOnly
(
sal_Bool
readOnly
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
callVoidMethodWithBoolArg
(
"setReadOnly"
,
mID
,
readOnly
);
callVoidMethodWithBoolArg
_Throw
(
"setReadOnly"
,
mID
,
readOnly
);
}
void
SAL_CALL
java_sql_Connection
::
setAutoCommit
(
sal_Bool
autoCommit
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
callVoidMethodWithBoolArg
(
"setAutoCommit"
,
mID
,
autoCommit
);
callVoidMethodWithBoolArg
_Throw
(
"setAutoCommit"
,
mID
,
autoCommit
);
}
Reference
<
::
com
::
sun
::
star
::
container
::
XNameAccess
>
SAL_CALL
java_sql_Connection
::
getTypeMap
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
@@ -437,7 +437,7 @@ sal_Int32 SAL_CALL java_sql_Connection::getTransactionIsolation( ) throw(SQLExc
checkDisposed
(
java_sql_Connection_BASE
::
rBHelper
.
bDisposed
);
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"getTransactionIsolation"
,
mID
);
return
callIntMethod
_Throw
(
"getTransactionIsolation"
,
mID
);
}
void
SAL_CALL
java_sql_Connection
::
setTransactionIsolation
(
sal_Int32
level
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
@@ -446,7 +446,7 @@ void SAL_CALL java_sql_Connection::setTransactionIsolation( sal_Int32 level ) th
checkDisposed
(
java_sql_Connection_BASE
::
rBHelper
.
bDisposed
);
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"setTransactionIsolation"
,
mID
,
level
);
callVoidMethodWithIntArg
_Throw
(
"setTransactionIsolation"
,
mID
,
level
);
}
Reference
<
XStatement
>
SAL_CALL
java_sql_Connection
::
createStatement
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
connectivity/source/drivers/jdbc/JStatement.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -368,7 +368,7 @@ sal_Int32 SAL_CALL java_sql_Statement_Base::getUpdateCount( ) throw(::com::sun:
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"Java Enviroment geloescht worden!"
);
createStatement
(
t
.
pEnv
);
static
jmethodID
mID
(
NULL
);
sal_Int32
out
=
callIntMethod
(
"getUpdateCount"
,
mID
);
sal_Int32
out
=
callIntMethod
_Throw
(
"getUpdateCount"
,
mID
);
m_aLogger
.
log
(
LogLevel
::
FINER
,
STR_LOG_UPDATE_COUNT
,
(
sal_Int32
)
out
);
return
out
;
}
...
...
@@ -442,8 +442,7 @@ sal_Int32 java_sql_Statement_Base::impl_getProperty(const char* _pMethodName, jm
{
sal_Int32
out
=
_nDefault
;
if
(
object
)
out
=
callIntMethod
(
_pMethodName
,
_inout_MethodID
,
true
);
out
=
callIntMethod_Nothrow
(
_pMethodName
,
_inout_MethodID
);
return
out
;
}
...
...
@@ -451,7 +450,7 @@ sal_Int32 java_sql_Statement_Base::impl_getProperty(const char* _pMethodName, jm
{
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"Java Enviroment geloescht worden!"
);
createStatement
(
t
.
pEnv
);
return
callIntMethod
(
_pMethodName
,
_inout_MethodID
,
true
);
return
callIntMethod
_Nothrow
(
_pMethodName
,
_inout_MethodID
);
}
...
...
@@ -497,7 +496,7 @@ void java_sql_Statement_Base::setQueryTimeOut(sal_Int32 _par0) throw(SQLExceptio
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"Java Enviroment geloescht worden!"
);
createStatement
(
t
.
pEnv
);
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"setQueryTimeOut"
,
mID
,
_par0
,
true
);
callVoidMethodWithIntArg
_Nothrow
(
"setQueryTimeOut"
,
mID
,
_par0
);
}
...
...
@@ -511,7 +510,7 @@ void java_sql_Statement_Base::setEscapeProcessing(bool _par0) throw(SQLException
m_bEscapeProcessing
=
_par0
;
createStatement
(
t
.
pEnv
);
static
jmethodID
mID
(
NULL
);
callVoidMethodWithBoolArg
(
"setEscapeProcessing"
,
mID
,
_par0
,
true
);
callVoidMethodWithBoolArg
_Nothrow
(
"setEscapeProcessing"
,
mID
,
_par0
);
}
...
...
@@ -522,7 +521,7 @@ void java_sql_Statement_Base::setMaxRows(sal_Int32 _par0) throw(SQLException, Ru
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"Java Enviroment geloescht worden!"
);
createStatement
(
t
.
pEnv
);
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"setMaxRows"
,
mID
,
_par0
,
true
);
callVoidMethodWithIntArg
_Nothrow
(
"setMaxRows"
,
mID
,
_par0
);
}
void
java_sql_Statement_Base
::
setResultSetConcurrency
(
sal_Int32
_par0
)
throw
(
SQLException
,
RuntimeException
)
...
...
@@ -553,7 +552,7 @@ void java_sql_Statement_Base::setFetchDirection(sal_Int32 _par0) throw(SQLExcept
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"Java Enviroment geloescht worden!"
);
createStatement
(
t
.
pEnv
);
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"setFetchDirection"
,
mID
,
_par0
,
true
);
callVoidMethodWithIntArg
_Nothrow
(
"setFetchDirection"
,
mID
,
_par0
);
}
void
java_sql_Statement_Base
::
setFetchSize
(
sal_Int32
_par0
)
throw
(
SQLException
,
RuntimeException
)
...
...
@@ -565,7 +564,7 @@ void java_sql_Statement_Base::setFetchSize(sal_Int32 _par0) throw(SQLException,
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"Java Enviroment geloescht worden!"
);
createStatement
(
t
.
pEnv
);
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"setFetchSize"
,
mID
,
_par0
,
true
);
callVoidMethodWithIntArg
_Nothrow
(
"setFetchSize"
,
mID
,
_par0
);
}
void
java_sql_Statement_Base
::
setMaxFieldSize
(
sal_Int32
_par0
)
throw
(
SQLException
,
RuntimeException
)
...
...
@@ -575,7 +574,7 @@ void java_sql_Statement_Base::setMaxFieldSize(sal_Int32 _par0) throw(SQLExceptio
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"Java Enviroment geloescht worden!"
);
createStatement
(
t
.
pEnv
);
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"setMaxFieldSize"
,
mID
,
_par0
,
true
);
callVoidMethodWithIntArg
_Nothrow
(
"setMaxFieldSize"
,
mID
,
_par0
);
}
void
java_sql_Statement_Base
::
setCursorName
(
const
OUString
&
_par0
)
throw
(
SQLException
,
RuntimeException
)
...
...
connectivity/source/drivers/jdbc/Object.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -262,19 +262,25 @@ jobject java_lang_Object::callResultSetMethod( JNIEnv& _rEnv,const char* _pMetho
return
out
;
}
sal_Int32
java_lang_Object
::
callIntMethod
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
bool
_bIgnoreException
)
const
sal_Int32
java_lang_Object
::
callIntMethod
_Throw
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
{
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"java_lang_Object::callIntMethod: no Java environment anymore!"
);
obtainMethodId
(
t
.
pEnv
,
_pMethodName
,
"()I"
,
_inout_MethodID
);
// call method
jint
out
(
t
.
pEnv
->
CallIntMethod
(
object
,
_inout_MethodID
)
);
if
(
_bIgnoreException
)
isExceptionOccurred
(
t
.
pEnv
,
true
);
else
ThrowSQLException
(
t
.
pEnv
,
NULL
);
ThrowSQLException
(
t
.
pEnv
,
NULL
);
return
(
sal_Int32
)
out
;
}
sal_Int32
java_lang_Object
::
callIntMethod_Nothrow
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
{
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"java_lang_Object::callIntMethod: no Java environment anymore!"
);
obtainMethodId
(
t
.
pEnv
,
_pMethodName
,
"()I"
,
_inout_MethodID
);
// call method
jint
out
(
t
.
pEnv
->
CallIntMethod
(
object
,
_inout_MethodID
)
);
isExceptionOccurred
(
t
.
pEnv
,
true
);
return
(
sal_Int32
)
out
;
}
...
...
@@ -301,7 +307,7 @@ void java_lang_Object::callVoidMethod( const char* _pMethodName, jmethodID& _ino
ThrowSQLException
(
t
.
pEnv
,
NULL
);
}
void
java_lang_Object
::
callVoidMethodWithIntArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
,
bool
_bIgnoreException
)
const
void
java_lang_Object
::
callVoidMethodWithIntArg
_Throw
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
)
const
{
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"java_lang_Object::callIntMethod: no Java environment anymore!"
);
...
...
@@ -309,23 +315,38 @@ void java_lang_Object::callVoidMethodWithIntArg( const char* _pMethodName, jmeth
// call method
t
.
pEnv
->
CallVoidMethod
(
object
,
_inout_MethodID
,
_nArgument
);
if
(
_bIgnoreException
)
isExceptionOccurred
(
t
.
pEnv
,
true
);
else
ThrowSQLException
(
t
.
pEnv
,
NULL
);
ThrowSQLException
(
t
.
pEnv
,
NULL
);
}
void
java_lang_Object
::
callVoidMethodWithIntArg_Nothrow
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
)
const
{
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"java_lang_Object::callIntMethod: no Java environment anymore!"
);
obtainMethodId
(
t
.
pEnv
,
_pMethodName
,
"(I)V"
,
_inout_MethodID
);
// call method
t
.
pEnv
->
CallVoidMethod
(
object
,
_inout_MethodID
,
_nArgument
);
isExceptionOccurred
(
t
.
pEnv
,
true
);
}
void
java_lang_Object
::
callVoidMethodWithBoolArg_Throw
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
bool
_nArgument
)
const
{
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"java_lang_Object::callIntMethod: no Java environment anymore!"
);
obtainMethodId
(
t
.
pEnv
,
_pMethodName
,
"(Z)V"
,
_inout_MethodID
);
// call method
t
.
pEnv
->
CallVoidMethod
(
object
,
_inout_MethodID
,
int
(
_nArgument
)
);
ThrowSQLException
(
t
.
pEnv
,
NULL
);
}
void
java_lang_Object
::
callVoidMethodWithBoolArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
bool
_nArgument
,
bool
_bIgnoreException
)
const
void
java_lang_Object
::
callVoidMethodWithBoolArg
_Nothrow
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
bool
_nArgument
)
const
{
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"java_lang_Object::callIntMethod: no Java environment anymore!"
);
obtainMethodId
(
t
.
pEnv
,
_pMethodName
,
"(Z)V"
,
_inout_MethodID
);
// call method
t
.
pEnv
->
CallVoidMethod
(
object
,
_inout_MethodID
,
int
(
_nArgument
)
);
if
(
_bIgnoreException
)
isExceptionOccurred
(
t
.
pEnv
,
true
);
else
ThrowSQLException
(
t
.
pEnv
,
NULL
);
isExceptionOccurred
(
t
.
pEnv
,
true
);
}
OUString
java_lang_Object
::
callStringMethod
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
...
...
connectivity/source/drivers/jdbc/PreparedStatement.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -113,7 +113,7 @@ sal_Int32 SAL_CALL java_sql_PreparedStatement::executeUpdate( ) throw(::com::su
SDBThreadAttach
t
;
OSL_ENSURE
(
t
.
pEnv
,
"Java Enviroment geloescht worden!"
);
createStatement
(
t
.
pEnv
);
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"executeUpdate"
,
mID
);
return
callIntMethod
_Throw
(
"executeUpdate"
,
mID
);
}
...
...
connectivity/source/drivers/jdbc/ResultSet.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -225,7 +225,7 @@ sal_Int32 SAL_CALL java_sql_ResultSet::getInt( sal_Int32 columnIndex ) throw(SQL
sal_Int32
SAL_CALL
java_sql_ResultSet
::
getRow
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"getRow"
,
mID
);
return
callIntMethod
_Throw
(
"getRow"
,
mID
);
}
...
...
@@ -574,7 +574,7 @@ void SAL_CALL java_sql_ResultSet::moveToCurrentRow( ) throw(::com::sun::star::s
void
SAL_CALL
java_sql_ResultSet
::
updateNull
(
sal_Int32
columnIndex
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"updateNull"
,
mID
,
columnIndex
);
callVoidMethodWithIntArg
_Throw
(
"updateNull"
,
mID
,
columnIndex
);
}
...
...
@@ -824,25 +824,25 @@ void SAL_CALL java_sql_ResultSet::updateNumericObject( sal_Int32 columnIndex, co
sal_Int32
java_sql_ResultSet
::
getResultSetConcurrency
()
const
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"getConcurrency"
,
mID
,
true
);
return
callIntMethod
_Nothrow
(
"getConcurrency"
,
mID
);
}
sal_Int32
java_sql_ResultSet
::
getResultSetType
()
const
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"getType"
,
mID
,
true
);
return
callIntMethod
_Nothrow
(
"getType"
,
mID
);
}
sal_Int32
java_sql_ResultSet
::
getFetchDirection
()
const
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"getFetchDirection"
,
mID
,
true
);
return
callIntMethod
_Nothrow
(
"getFetchDirection"
,
mID
);
}
sal_Int32
java_sql_ResultSet
::
getFetchSize
()
const
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"getFetchSize"
,
mID
,
true
);
return
callIntMethod
_Nothrow
(
"getFetchSize"
,
mID
);
}
OUString
java_sql_ResultSet
::
getCursorName
()
const
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
...
...
@@ -855,7 +855,7 @@ OUString java_sql_ResultSet::getCursorName() const throw(::com::sun::star::sdbc:
void
java_sql_ResultSet
::
setFetchDirection
(
sal_Int32
_par0
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"setFetchDirection"
,
mID
,
_par0
,
true
);
callVoidMethodWithIntArg
_Nothrow
(
"setFetchDirection"
,
mID
,
_par0
);
}
void
SAL_CALL
java_sql_ResultSet
::
refreshRow
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
@@ -867,7 +867,7 @@ void SAL_CALL java_sql_ResultSet::refreshRow( ) throw(SQLException, RuntimeExce
void
java_sql_ResultSet
::
setFetchSize
(
sal_Int32
_par0
)
throw
(
::
com
::
sun
::
star
::
sdbc
::
SQLException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
static
jmethodID
mID
(
NULL
);
callVoidMethodWithIntArg
(
"setFetchSize"
,
mID
,
_par0
,
true
);
callVoidMethodWithIntArg
_Nothrow
(
"setFetchSize"
,
mID
,
_par0
);
}
::
cppu
::
IPropertyArrayHelper
*
java_sql_ResultSet
::
createArrayHelper
(
)
const
...
...
connectivity/source/drivers/jdbc/ResultSetMetaData.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -74,7 +74,7 @@ sal_Int32 SAL_CALL java_sql_ResultSetMetaData::getColumnCount( ) throw(SQLExcep
if
(
m_nColumnCount
==
-
1
)
{
static
jmethodID
mID
(
NULL
);
m_nColumnCount
=
callIntMethod
(
"getColumnCount"
,
mID
);
m_nColumnCount
=
callIntMethod
_Throw
(
"getColumnCount"
,
mID
);
}
// if ( m_nColumnCount == -1 )
return
m_nColumnCount
;
...
...
connectivity/source/drivers/jdbc/SQLException.cxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -84,7 +84,7 @@ OUString java_sql_SQLException_BASE::getSQLState() const
sal_Int32
java_sql_SQLException_BASE
::
getErrorCode
()
const
{
static
jmethodID
mID
(
NULL
);
return
callIntMethod
(
"getErrorCode"
,
mID
);
return
callIntMethod
_Throw
(
"getErrorCode"
,
mID
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
connectivity/source/inc/java/lang/Object.hxx
Dosyayı görüntüle @
32db3f5d
...
...
@@ -114,14 +114,17 @@ namespace connectivity
bool
callBooleanMethod
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
;
bool
callBooleanMethodWithIntArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
)
const
;
jobject
callResultSetMethod
(
JNIEnv
&
_rEnv
,
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
;
sal_Int32
callIntMethod
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
bool
_bIgnoreException
=
false
)
const
;
sal_Int32
callIntMethod_Throw
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
;
sal_Int32
callIntMethod_Nothrow
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
;
sal_Int32
callIntMethodWithIntArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
)
const
;
sal_Int32
callIntMethodWithStringArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
const
OUString
&
_nArgument
)
const
;
OUString
callStringMethod
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
;
OUString
callStringMethodWithIntArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
)
const
;
void
callVoidMethod
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
)
const
;
void
callVoidMethodWithIntArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
,
bool
_bIgnoreException
=
false
)
const
;
void
callVoidMethodWithBoolArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
bool
_nArgument
,
bool
_bIgnoreException
=
false
)
const
;
void
callVoidMethodWithIntArg_Throw
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
)
const
;
void
callVoidMethodWithIntArg_Nothrow
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
)
const
;
void
callVoidMethodWithBoolArg_Throw
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
bool
_nArgument
)
const
;
void
callVoidMethodWithBoolArg_Nothrow
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
bool
_nArgument
)
const
;
void
callVoidMethodWithStringArg
(
const
char
*
_pMethodName
,
jmethodID
&
_inout_MethodID
,
const
OUString
&
_nArgument
)
const
;
jobject
callObjectMethod
(
JNIEnv
*
pEnv
,
const
char
*
_pMethodName
,
const
char
*
_pSignature
,
jmethodID
&
_inout_MethodID
)
const
;
jobject
callObjectMethodWithIntArg
(
JNIEnv
*
pEnv
,
const
char
*
_pMethodName
,
const
char
*
_pSignature
,
jmethodID
&
_inout_MethodID
,
sal_Int32
_nArgument
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment