LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
connectivity::firebird::OStatementCommonBase Class Reference

#include <StatementCommonBase.hxx>

Inheritance diagram for connectivity::firebird::OStatementCommonBase:
[legend]
Collaboration diagram for connectivity::firebird::OStatementCommonBase:
[legend]

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::IPropertyArrayHelpergetArrayHelper ()
 call this in the getInfoHelper method of your derived class. More...
 

Protected Member Functions

virtual void disposeResultSet ()
 
void freeStatementHandle ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () 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::IPropertyArrayHelpercreateArrayHelper () 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< Connectionm_pConnection
 
ISC_STATUS_ARRAY m_statusVector
 
isc_stmt_handle m_aStatementHandle
 
- 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 Attributes inherited from connectivity::firebird::OPropertyArrayUsageHelper< OStatementCommonBase >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 
::osl::Mutex s_aMutex
 

Detailed Description

Definition at line 47 of file StatementCommonBase.hxx.

Constructor & Destructor Documentation

◆ ~OStatementCommonBase()

OStatementCommonBase::~OStatementCommonBase ( )
overrideprotectedvirtual

Definition at line 59 of file StatementCommonBase.cxx.

◆ OStatementCommonBase()

OStatementCommonBase::OStatementCommonBase ( Connection _pConnection)
explicit

Definition at line 47 of file StatementCommonBase.cxx.

References if(), and m_aMutex.

Member Function Documentation

◆ acquire()

void SAL_CALL OStatementCommonBase::acquire ( )
overridevirtualnoexcept

◆ cancel()

void SAL_CALL OStatementCommonBase::cancel ( )
overridevirtual

Definition at line 104 of file StatementCommonBase.cxx.

References connectivity::firebird::checkDisposed(), and m_aMutex.

◆ clearWarnings()

void SAL_CALL OStatementCommonBase::clearWarnings ( )
overridevirtual

Definition at line 236 of file StatementCommonBase.cxx.

◆ close()

void SAL_CALL OStatementCommonBase::close ( )
overridevirtual

◆ convertFastPropertyValue()

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

Implements cppu::OPropertySetHelper.

Definition at line 317 of file StatementCommonBase.cxx.

◆ createArrayHelper()

cppu::IPropertyArrayHelper * OStatementCommonBase::createArrayHelper ( ) const
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.

Returns
a pointer to the newly created array helper. Must not be NULL.

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.

◆ disposeResultSet()

void OStatementCommonBase::disposeResultSet ( )
protectedvirtual

◆ disposing()

virtual void SAL_CALL connectivity::firebird::OStatementCommonBase::disposing ( )
inlineoverridevirtual

◆ freeStatementHandle()

void OStatementCommonBase::freeStatementHandle ( )
protected
Exceptions
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().

◆ getFastPropertyValue() [1/3]

void OStatementCommonBase::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overrideprotectedvirtual

◆ getFastPropertyValue() [2/3]

virtual css::uno::Any SAL_CALL comphelper::OPropertySetHelper::getFastPropertyValue ( sal_Int32  nHandle)
protectedvirtual

Reimplemented from cppu::OPropertySetHelper.

◆ getFastPropertyValue() [3/3]

virtual void comphelper::OPropertySetHelper::getFastPropertyValue ( std::unique_lock< std::mutex > &  rGuard,
css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
protected

◆ getInfoHelper()

cppu::IPropertyArrayHelper & OStatementCommonBase::getInfoHelper ( )
overrideprotectedvirtual

◆ getMoreResults()

sal_Bool SAL_CALL OStatementCommonBase::getMoreResults ( )
overridevirtual

Definition at line 215 of file StatementCommonBase.cxx.

◆ getPropertySetInfo()

uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OStatementCommonBase::getPropertySetInfo ( )
overridevirtual

Definition at line 376 of file StatementCommonBase.cxx.

References getInfoHelper().

◆ getResultSet()

uno::Reference< XResultSet > SAL_CALL OStatementCommonBase::getResultSet ( )
overridevirtual

◆ getSqlInfoItem()

short OStatementCommonBase::getSqlInfoItem ( char  aInfoItem)
protected
Exceptions
css::sdbc::SQLException

Definition at line 381 of file StatementCommonBase.cxx.

References connectivity::firebird::evaluateStatusVector(), m_aStatementHandle, and u.

Referenced by getStatementChangeCount(), and isDDLStatement().

◆ getStatementChangeCount()

sal_Int32 OStatementCommonBase::getStatementChangeCount ( )
protected

◆ getTypes()

Sequence< Type > SAL_CALL OStatementCommonBase::getTypes ( )
overridevirtual

◆ getUpdateCount()

sal_Int32 SAL_CALL OStatementCommonBase::getUpdateCount ( )
overridevirtual

Definition at line 223 of file StatementCommonBase.cxx.

◆ getWarnings()

Any SAL_CALL OStatementCommonBase::getWarnings ( )
overridevirtual

Definition at line 231 of file StatementCommonBase.cxx.

References Any.

◆ isDDLStatement()

bool OStatementCommonBase::isDDLStatement ( )
protected
Exceptions
css::sdbc::SQLException

Definition at line 408 of file StatementCommonBase.cxx.

References getSqlInfoItem().

Referenced by connectivity::firebird::OStatement::executeQuery().

◆ prepareAndDescribeStatement()

void OStatementCommonBase::prepareAndDescribeStatement ( std::u16string_view  sqlIn,
XSQLDA *&  pOutSqlda 
)
protected

◆ queryInterface()

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

◆ release()

void SAL_CALL OStatementCommonBase::release ( )
overridevirtualnoexcept

◆ setFastPropertyValue_NoBroadcast()

void OStatementCommonBase::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

Member Data Documentation

◆ m_aMutex

::osl::Mutex connectivity::firebird::OStatementCommonBase::m_aMutex
protected

◆ m_aStatementHandle

isc_stmt_handle connectivity::firebird::OStatementCommonBase::m_aStatementHandle
protected

◆ m_pConnection

::rtl::Reference<Connection> connectivity::firebird::OStatementCommonBase::m_pConnection
protected

◆ m_statusVector

ISC_STATUS_ARRAY connectivity::firebird::OStatementCommonBase::m_statusVector
protected

◆ m_xResultSet

css::uno::Reference< css::sdbc::XResultSet> connectivity::firebird::OStatementCommonBase::m_xResultSet
protected

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