LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OStatementBase Class Reference

#include <statement.hxx>

Inheritance diagram for OStatementBase:
[legend]
Collaboration diagram for OStatementBase:
[legend]

Public Member Functions

 OStatementBase (const css::uno::Reference< css::sdbc::XConnection > &_xConn, const css::uno::Reference< css::uno::XInterface > &_xStatement)
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
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 disposing () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () 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 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 void SAL_CALL addBatch () override
 
virtual void SAL_CALL clearBatch () override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getGeneratedValues () override
 
void disposeResultSet ()
 
- Public Member Functions inherited from OSubComponent
 OSubComponent (::osl::Mutex &_rMutex, const css::uno::Reference< css::uno::XInterface > &_xParent)
 
virtual void SAL_CALL release () noexcept override
 
 operator css::uno::Reference< css::uno::XInterface > () 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< OStatementBase >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

virtual ~OStatementBase () override
 
- Protected Member Functions inherited from OSubComponent
virtual ~OSubComponent () override
 
- 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::IPropertyArrayHelpercreateArrayHelper () const =0
 

Protected Attributes

::osl::Mutex m_aCancelMutex
 
css::uno::WeakReferenceHelper m_aResultSet
 
css::uno::Reference< css::beans::XPropertySetm_xAggregateAsSet
 
css::uno::Reference< css::util::XCancellable > m_xAggregateAsCancellable
 
bool m_bUseBookmarks
 
bool m_bEscapeProcessing
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from OSubComponent
css::uno::Reference< css::uno::XInterface > m_xParent
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
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 Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OStatementBase >
static std::mutextheMutex ()
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OStatementBase >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 41 of file statement.hxx.

Constructor & Destructor Documentation

◆ ~OStatementBase()

OStatementBase::~OStatementBase ( )
overrideprotectedvirtual

Definition at line 59 of file statement.cxx.

◆ OStatementBase()

OStatementBase::OStatementBase ( const css::uno::Reference< css::sdbc::XConnection > &  _xConn,
const css::uno::Reference< css::uno::XInterface > &  _xStatement 
)

Definition at line 46 of file statement.cxx.

References m_aMutex, m_xAggregateAsCancellable, and m_xAggregateAsSet.

Member Function Documentation

◆ acquire()

void OStatementBase::acquire ( )
overridevirtualnoexcept

◆ addBatch()

void SAL_CALL OStatementBase::addBatch ( )
overridevirtual

◆ cancel()

void OStatementBase::cancel ( )
overridevirtual

Definition at line 310 of file statement.cxx.

References m_aCancelMutex, and m_xAggregateAsCancellable.

◆ clearBatch()

void SAL_CALL OStatementBase::clearBatch ( )
overridevirtual

◆ clearWarnings()

void OStatementBase::clearWarnings ( )
overridevirtual

Definition at line 301 of file statement.cxx.

References cppu::BaseMutex::m_aMutex, and m_xAggregateAsSet.

◆ close()

void OStatementBase::close ( )
overridevirtual

Definition at line 163 of file statement.cxx.

References dispose(), and cppu::BaseMutex::m_aMutex.

◆ convertFastPropertyValue()

sal_Bool OStatementBase::convertFastPropertyValue ( css::uno::Any &  rConvertedValue,
css::uno::Any &  rOldValue,
sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

◆ createArrayHelper()

cppu::IPropertyArrayHelper * OStatementBase::createArrayHelper ( ) const
overridevirtual

◆ disposeResultSet()

void OStatementBase::disposeResultSet ( )

◆ disposing()

void OStatementBase::disposing ( )
overridevirtual

◆ executeBatch()

Sequence< sal_Int32 > SAL_CALL OStatementBase::executeBatch ( )
overridevirtual

◆ getFastPropertyValue()

void OStatementBase::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overridevirtual

◆ getGeneratedValues()

Reference< XResultSet > SAL_CALL OStatementBase::getGeneratedValues ( )
overridevirtual

Definition at line 405 of file statement.cxx.

References cppu::BaseMutex::m_aMutex, and m_xAggregateAsSet.

◆ getInfoHelper()

cppu::IPropertyArrayHelper & OStatementBase::getInfoHelper ( )
overridevirtual

◆ getMoreResults()

sal_Bool SAL_CALL OStatementBase::getMoreResults ( )
overridevirtual

◆ getPropertySetInfo()

Reference< XPropertySetInfo > OStatementBase::getPropertySetInfo ( )
overridevirtual

◆ getResultSet()

Reference< XResultSet > SAL_CALL OStatementBase::getResultSet ( )
overridevirtual

◆ getTypes()

Sequence< Type > OStatementBase::getTypes ( )
overridevirtual

Reimplemented in dbaccess::OCallableStatement, and dbaccess::OPreparedStatement.

Definition at line 64 of file statement.cxx.

References aTypes, and m_xAggregateAsSet.

Referenced by dbaccess::OPreparedStatement::getTypes().

◆ getUpdateCount()

sal_Int32 SAL_CALL OStatementBase::getUpdateCount ( )
overridevirtual

◆ getWarnings()

Any OStatementBase::getWarnings ( )
overridevirtual

Definition at line 293 of file statement.cxx.

References Any, cppu::BaseMutex::m_aMutex, and m_xAggregateAsSet.

◆ queryInterface()

Any OStatementBase::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OPropertySetHelper.

Reimplemented in dbaccess::OCallableStatement, and dbaccess::OPreparedStatement.

Definition at line 83 of file statement.cxx.

References Any, m_xAggregateAsSet, and XPropertySet.

◆ release()

void OStatementBase::release ( )
overridevirtualnoexcept

Reimplemented from OSubComponent.

Reimplemented in dbaccess::OCallableStatement, and dbaccess::OPreparedStatement.

Definition at line 116 of file statement.cxx.

References OSubComponent::release().

Referenced by dbaccess::OPreparedStatement::release().

◆ setFastPropertyValue_NoBroadcast()

void OStatementBase::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

Member Data Documentation

◆ m_aCancelMutex

::osl::Mutex OStatementBase::m_aCancelMutex
protected

Definition at line 53 of file statement.hxx.

Referenced by cancel(), and disposing().

◆ m_aResultSet

css::uno::WeakReferenceHelper OStatementBase::m_aResultSet
protected

◆ m_bEscapeProcessing

bool OStatementBase::m_bEscapeProcessing
protected

◆ m_bUseBookmarks

bool OStatementBase::m_bUseBookmarks
protected

◆ m_xAggregateAsCancellable

css::uno::Reference< css::util::XCancellable > OStatementBase::m_xAggregateAsCancellable
protected

Definition at line 57 of file statement.hxx.

Referenced by cancel(), disposing(), and OStatementBase().

◆ m_xAggregateAsSet

css::uno::Reference< css::beans::XPropertySet > OStatementBase::m_xAggregateAsSet
protected

Definition at line 56 of file statement.hxx.

Referenced by addBatch(), OStatement::addBatch(), clearBatch(), OStatement::clearBatch(), clearWarnings(), convertFastPropertyValue(), disposing(), dbaccess::OPreparedStatement::execute(), executeBatch(), OStatement::executeBatch(), dbaccess::OPreparedStatement::executeQuery(), dbaccess::OPreparedStatement::executeUpdate(), dbaccess::OCallableStatement::getArray(), dbaccess::OCallableStatement::getBinaryStream(), dbaccess::OCallableStatement::getBlob(), dbaccess::OCallableStatement::getBoolean(), dbaccess::OCallableStatement::getByte(), dbaccess::OCallableStatement::getBytes(), dbaccess::OCallableStatement::getCharacterStream(), dbaccess::OCallableStatement::getClob(), dbaccess::OPreparedStatement::getColumns(), dbaccess::OCallableStatement::getDate(), dbaccess::OCallableStatement::getDouble(), getFastPropertyValue(), dbaccess::OCallableStatement::getFloat(), getGeneratedValues(), dbaccess::OCallableStatement::getInt(), dbaccess::OCallableStatement::getLong(), dbaccess::OPreparedStatement::getMetaData(), getMoreResults(), dbaccess::OCallableStatement::getRef(), getResultSet(), dbaccess::OCallableStatement::getShort(), dbaccess::OCallableStatement::getString(), dbaccess::OCallableStatement::getTime(), dbaccess::OCallableStatement::getTimestamp(), getTypes(), getUpdateCount(), getWarnings(), OStatementBase(), queryInterface(), dbaccess::OCallableStatement::registerNumericOutParameter(), dbaccess::OCallableStatement::registerOutParameter(), setFastPropertyValue_NoBroadcast(), and dbaccess::OCallableStatement::wasNull().


The documentation for this class was generated from the following files: