LibreOffice Module dbaccess (master) 1
|
#include <statement.hxx>
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::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 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::IPropertyArrayHelper * | getArrayHelper () |
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::IPropertyArrayHelper * | createArrayHelper () 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::mutex & | theMutex () |
Protected Attributes inherited from OStatementBase | |
::osl::Mutex | m_aCancelMutex |
css::uno::WeakReferenceHelper | m_aResultSet |
css::uno::Reference< css::beans::XPropertySet > | m_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 | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OStatementBase > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 135 of file statement.hxx.
OStatement::OStatement | ( | const css::uno::Reference< css::sdbc::XConnection > & | _xConn, |
const css::uno::Reference< css::uno::XInterface > & | _xStatement | ||
) |
References DECLARE_XINTERFACE.
|
overridevirtual |
Reimplemented from OStatementBase.
Definition at line 115 of file statement.cxx.
|
overridevirtual |
Definition at line 494 of file statement.cxx.
References impl_doEscapeProcessing_nothrow(), cppu::BaseMutex::m_aMutex, OStatementBase::m_xAggregateAsSet, OSubComponent::m_xParent, and throwFunctionSequenceException().
|
overridevirtual |
Reimplemented from OStatementBase.
Definition at line 508 of file statement.cxx.
References cppu::BaseMutex::m_aMutex, OStatementBase::m_xAggregateAsSet, OSubComponent::m_xParent, and throwFunctionSequenceException().
|
overridevirtual |
Reimplemented from OStatementBase.
Definition at line 537 of file statement.cxx.
References OStatementBase::disposing(), m_xAggregateStatement, and m_xComposer.
|
overridevirtual |
Definition at line 483 of file statement.cxx.
References OStatementBase::disposeResultSet(), impl_doEscapeProcessing_nothrow(), cppu::BaseMutex::m_aMutex, and m_xAggregateStatement.
|
overridevirtual |
Reimplemented from OStatementBase.
Definition at line 520 of file statement.cxx.
References cppu::BaseMutex::m_aMutex, OStatementBase::m_xAggregateAsSet, OSubComponent::m_xParent, and throwFunctionSequenceException().
|
overridevirtual |
Definition at line 446 of file statement.cxx.
References OStatementBase::disposeResultSet(), impl_doEscapeProcessing_nothrow(), cppu::BaseMutex::m_aMutex, OStatementBase::m_aResultSet, m_xAggregateStatement, and OSubComponent::m_xParent.
|
overridevirtual |
Definition at line 472 of file statement.cxx.
References OStatementBase::disposeResultSet(), impl_doEscapeProcessing_nothrow(), cppu::BaseMutex::m_aMutex, and m_xAggregateStatement.
|
overridevirtual |
Definition at line 532 of file statement.cxx.
References OSubComponent::m_xParent.
|
overridevirtual |
Definition at line 430 of file statement.cxx.
|
overridevirtual |
Definition at line 440 of file statement.cxx.
References SERVICE_SDBC_STATEMENT.
|
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().
|
private |
Definition at line 572 of file statement.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_bAttemptedComposerCreation, m_xComposer, OSubComponent::m_xParent, SERVICE_NAME_SINGLESELECTQUERYCOMPOSER, and xFactory.
Referenced by impl_doEscapeProcessing_nothrow().
|
overridevirtual |
Definition at line 435 of file statement.cxx.
References cppu::supportsService().
|
private |
Definition at line 141 of file statement.hxx.
Referenced by impl_ensureComposer_nothrow().
|
private |
Definition at line 139 of file statement.hxx.
Referenced by disposing(), execute(), executeQuery(), and executeUpdate().
|
private |
Definition at line 140 of file statement.hxx.
Referenced by disposing(), impl_doEscapeProcessing_nothrow(), and impl_ensureComposer_nothrow().