LibreOffice Module connectivity (master) 1
|
#include <StatementCommonBase.hxx>
Public Member Functions | |
OStatementCommonBase (Connection *_pConnection) | |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | acquire () 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::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () 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 void SAL_CALL | cancel () override |
virtual void SAL_CALL | close () override |
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 connectivity::firebird::OPropertyArrayUsageHelper< OStatementCommonBase > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
call this in the getInfoHelper method of your derived class. More... | |
Protected Member Functions | |
virtual void | disposeResultSet () |
void | freeStatementHandle () |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
used to implement the creation of the array helper which is shared amongst all instances of the class. More... | |
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 | ~OStatementCommonBase () override |
void | prepareAndDescribeStatement (std::u16string_view sqlIn, XSQLDA *&pOutSqlda) |
short | getSqlInfoItem (char aInfoItem) |
bool | isDDLStatement () |
sal_Int32 | getStatementChangeCount () |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
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 |
used to implement the creation of the array helper which is shared amongst all instances of the class. More... | |
Protected Attributes | |
::osl::Mutex | m_aMutex |
css::uno::Reference< css::sdbc::XResultSet > | m_xResultSet |
::rtl::Reference< Connection > | m_pConnection |
ISC_STATUS_ARRAY | m_statusVector |
isc_stmt_handle | m_aStatementHandle |
Protected Attributes inherited from cppu::OPropertySetHelper | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Additional Inherited Members | |
Static Public Member Functions inherited from cppu::OPropertySetHelper | |
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | createPropertySetInfo (IPropertyArrayHelper &rProperties) |
Static Protected Attributes inherited from connectivity::firebird::OPropertyArrayUsageHelper< OStatementCommonBase > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
::osl::Mutex | s_aMutex |
Definition at line 47 of file StatementCommonBase.hxx.
|
overrideprotectedvirtual |
Definition at line 59 of file StatementCommonBase.cxx.
|
explicit |
Definition at line 47 of file StatementCommonBase.cxx.
|
overridevirtualnoexcept |
Reimplemented in connectivity::firebird::OPreparedStatement, and connectivity::firebird::OStatement.
Definition at line 366 of file StatementCommonBase.cxx.
Referenced by connectivity::firebird::OPreparedStatement::acquire(), and connectivity::firebird::OStatement::acquire().
|
overridevirtual |
Definition at line 104 of file StatementCommonBase.cxx.
References connectivity::firebird::checkDisposed(), and m_aMutex.
|
overridevirtual |
Definition at line 236 of file StatementCommonBase.cxx.
|
overridevirtual |
Reimplemented in connectivity::firebird::OPreparedStatement.
Definition at line 111 of file StatementCommonBase.cxx.
References connectivity::firebird::checkDisposed(), dispose(), disposeResultSet(), freeStatementHandle(), m_aMutex, and SAL_INFO.
Referenced by connectivity::firebird::OPreparedStatement::close(), and connectivity::firebird::OStatement::disposing().
|
overrideprotectedvirtual |
Implements cppu::OPropertySetHelper.
Definition at line 317 of file StatementCommonBase.cxx.
|
overrideprotectedvirtual |
used to implement the creation of the array helper which is shared amongst all instances of the class.
This method needs to be implemented in derived classes.
The method gets called with s_aMutex acquired.
Implements connectivity::firebird::OPropertyArrayUsageHelper< OStatementCommonBase >.
Definition at line 240 of file StatementCommonBase.cxx.
References cppu::UnoType< typename T >::get(), dbtools::OPropertyMap::getNameByIndex(), connectivity::OMetaConnection::getPropMap(), PROPERTY_ID_CURSORNAME, PROPERTY_ID_ESCAPEPROCESSING, PROPERTY_ID_FETCHDIRECTION, PROPERTY_ID_FETCHSIZE, PROPERTY_ID_MAXFIELDSIZE, PROPERTY_ID_MAXROWS, PROPERTY_ID_QUERYTIMEOUT, PROPERTY_ID_RESULTSETCONCURRENCY, PROPERTY_ID_RESULTSETTYPE, and PROPERTY_ID_USEBOOKMARKS.
|
protectedvirtual |
Reimplemented in connectivity::firebird::OStatement.
Definition at line 63 of file StatementCommonBase.cxx.
References m_xResultSet.
Referenced by close(), connectivity::firebird::OStatement::disposeResultSet(), disposing(), and connectivity::firebird::OPreparedStatement::execute().
|
inlineoverridevirtual |
Reimplemented in connectivity::firebird::OPreparedStatement, and connectivity::firebird::OStatement.
Definition at line 102 of file StatementCommonBase.hxx.
References disposeResultSet().
|
protected |
css::sdbc::SQLException |
Definition at line 71 of file StatementCommonBase.cxx.
References connectivity::firebird::evaluateStatusVector(), m_aStatementHandle, m_statusVector, and u.
Referenced by close(), and prepareAndDescribeStatement().
|
overrideprotectedvirtual |
Implements cppu::OPropertySetHelper.
Definition at line 347 of file StatementCommonBase.cxx.
References nHandle, PROPERTY_ID_CURSORNAME, PROPERTY_ID_ESCAPEPROCESSING, PROPERTY_ID_FETCHDIRECTION, PROPERTY_ID_FETCHSIZE, PROPERTY_ID_MAXFIELDSIZE, PROPERTY_ID_MAXROWS, PROPERTY_ID_QUERYTIMEOUT, PROPERTY_ID_RESULTSETCONCURRENCY, PROPERTY_ID_RESULTSETTYPE, and PROPERTY_ID_USEBOOKMARKS.
|
protectedvirtual |
Reimplemented from cppu::OPropertySetHelper.
|
protected |
|
overrideprotectedvirtual |
Implements cppu::OPropertySetHelper.
Definition at line 312 of file StatementCommonBase.cxx.
References connectivity::firebird::OPropertyArrayUsageHelper< OStatementCommonBase >::getArrayHelper().
Referenced by getPropertySetInfo().
|
overridevirtual |
Definition at line 215 of file StatementCommonBase.cxx.
|
overridevirtual |
Definition at line 376 of file StatementCommonBase.cxx.
References getInfoHelper().
|
overridevirtual |
Definition at line 205 of file StatementCommonBase.cxx.
References connectivity::firebird::checkDisposed(), m_aMutex, and m_xResultSet.
|
protected |
css::sdbc::SQLException |
Definition at line 381 of file StatementCommonBase.cxx.
References connectivity::firebird::evaluateStatusVector(), m_aStatementHandle, and u.
Referenced by getStatementChangeCount(), and isDDLStatement().
|
protected |
css::sdbc::SQLException |
Definition at line 413 of file StatementCommonBase.cxx.
References connectivity::firebird::evaluateStatusVector(), getSqlInfoItem(), m_aStatementHandle, and u.
Referenced by connectivity::firebird::OPreparedStatement::executeUpdate(), and connectivity::firebird::OStatement::executeUpdate().
|
overridevirtual |
Reimplemented in connectivity::firebird::OPreparedStatement, and connectivity::firebird::OStatement.
Definition at line 93 of file StatementCommonBase.cxx.
References aTypes, and concatSequences().
Referenced by connectivity::firebird::OPreparedStatement::getTypes(), and connectivity::firebird::OStatement::getTypes().
|
overridevirtual |
Definition at line 223 of file StatementCommonBase.cxx.
|
overridevirtual |
Definition at line 231 of file StatementCommonBase.cxx.
References Any.
|
protected |
css::sdbc::SQLException |
Definition at line 408 of file StatementCommonBase.cxx.
References getSqlInfoItem().
Referenced by connectivity::firebird::OStatement::executeQuery().
|
protected |
css::sdbc::SQLException |
Definition at line 125 of file StatementCommonBase.cxx.
References connectivity::firebird::evaluateStatusVector(), freeStatementHandle(), m_aStatementHandle, m_pConnection, m_statusVector, connectivity::firebird::mallocSQLVAR(), n, pq_sdbc_driver::OUStringToOString(), and u.
Referenced by connectivity::firebird::OPreparedStatement::ensurePrepared(), and connectivity::firebird::OStatement::executeQuery().
|
overridevirtual |
Reimplemented from cppu::OPropertySetHelper.
Reimplemented in connectivity::firebird::OPreparedStatement, and connectivity::firebird::OStatement.
Definition at line 85 of file StatementCommonBase.cxx.
References Any, and comphelper::OPropertySetHelper::queryInterface().
|
overridevirtualnoexcept |
Reimplemented in connectivity::firebird::OPreparedStatement, and connectivity::firebird::OStatement.
Definition at line 371 of file StatementCommonBase.cxx.
Referenced by connectivity::firebird::OPreparedStatement::release(), and connectivity::firebird::OStatement::release().
|
overrideprotectedvirtual |
Implements cppu::OPropertySetHelper.
Reimplemented in connectivity::firebird::OPreparedStatement.
Definition at line 327 of file StatementCommonBase.cxx.
References nHandle, PROPERTY_ID_CURSORNAME, PROPERTY_ID_ESCAPEPROCESSING, PROPERTY_ID_FETCHDIRECTION, PROPERTY_ID_FETCHSIZE, PROPERTY_ID_MAXFIELDSIZE, PROPERTY_ID_MAXROWS, PROPERTY_ID_QUERYTIMEOUT, PROPERTY_ID_RESULTSETCONCURRENCY, PROPERTY_ID_RESULTSETTYPE, and PROPERTY_ID_USEBOOKMARKS.
|
protected |
Definition at line 53 of file StatementCommonBase.hxx.
Referenced by cancel(), connectivity::firebird::OPreparedStatement::close(), close(), connectivity::firebird::OStatement::disposeResultSet(), connectivity::firebird::OPreparedStatement::ensurePrepared(), connectivity::firebird::OPreparedStatement::execute(), connectivity::firebird::OStatement::executeQuery(), connectivity::firebird::OPreparedStatement::getConnection(), connectivity::firebird::OStatement::getConnection(), connectivity::firebird::OPreparedStatement::getMetaData(), getResultSet(), connectivity::firebird::OPreparedStatement::setClob(), connectivity::firebird::OPreparedStatement::setDouble(), connectivity::firebird::OPreparedStatement::setNull(), connectivity::firebird::OPreparedStatement::setObjectNull(), connectivity::firebird::OPreparedStatement::setString(), and connectivity::firebird::OPreparedStatement::setValue().
|
protected |
Definition at line 61 of file StatementCommonBase.hxx.
Referenced by connectivity::firebird::OPreparedStatement::ensurePrepared(), connectivity::firebird::OPreparedStatement::execute(), connectivity::firebird::OStatement::executeQuery(), freeStatementHandle(), getSqlInfoItem(), getStatementChangeCount(), and prepareAndDescribeStatement().
|
protected |
Definition at line 58 of file StatementCommonBase.hxx.
Referenced by connectivity::firebird::OPreparedStatement::execute(), connectivity::firebird::OStatement::executeQuery(), connectivity::firebird::OPreparedStatement::getConnection(), connectivity::firebird::OStatement::getConnection(), connectivity::firebird::OPreparedStatement::getMetaData(), connectivity::firebird::OPreparedStatement::openBlobForWriting(), and prepareAndDescribeStatement().
|
protected |
Definition at line 60 of file StatementCommonBase.hxx.
Referenced by connectivity::firebird::OPreparedStatement::closeBlobAfterWriting(), connectivity::firebird::OPreparedStatement::ensurePrepared(), connectivity::firebird::OPreparedStatement::execute(), connectivity::firebird::OStatement::executeQuery(), freeStatementHandle(), connectivity::firebird::OPreparedStatement::openBlobForWriting(), prepareAndDescribeStatement(), and connectivity::firebird::OPreparedStatement::setClob().
|
protected |
Definition at line 55 of file StatementCommonBase.hxx.
Referenced by disposeResultSet(), connectivity::firebird::OPreparedStatement::execute(), connectivity::firebird::OPreparedStatement::executeQuery(), connectivity::firebird::OStatement::executeQuery(), and getResultSet().