LibreOffice Module connectivity (master) 1
|
#include <JStatement.hxx>
Public Member Functions | |
DECLARE_SERVICE_INFO () | |
virtual jclass | getMyClass () const override |
java_sql_Statement (JNIEnv *pEnv, java_sql_Connection &_rCon) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | addBatch (const OUString &sql) override |
virtual void SAL_CALL | clearBatch () override |
virtual css::uno::Sequence< sal_Int32 > SAL_CALL | executeBatch () override |
Public Member Functions inherited from connectivity::OStatement_BASE2 | |
OStatement_BASE2 (JNIEnv *pEnv, java_sql_Connection &_rCon) | |
virtual void SAL_CALL | disposing () override |
Public Member Functions inherited from connectivity::java_sql_Statement_Base | |
virtual jclass | getMyClass () const override |
java_sql_Statement_Base (JNIEnv *pEnv, java_sql_Connection &_rCon) | |
sal_Int32 | getStatementObjectID () const |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL | executeQuery (const OUString &sql) override |
virtual sal_Int32 SAL_CALL | executeUpdate (const OUString &sql) override |
virtual sal_Bool SAL_CALL | execute (const OUString &sql) override |
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL | getConnection () override |
virtual css::uno::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () override |
virtual void SAL_CALL | cancel () override |
virtual void SAL_CALL | close () override |
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL | getResultSet () override |
virtual sal_Int32 SAL_CALL | getUpdateCount () override |
virtual sal_Bool SAL_CALL | getMoreResults () override |
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL | getGeneratedValues () override |
Public Member Functions inherited from connectivity::java_lang_Object | |
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 |
Public Member Functions inherited from cppu::OPropertySetHelper | |
OPropertySetHelper (OBroadcastHelper &rBHelper) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring) | |
OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
css::uno::Sequence< css::uno::Type > | getTypes () |
void SAL_CALL | disposing () |
virtual void SAL_CALL | setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getPropertyValue (const ::rtl::OUString &aPropertyName) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) SAL_OVERRIDE |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) SAL_OVERRIDE |
virtual void SAL_CALL | setPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPropertyValues (const css::uno::Sequence< ::rtl::OUString > &PropertyNames) SAL_OVERRIDE |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
virtual void SAL_CALL | firePropertiesChangeEvent (const css::uno::Sequence< ::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) SAL_OVERRIDE |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< java_sql_Statement_Base > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
virtual void | createStatement (JNIEnv *_pEnv) override |
virtual | ~java_sql_Statement () override |
Protected Member Functions inherited from connectivity::java_sql_Statement_Base | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual void | createStatement (JNIEnv *_pEnv)=0 |
virtual | ~java_sql_Statement_Base () override |
sal_Int32 | impl_getProperty (const char *_pMethodName, jmethodID &_inout_MethodID) |
sal_Int32 | impl_getProperty (const char *_pMethodName, jmethodID &_inout_MethodID, sal_Int32 _nDefault) |
virtual jclass | getMyClass () const |
Protected Member Functions inherited from cppu::OPropertySetHelper | |
void SAL_CALL | fire (sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, sal_Bool bVetoable) |
void SAL_CALL | setFastPropertyValues (sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount) |
virtual IPropertyArrayHelper &SAL_CALL | getInfoHelper ()=0 |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue)=0 |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const=0 |
void | setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value) |
~OPropertySetHelper () | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const =0 |
Static Protected Attributes | |
static jclass | theClass = nullptr |
Static Protected Attributes inherited from connectivity::java_sql_Statement_Base | |
static jclass | theClass = nullptr |
Static Protected Attributes inherited from connectivity::java_lang_Object | |
static jclass | theClass = nullptr |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< java_sql_Statement_Base > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Additional Inherited Members | |
Static Public Member Functions inherited from connectivity::java_lang_Object | |
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) |
Static Public Member Functions inherited from cppu::OPropertySetHelper | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< java_sql_Statement_Base > | |
static std::mutex & | theMutex () |
Protected Attributes inherited from connectivity::java_sql_Statement_Base | |
css::uno::Reference< css::sdbc::XStatement > | m_xGeneratedStatement |
rtl::Reference< java_sql_Connection > | m_pConnection |
java::sql::ConnectionLog | m_aLogger |
OUString | m_sSqlStatement |
sal_Int32 | m_nResultSetConcurrency |
sal_Int32 | m_nResultSetType |
bool | m_bEscapeProcessing |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Protected Attributes inherited from connectivity::java_lang_Object | |
jobject | object |
Protected Attributes inherited from cppu::OPropertySetHelper | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Definition at line 206 of file JStatement.hxx.
|
overrideprotectedvirtual |
Definition at line 788 of file JStatement.cxx.
|
inline |
Definition at line 222 of file JStatement.hxx.
|
overridevirtualnoexcept |
Reimplemented from connectivity::java_sql_Statement_Base.
Definition at line 848 of file JStatement.cxx.
References connectivity::java_sql_Statement_Base::acquire().
|
overridevirtual |
Definition at line 294 of file JStatement.cxx.
References connectivity::java_lang_Object::callVoidMethodWithStringArg(), connectivity::checkDisposed(), createStatement(), cppu::BaseMutex::m_aMutex, and t.
|
overridevirtual |
Definition at line 198 of file JStatement.cxx.
References connectivity::java_lang_Object::callVoidMethod_ThrowSQL(), createStatement(), and t.
|
overrideprotectedvirtual |
Implements connectivity::java_sql_Statement_Base.
Definition at line 800 of file JStatement.cxx.
References connectivity::checkDisposed(), connectivity::java_sql_Statement_Base::m_aLogger, cppu::BaseMutex::m_aMutex, connectivity::java_sql_Statement_Base::m_nResultSetConcurrency, connectivity::java_sql_Statement_Base::m_nResultSetType, connectivity::java_sql_Statement_Base::m_pConnection, and connectivity::java_lang_Object::ThrowLoggedSQLException().
Referenced by addBatch(), clearBatch(), and executeBatch().
connectivity::java_sql_Statement::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Definition at line 307 of file JStatement.cxx.
References aSeq, connectivity::java_lang_Object::callObjectMethod(), connectivity::checkDisposed(), createStatement(), cppu::BaseMutex::m_aMutex, p, and t.
|
overridevirtual |
Reimplemented from connectivity::java_sql_Statement_Base.
Definition at line 791 of file JStatement.cxx.
References connectivity::java_lang_Object::findMyClass(), and theClass.
|
overridevirtual |
Reimplemented from connectivity::java_sql_Statement_Base.
Definition at line 287 of file JStatement.cxx.
References Any, and connectivity::java_sql_Statement_Base::queryInterface().
|
overridevirtualnoexcept |
Reimplemented from connectivity::java_sql_Statement_Base.
Definition at line 853 of file JStatement.cxx.
References connectivity::java_sql_Statement_Base::release().
|
staticprotected |
Definition at line 212 of file JStatement.hxx.
Referenced by getMyClass().