LibreOffice Module connectivity (master) 1
|
#include <Object.hxx>
Public Member Functions | |
java_lang_Object (JNIEnv *pEnv, jobject myObj) | |
java_lang_Object () | |
virtual | ~java_lang_Object () COVERITY_NOEXCEPT_FALSE |
void | saveRef (JNIEnv *pEnv, jobject myObj) |
jobject | getJavaObject () const |
void | clearObject (JNIEnv &rEnv) |
void | clearObject () |
OUString | toString () const |
static ::rtl::Reference< jvmaccess::VirtualMachine > | getVM (const css::uno::Reference< css::uno::XComponentContext > &_rxContext=nullptr) |
void | obtainMethodId_throwSQL (JNIEnv *_pEnv, const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID) const |
void | obtainMethodId_throwRuntime (JNIEnv *_pEnv, const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID) const |
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_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID) const |
sal_Int32 | callIntMethod_ThrowRuntime (const char *_pMethodName, jmethodID &_inout_MethodID) const |
sal_Int32 | callIntMethodWithIntArg_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const |
sal_Int32 | callIntMethodWithIntArg_ThrowRuntime (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_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID) const |
void | callVoidMethod_ThrowRuntime (const char *_pMethodName, jmethodID &_inout_MethodID) const |
void | callVoidMethodWithIntArg_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const |
void | callVoidMethodWithIntArg_ThrowRuntime (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const |
void | callVoidMethodWithBoolArg_ThrowSQL (const char *_pMethodName, jmethodID &_inout_MethodID, bool _nArgument) const |
void | callVoidMethodWithBoolArg_ThrowRuntime (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 |
template<typename T > | |
T | callMethodWithIntArg (T(JNIEnv::*pCallMethod)(jobject obj, jmethodID methodID,...), const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID, sal_Int32 _nArgument) const |
template<typename T > | |
void | callVoidMethod_ThrowSQL (const char *_pMethodName, const char *_pSignature, jmethodID &_inout_MethodID, sal_Int32 _nArgument, const T &_aValue) const |
Static Public Member Functions | |
static void | ThrowSQLException (JNIEnv *pEnv, const css::uno::Reference< css::uno::XInterface > &_rContext) |
static void | ThrowLoggedSQLException (const ::comphelper::EventLogger &_rLogger, JNIEnv *pEnvironment, const css::uno::Reference< css::uno::XInterface > &_rxContext) |
static void | ThrowRuntimeException (JNIEnv *pEnv, const css::uno::Reference< css::uno::XInterface > &_rContext) |
static jclass | findMyClass (const char *_pClassName) |
Protected Member Functions | |
virtual jclass | getMyClass () const |
Protected Attributes | |
jobject | object |
Static Protected Attributes | |
static jclass | theClass = nullptr |
Private Member Functions | |
java_lang_Object & | operator= (java_lang_Object const &)=delete |
java_lang_Object (java_lang_Object const &)=delete | |
Definition at line 58 of file Object.hxx.
|
privatedelete |
java_lang_Object::java_lang_Object | ( | JNIEnv * | pEnv, |
jobject | myObj | ||
) |
Definition at line 107 of file Object.cxx.
References connectivity::SDBThreadAttach::addRef().
java_lang_Object::java_lang_Object | ( | ) |
Definition at line 100 of file Object.cxx.
References connectivity::SDBThreadAttach::addRef().
|
virtual |
Definition at line 115 of file Object.cxx.
References clearObject(), connectivity::SDBThreadAttach::releaseRef(), and t.
bool java_lang_Object::callBooleanMethod | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 252 of file Object.cxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_PreparedStatement::execute(), connectivity::java_sql_ResultSet::first(), connectivity::java_sql_Connection::getAutoCommit(), connectivity::java_sql_Statement_Base::getMoreResults(), connectivity::java_sql_ResultSet::getObject(), connectivity::java_sql_DatabaseMetaData::impl_callBooleanMethod(), connectivity::java_sql_ResultSet::isAfterLast(), connectivity::java_sql_ResultSet::isBeforeFirst(), connectivity::java_sql_Connection::isClosed(), connectivity::java_sql_ResultSet::isFirst(), connectivity::java_sql_ResultSet::isLast(), connectivity::java_sql_Connection::isReadOnly(), connectivity::java_sql_ResultSet::last(), connectivity::java_sql_ResultSet::next(), connectivity::java_sql_ResultSet::previous(), connectivity::java_sql_ResultSet::rowDeleted(), connectivity::java_sql_ResultSet::rowInserted(), connectivity::java_sql_ResultSet::rowUpdated(), connectivity::java_sql_CallableStatement::wasNull(), and connectivity::java_sql_ResultSet::wasNull().
bool java_lang_Object::callBooleanMethodWithIntArg | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
sal_Int32 | _nArgument | ||
) | const |
Definition at line 266 of file Object.cxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_ResultSet::absolute(), connectivity::java_sql_CallableStatement::getBoolean(), connectivity::java_sql_ResultSet::getBoolean(), connectivity::java_sql_DatabaseMetaData::impl_callBooleanMethodWithIntArg(), connectivity::java_sql_ResultSetMetaData::isAutoIncrement(), connectivity::java_sql_ResultSetMetaData::isCaseSensitive(), connectivity::java_sql_ResultSetMetaData::isCurrency(), connectivity::java_sql_ResultSetMetaData::isDefinitelyWritable(), connectivity::java_sql_ResultSetMetaData::isReadOnly(), connectivity::java_sql_ResultSetMetaData::isSearchable(), connectivity::java_sql_ResultSetMetaData::isSigned(), connectivity::java_sql_ResultSetMetaData::isWritable(), and connectivity::java_sql_ResultSet::relative().
sal_Int32 java_lang_Object::callIntMethod_ThrowRuntime | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 297 of file Object.cxx.
References obtainMethodId_throwRuntime(), t, and ThrowRuntimeException().
Referenced by connectivity::java_io_InputStream::available(), connectivity::java_sql_ResultSet::getFetchDirection(), connectivity::java_sql_ResultSet::getFetchSize(), connectivity::java_sql_ResultSet::getResultSetConcurrency(), connectivity::java_sql_ResultSet::getResultSetType(), connectivity::java_sql_DatabaseMetaData::impl_callIntMethod_ThrowRuntime(), and connectivity::java_sql_Statement_Base::impl_getProperty().
sal_Int32 java_lang_Object::callIntMethod_ThrowSQL | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 286 of file Object.cxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_PreparedStatement::executeUpdate(), connectivity::java_sql_Array::getBaseType(), connectivity::java_sql_ResultSetMetaData::getColumnCount(), connectivity::java_sql_SQLException_BASE::getErrorCode(), connectivity::java_sql_ResultSet::getRow(), connectivity::java_sql_Connection::getTransactionIsolation(), connectivity::java_sql_Statement_Base::getUpdateCount(), and connectivity::java_sql_DatabaseMetaData::impl_callIntMethod_ThrowSQL().
sal_Int32 java_lang_Object::callIntMethodWithIntArg_ThrowRuntime | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
sal_Int32 | _nArgument | ||
) | const |
Definition at line 319 of file Object.cxx.
References obtainMethodId_throwRuntime(), t, and ThrowRuntimeException().
Referenced by connectivity::java_io_InputStream::skipBytes(), and connectivity::java_io_Reader::skipBytes().
sal_Int32 java_lang_Object::callIntMethodWithIntArg_ThrowSQL | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
sal_Int32 | _nArgument | ||
) | const |
Definition at line 308 of file Object.cxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_ResultSetMetaData::getColumnDisplaySize(), connectivity::java_sql_ResultSetMetaData::getColumnType(), connectivity::java_sql_CallableStatement::getInt(), connectivity::java_sql_ResultSet::getInt(), connectivity::java_sql_ResultSetMetaData::getPrecision(), connectivity::java_sql_ResultSetMetaData::getScale(), and connectivity::java_sql_ResultSetMetaData::isNullable().
sal_Int32 java_lang_Object::callIntMethodWithStringArg | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
const OUString & | _nArgument | ||
) | const |
Definition at line 444 of file Object.cxx.
References connectivity::convertwchar_tToJavaString(), connectivity::jdbc::LocalRef< T >::get(), obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_Statement_Base::executeUpdate(), and connectivity::java_sql_ResultSet::findColumn().
|
inline |
Definition at line 124 of file Object.hxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
jobject java_lang_Object::callObjectMethod | ( | JNIEnv * | pEnv, |
const char * | _pMethodName, | ||
const char * | _pSignature, | ||
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 404 of file Object.cxx.
References obtainMethodId_throwSQL(), and ThrowSQLException().
Referenced by callResultSetMethod(), callStringMethod(), connectivity::java_sql_Statement::executeBatch(), connectivity::java_sql_PreparedStatement::executeBatch(), connectivity::java_sql_Blob::getBinaryStream(), connectivity::java_sql_Clob::getCharacterStream(), connectivity::java_sql_Connection::getMetaData(), connectivity::java_sql_PreparedStatement::getMetaData(), connectivity::java_sql_ResultSet::getMetaData(), connectivity::java_sql_SQLException_BASE::getNextException(), connectivity::java_sql_Connection::getTypeMap(), connectivity::java_sql_Connection::getWarnings(), connectivity::java_sql_Statement_Base::getWarnings(), and connectivity::java_sql_ResultSet::getWarnings().
jobject java_lang_Object::callObjectMethodWithIntArg | ( | JNIEnv * | pEnv, |
const char * | _pMethodName, | ||
const char * | _pSignature, | ||
jmethodID & | _inout_MethodID, | ||
sal_Int32 | _nArgument | ||
) | const |
Definition at line 415 of file Object.cxx.
References obtainMethodId_throwSQL(), and ThrowSQLException().
Referenced by callStringMethodWithIntArg(), connectivity::java_sql_CallableStatement::getArray(), connectivity::java_sql_ResultSet::getArray(), connectivity::java_sql_ResultSet::getBinaryStream(), connectivity::java_sql_CallableStatement::getBlob(), connectivity::java_sql_ResultSet::getBlob(), connectivity::java_sql_CallableStatement::getBytes(), connectivity::java_sql_ResultSet::getBytes(), connectivity::java_sql_ResultSet::getCharacterStream(), connectivity::java_sql_CallableStatement::getClob(), connectivity::java_sql_ResultSet::getClob(), connectivity::java_sql_CallableStatement::getDate(), connectivity::java_sql_ResultSet::getDate(), connectivity::java_sql_CallableStatement::getObject(), connectivity::java_sql_CallableStatement::getRef(), connectivity::java_sql_ResultSet::getRef(), connectivity::java_sql_CallableStatement::getTime(), connectivity::java_sql_ResultSet::getTime(), connectivity::java_sql_CallableStatement::getTimestamp(), and connectivity::java_sql_ResultSet::getTimestamp().
jobject java_lang_Object::callResultSetMethod | ( | JNIEnv & | _rEnv, |
const char * | _pMethodName, | ||
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 279 of file Object.cxx.
References callObjectMethod().
Referenced by connectivity::java_sql_PreparedStatement::executeQuery(), connectivity::java_sql_Statement_Base::getGeneratedValues(), connectivity::java_sql_Statement_Base::getResultSet(), and connectivity::java_sql_DatabaseMetaData::impl_callResultSetMethod().
OUString java_lang_Object::callStringMethod | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 394 of file Object.cxx.
References callObjectMethod(), connectivity::JavaString2String(), and t.
Referenced by connectivity::java_sql_Array::getBaseTypeName(), connectivity::java_sql_Ref::getBaseTypeName(), connectivity::java_sql_Connection::getCatalog(), connectivity::java_sql_Statement_Base::getCursorName(), connectivity::java_sql_ResultSet::getCursorName(), connectivity::java_lang_Throwable::getLocalizedMessage(), connectivity::java_lang_Throwable::getMessage(), connectivity::java_sql_SQLException_BASE::getSQLState(), connectivity::java_sql_DatabaseMetaData::impl_callStringMethod(), and toString().
OUString java_lang_Object::callStringMethodWithIntArg | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
sal_Int32 | _nArgument | ||
) | const |
Definition at line 424 of file Object.cxx.
References callObjectMethodWithIntArg(), connectivity::JavaString2String(), and t.
Referenced by connectivity::java_sql_ResultSetMetaData::getCatalogName(), connectivity::java_sql_ResultSetMetaData::getColumnLabel(), connectivity::java_sql_ResultSetMetaData::getColumnName(), connectivity::java_sql_ResultSetMetaData::getColumnServiceName(), connectivity::java_sql_ResultSetMetaData::getColumnTypeName(), connectivity::java_sql_ResultSetMetaData::getSchemaName(), connectivity::java_sql_CallableStatement::getString(), connectivity::java_sql_ResultSet::getString(), and connectivity::java_sql_ResultSetMetaData::getTableName().
void java_lang_Object::callVoidMethod_ThrowRuntime | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 341 of file Object.cxx.
References obtainMethodId_throwRuntime(), t, and ThrowRuntimeException().
Referenced by connectivity::java_sql_Statement_Base::cancel(), connectivity::java_sql_ResultSet::cancel(), connectivity::java_io_InputStream::closeInput(), and connectivity::java_io_Reader::closeInput().
|
inline |
Definition at line 134 of file Object.hxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
void java_lang_Object::callVoidMethod_ThrowSQL | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 330 of file Object.cxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_PreparedStatement::addBatch(), connectivity::java_sql_ResultSet::afterLast(), connectivity::java_sql_ResultSet::beforeFirst(), connectivity::java_sql_ResultSet::cancelRowUpdates(), connectivity::java_sql_Statement::clearBatch(), connectivity::java_sql_PreparedStatement::clearBatch(), connectivity::java_sql_PreparedStatement::clearParameters(), connectivity::java_sql_Connection::clearWarnings(), connectivity::java_sql_Statement_Base::clearWarnings(), connectivity::java_sql_ResultSet::clearWarnings(), connectivity::java_sql_Connection::commit(), connectivity::java_sql_ResultSet::deleteRow(), connectivity::java_sql_Connection::disposing(), connectivity::OStatement_BASE2::disposing(), connectivity::java_sql_ResultSet::disposing(), connectivity::java_sql_ResultSet::insertRow(), connectivity::java_sql_ResultSet::moveToCurrentRow(), connectivity::java_sql_ResultSet::moveToInsertRow(), connectivity::java_lang_Throwable::printStackTrace(), connectivity::java_sql_ResultSet::refreshRow(), connectivity::java_sql_Connection::rollback(), connectivity::java_sql_PreparedStatement::setBoolean(), connectivity::java_sql_PreparedStatement::setByte(), connectivity::java_sql_PreparedStatement::setDate(), connectivity::java_sql_PreparedStatement::setDouble(), connectivity::java_sql_PreparedStatement::setFloat(), connectivity::java_sql_PreparedStatement::setInt(), connectivity::java_sql_PreparedStatement::setLong(), connectivity::java_sql_PreparedStatement::setNull(), connectivity::java_sql_PreparedStatement::setShort(), connectivity::java_sql_PreparedStatement::setTime(), connectivity::java_sql_PreparedStatement::setTimestamp(), connectivity::java_sql_ResultSet::updateBoolean(), connectivity::java_sql_ResultSet::updateByte(), connectivity::java_sql_ResultSet::updateDate(), connectivity::java_sql_ResultSet::updateDouble(), connectivity::java_sql_ResultSet::updateFloat(), connectivity::java_sql_ResultSet::updateInt(), connectivity::java_sql_ResultSet::updateLong(), connectivity::java_sql_ResultSet::updateRow(), connectivity::java_sql_ResultSet::updateShort(), connectivity::java_sql_ResultSet::updateTime(), and connectivity::java_sql_ResultSet::updateTimestamp().
void java_lang_Object::callVoidMethodWithBoolArg_ThrowRuntime | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
bool | _nArgument | ||
) | const |
Definition at line 384 of file Object.cxx.
References obtainMethodId_throwRuntime(), t, and ThrowRuntimeException().
Referenced by connectivity::java_sql_Statement_Base::setEscapeProcessing().
void java_lang_Object::callVoidMethodWithBoolArg_ThrowSQL | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
bool | _nArgument | ||
) | const |
Definition at line 374 of file Object.cxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_Connection::setAutoCommit(), and connectivity::java_sql_Connection::setReadOnly().
void java_lang_Object::callVoidMethodWithIntArg_ThrowRuntime | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
sal_Int32 | _nArgument | ||
) | const |
Definition at line 363 of file Object.cxx.
References obtainMethodId_throwRuntime(), t, and ThrowRuntimeException().
Referenced by connectivity::java_sql_Statement_Base::setFetchDirection(), connectivity::java_sql_ResultSet::setFetchDirection(), connectivity::java_sql_Statement_Base::setFetchSize(), connectivity::java_sql_ResultSet::setFetchSize(), connectivity::java_sql_Statement_Base::setMaxFieldSize(), connectivity::java_sql_Statement_Base::setMaxRows(), and connectivity::java_sql_Statement_Base::setQueryTimeOut().
void java_lang_Object::callVoidMethodWithIntArg_ThrowSQL | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
sal_Int32 | _nArgument | ||
) | const |
Definition at line 352 of file Object.cxx.
References obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_Connection::setTransactionIsolation(), and connectivity::java_sql_ResultSet::updateNull().
void java_lang_Object::callVoidMethodWithStringArg | ( | const char * | _pMethodName, |
jmethodID & | _inout_MethodID, | ||
const OUString & | _nArgument | ||
) | const |
Definition at line 432 of file Object.cxx.
References connectivity::convertwchar_tToJavaString(), connectivity::jdbc::LocalRef< T >::get(), obtainMethodId_throwSQL(), t, and ThrowSQLException().
Referenced by connectivity::java_sql_Statement::addBatch(), connectivity::java_sql_Connection::setCatalog(), and connectivity::java_sql_Statement_Base::setCursorName().
void java_lang_Object::clearObject | ( | ) |
Definition at line 133 of file Object.cxx.
References clearObject(), and t.
Referenced by clearObject(), connectivity::java_sql_Statement_Base::disposing(), connectivity::java_sql_ResultSet::disposing(), connectivity::java_sql_Statement_Base::setResultSetConcurrency(), connectivity::java_sql_Statement_Base::setResultSetType(), ~java_lang_Object(), and connectivity::java_sql_Connection::~java_sql_Connection().
void java_lang_Object::clearObject | ( | JNIEnv & | rEnv | ) |
Definition at line 124 of file Object.cxx.
|
static |
Definition at line 466 of file Object.cxx.
References t.
Referenced by connectivity::createByteInputStream(), connectivity::createCharArrayReader(), getMyClass(), connectivity::java_io_InputStream::getMyClass(), connectivity::java_io_Reader::getMyClass(), connectivity::java_lang_Class::getMyClass(), connectivity::java_lang_Exception::getMyClass(), connectivity::java_math_BigDecimal::getMyClass(), connectivity::java_sql_Array::getMyClass(), connectivity::java_sql_Blob::getMyClass(), connectivity::java_sql_CallableStatement::getMyClass(), connectivity::java_sql_Clob::getMyClass(), connectivity::java_sql_Connection::getMyClass(), connectivity::java_sql_DatabaseMetaData::getMyClass(), connectivity::java_sql_DriverPropertyInfo::getMyClass(), connectivity::java_sql_Statement_Base::getMyClass(), connectivity::java_sql_Statement::getMyClass(), connectivity::java_sql_PreparedStatement::getMyClass(), connectivity::java_sql_Ref::getMyClass(), connectivity::java_sql_ResultSet::getMyClass(), connectivity::java_sql_ResultSetMetaData::getMyClass(), connectivity::java_sql_SQLWarning_BASE::getMyClass(), connectivity::java_util_Date::getMyClass(), connectivity::java_util_Properties::getMyClass(), connectivity::java_lang_Boolean::st_getMyClass(), connectivity::java_lang_String::st_getMyClass(), connectivity::java_lang_Throwable::st_getMyClass(), connectivity::java_sql_SQLException_BASE::st_getMyClass(), connectivity::java_sql_Date::st_getMyClass(), connectivity::java_sql_Time::st_getMyClass(), and connectivity::java_sql_Timestamp::st_getMyClass().
|
inline |
Definition at line 83 of file Object.hxx.
References object.
Referenced by connectivity::java_sql_PreparedStatement::setDate(), connectivity::java_sql_PreparedStatement::setTime(), connectivity::java_sql_PreparedStatement::setTimestamp(), connectivity::java_sql_ResultSet::updateDate(), connectivity::java_sql_ResultSet::updateTime(), and connectivity::java_sql_ResultSet::updateTimestamp().
|
protectedvirtual |
Reimplemented in connectivity::java_io_InputStream, connectivity::java_io_Reader, connectivity::java_lang_Boolean, connectivity::java_lang_Class, connectivity::java_lang_Exception, connectivity::java_lang_String, connectivity::java_lang_Throwable, connectivity::java_math_BigDecimal, connectivity::java_sql_Array, connectivity::java_sql_Blob, connectivity::java_sql_CallableStatement, connectivity::java_sql_Clob, connectivity::java_sql_Connection, connectivity::java_sql_DatabaseMetaData, connectivity::java_sql_DriverPropertyInfo, connectivity::java_sql_Statement_Base, connectivity::java_sql_Statement, connectivity::java_sql_PreparedStatement, connectivity::java_sql_Ref, connectivity::java_sql_ResultSet, connectivity::java_sql_ResultSetMetaData, connectivity::java_sql_SQLException_BASE, connectivity::java_sql_SQLWarning_BASE, connectivity::java_sql_Date, connectivity::java_sql_Time, connectivity::java_sql_Timestamp, connectivity::java_util_Date, and connectivity::java_util_Properties.
Definition at line 93 of file Object.cxx.
References findMyClass(), and theClass.
Referenced by obtainMethodId_throwRuntime(), and obtainMethodId_throwSQL().
rtl::Reference< jvmaccess::VirtualMachine > java_lang_Object::getVM | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rxContext = nullptr | ) |
Definition at line 49 of file Object.cxx.
References getJavaVM2().
Referenced by connectivity::java_sql_Connection::construct(), and connectivity::java_sql_Connection::~java_sql_Connection().
void java_lang_Object::obtainMethodId_throwRuntime | ( | JNIEnv * | _pEnv, |
const char * | _pMethodName, | ||
const char * | _pSignature, | ||
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 240 of file Object.cxx.
References getMyClass().
Referenced by connectivity::java_io_Reader::available(), callIntMethod_ThrowRuntime(), callIntMethodWithIntArg_ThrowRuntime(), callVoidMethod_ThrowRuntime(), callVoidMethodWithBoolArg_ThrowRuntime(), callVoidMethodWithIntArg_ThrowRuntime(), connectivity::java_io_InputStream::readBytes(), and connectivity::java_io_Reader::readBytes().
void java_lang_Object::obtainMethodId_throwSQL | ( | JNIEnv * | _pEnv, |
const char * | _pMethodName, | ||
const char * | _pSignature, | ||
jmethodID & | _inout_MethodID | ||
) | const |
Definition at line 229 of file Object.cxx.
References getMyClass().
Referenced by callBooleanMethod(), callBooleanMethodWithIntArg(), callIntMethod_ThrowSQL(), callIntMethodWithIntArg_ThrowSQL(), callIntMethodWithStringArg(), callMethodWithIntArg(), callObjectMethod(), callObjectMethodWithIntArg(), callVoidMethod_ThrowSQL(), callVoidMethodWithBoolArg_ThrowSQL(), callVoidMethodWithIntArg_ThrowSQL(), callVoidMethodWithStringArg(), connectivity::java_sql_Statement_Base::execute(), connectivity::java_sql_Statement_Base::executeQuery(), connectivity::java_sql_Array::getArray(), connectivity::java_sql_Array::getArrayAtIndex(), connectivity::java_sql_DatabaseMetaData::getBestRowIdentifier(), connectivity::java_sql_Blob::getBytes(), connectivity::java_sql_DatabaseMetaData::getCrossReference(), connectivity::java_sql_DatabaseMetaData::getIndexInfo(), connectivity::java_sql_ResultSet::getObject(), connectivity::java_sql_Array::getResultSet(), connectivity::java_sql_Array::getResultSetAtIndex(), connectivity::java_sql_Clob::getSubString(), connectivity::java_sql_DatabaseMetaData::getTables(), connectivity::java_sql_DatabaseMetaData::getUDTs(), connectivity::java_sql_DatabaseMetaData::impl_callResultSetMethodWithStrings(), connectivity::java_math_BigDecimal::java_math_BigDecimal(), connectivity::java_util_Properties::java_util_Properties(), connectivity::java_sql_Blob::length(), connectivity::java_sql_Clob::length(), connectivity::java_sql_Connection::nativeSQL(), connectivity::java_sql_Blob::position(), connectivity::java_sql_Clob::position(), connectivity::java_sql_CallableStatement::registerNumericOutParameter(), connectivity::java_sql_CallableStatement::registerOutParameter(), connectivity::java_sql_PreparedStatement::setBinaryStream(), connectivity::java_sql_PreparedStatement::setBytes(), connectivity::java_sql_PreparedStatement::setCharacterStream(), connectivity::java_sql_PreparedStatement::setObjectWithInfo(), connectivity::java_util_Properties::setProperty(), connectivity::java_sql_PreparedStatement::setString(), connectivity::java_sql_DatabaseMetaData::supportsConvert(), connectivity::java_sql_DatabaseMetaData::supportsResultSetConcurrency(), connectivity::java_sql_ResultSet::updateBinaryStream(), connectivity::java_sql_ResultSet::updateBytes(), connectivity::java_sql_ResultSet::updateCharacterStream(), connectivity::java_sql_ResultSet::updateNumericObject(), and connectivity::java_sql_ResultSet::updateString().
|
privatedelete |
void java_lang_Object::saveRef | ( | JNIEnv * | pEnv, |
jobject | myObj | ||
) |
Definition at line 142 of file Object.cxx.
Referenced by connectivity::java_math_BigDecimal::java_math_BigDecimal(), connectivity::java_sql_Date::java_sql_Date(), connectivity::java_sql_Time::java_sql_Time(), connectivity::java_sql_Timestamp::java_sql_Timestamp(), and connectivity::java_util_Properties::java_util_Properties().
|
static |
Definition at line 197 of file Object.cxx.
References STR_LOG_THROWING_EXCEPTION.
Referenced by connectivity::java_sql_Connection::construct(), connectivity::java_sql_CallableStatement::createStatement(), connectivity::java_sql_Statement::createStatement(), connectivity::java_sql_PreparedStatement::createStatement(), connectivity::java_sql_Statement_Base::execute(), connectivity::java_sql_Statement_Base::executeQuery(), connectivity::java_sql_DatabaseMetaData::getBestRowIdentifier(), connectivity::java_sql_DatabaseMetaData::getCrossReference(), connectivity::java_sql_DatabaseMetaData::getIndexInfo(), connectivity::java_sql_ResultSet::getObject(), connectivity::java_sql_DatabaseMetaData::getUDTs(), connectivity::java_sql_DatabaseMetaData::impl_callResultSetMethodWithStrings(), connectivity::java_sql_Connection::loadDriverFromProperties(), connectivity::java_sql_Connection::nativeSQL(), connectivity::java_sql_CallableStatement::registerNumericOutParameter(), connectivity::java_sql_CallableStatement::registerOutParameter(), connectivity::java_sql_PreparedStatement::setBinaryStream(), connectivity::java_sql_PreparedStatement::setBytes(), connectivity::java_sql_PreparedStatement::setCharacterStream(), connectivity::java_sql_PreparedStatement::setObjectWithInfo(), connectivity::java_sql_PreparedStatement::setString(), connectivity::java_sql_DatabaseMetaData::supportsConvert(), connectivity::java_sql_DatabaseMetaData::supportsResultSetConcurrency(), connectivity::java_sql_ResultSet::updateBinaryStream(), connectivity::java_sql_ResultSet::updateBytes(), connectivity::java_sql_ResultSet::updateCharacterStream(), connectivity::java_sql_ResultSet::updateNumericObject(), and connectivity::java_sql_ResultSet::updateString().
|
static |
Definition at line 215 of file Object.cxx.
References cppu::getCaughtException(), and ThrowSQLException().
Referenced by connectivity::java_io_Reader::available(), callIntMethod_ThrowRuntime(), callIntMethodWithIntArg_ThrowRuntime(), callVoidMethod_ThrowRuntime(), callVoidMethodWithBoolArg_ThrowRuntime(), callVoidMethodWithIntArg_ThrowRuntime(), connectivity::java_io_InputStream::readBytes(), and connectivity::java_io_Reader::readBytes().
|
static |
Definition at line 208 of file Object.cxx.
Referenced by callBooleanMethod(), callBooleanMethodWithIntArg(), callIntMethod_ThrowSQL(), callIntMethodWithIntArg_ThrowSQL(), callIntMethodWithStringArg(), callMethodWithIntArg(), callObjectMethod(), callObjectMethodWithIntArg(), callVoidMethod_ThrowSQL(), callVoidMethodWithBoolArg_ThrowSQL(), callVoidMethodWithIntArg_ThrowSQL(), callVoidMethodWithStringArg(), connectivity::java_lang_Class::forName(), connectivity::java_sql_Array::getArray(), connectivity::java_sql_Array::getArrayAtIndex(), connectivity::java_sql_Blob::getBytes(), connectivity::java_sql_Array::getResultSet(), connectivity::java_sql_Array::getResultSetAtIndex(), connectivity::java_sql_Clob::getSubString(), connectivity::java_math_BigDecimal::java_math_BigDecimal(), connectivity::java_sql_Blob::length(), connectivity::java_sql_Clob::length(), connectivity::java_lang_Class::newInstanceObject(), connectivity::java_sql_Blob::position(), connectivity::java_sql_Clob::position(), connectivity::java_util_Properties::setProperty(), and ThrowRuntimeException().
OUString java_lang_Object::toString | ( | ) | const |
Definition at line 150 of file Object.cxx.
References callStringMethod().
|
protected |
Definition at line 65 of file Object.hxx.
Referenced by getJavaObject().
|
staticprotected |
Definition at line 69 of file Object.hxx.
Referenced by getMyClass().