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

#include <statement.hxx>

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

Public Member Functions

 OStatement (const css::uno::Reference< css::sdbc::XConnection > &_xConn, const css::uno::Reference< css::uno::XInterface > &_xStatement)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () 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 void SAL_CALL disposing () 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
 
virtual void SAL_CALL addBatch () override
 
- Public Member Functions inherited from OStatementBase
 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 ()
 
- Public Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Private Member Functions

OUString impl_doEscapeProcessing_nothrow (const OUString &_rSQL) const
 does escape processing for the given SQL command, if the our EscapeProcessing property allows so. More...
 
bool impl_ensureComposer_nothrow () const
 

Private Attributes

css::uno::Reference< css::sdbc::XStatement > m_xAggregateStatement
 
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > m_xComposer
 
bool m_bAttemptedComposerCreation
 

Additional Inherited Members

- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 
- Protected Member Functions inherited from OStatementBase
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 Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
 ~ImplHelper3 () SAL_NOEXCEPT
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OStatementBase >
static std::mutextheMutex ()
 
- Protected Attributes inherited from OStatementBase
::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
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OStatementBase >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 135 of file statement.hxx.

Constructor & Destructor Documentation

◆ OStatement()

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

References DECLARE_XINTERFACE.

Member Function Documentation

◆ addBatch() [1/2]

void SAL_CALL OStatementBase::addBatch ( )
overridevirtual

Reimplemented from OStatementBase.

Definition at line 115 of file statement.cxx.

◆ addBatch() [2/2]

void OStatement::addBatch ( const OUString &  sql)
overridevirtual

◆ clearBatch()

void OStatement::clearBatch ( )
overridevirtual

◆ disposing()

void SAL_CALL OStatement::disposing ( )
overridevirtual

Reimplemented from OStatementBase.

Definition at line 537 of file statement.cxx.

References OStatementBase::disposing(), m_xAggregateStatement, and m_xComposer.

◆ execute()

sal_Bool OStatement::execute ( const OUString &  sql)
overridevirtual

◆ executeBatch()

Sequence< sal_Int32 > OStatement::executeBatch ( )
overridevirtual

◆ executeQuery()

Reference< XResultSet > OStatement::executeQuery ( const OUString &  sql)
overridevirtual

◆ executeUpdate()

sal_Int32 OStatement::executeUpdate ( const OUString &  sql)
overridevirtual

◆ getConnection()

Reference< XConnection > OStatement::getConnection ( )
overridevirtual

Definition at line 532 of file statement.cxx.

References OSubComponent::m_xParent.

◆ getImplementationName()

OUString OStatement::getImplementationName ( )
overridevirtual

Definition at line 430 of file statement.cxx.

◆ getSupportedServiceNames()

Sequence< OUString > OStatement::getSupportedServiceNames ( )
overridevirtual

Definition at line 440 of file statement.cxx.

References SERVICE_SDBC_STATEMENT.

◆ impl_doEscapeProcessing_nothrow()

OUString OStatement::impl_doEscapeProcessing_nothrow ( const OUString &  _rSQL) const
private

does escape processing for the given SQL command, if the our EscapeProcessing property allows so.

Definition at line 544 of file statement.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, impl_ensureComposer_nothrow(), OStatementBase::m_bEscapeProcessing, and m_xComposer.

Referenced by addBatch(), execute(), executeQuery(), and executeUpdate().

◆ impl_ensureComposer_nothrow()

bool OStatement::impl_ensureComposer_nothrow ( ) const
private

◆ supportsService()

sal_Bool OStatement::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 435 of file statement.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_bAttemptedComposerCreation

bool OStatement::m_bAttemptedComposerCreation
private

Definition at line 141 of file statement.hxx.

Referenced by impl_ensureComposer_nothrow().

◆ m_xAggregateStatement

css::uno::Reference< css::sdbc::XStatement > OStatement::m_xAggregateStatement
private

Definition at line 139 of file statement.hxx.

Referenced by disposing(), execute(), executeQuery(), and executeUpdate().

◆ m_xComposer

css::uno::Reference< css::sdb::XSingleSelectQueryComposer > OStatement::m_xComposer
private

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