LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
connectivity::ado::OStatement_Base Class Reference

#include <AStatement.hxx>

Inheritance diagram for connectivity::ado::OStatement_Base:
[legend]
Collaboration diagram for connectivity::ado::OStatement_Base:
[legend]

Public Member Functions

 OStatement_Base (OConnection *_pConnection)
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () 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::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 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
 
- 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< OStatement_Base >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

void assignRecordSet (ADORecordset *_pRS)
 
void reset ()
 
void clearMyResultSet ()
 
void setWarning (const css::sdbc::SQLWarning &ex)
 
sal_Int32 getRowCount ()
 
sal_Int32 getPrecision (sal_Int32 sqlType)
 
void disposeResultSet ()
 
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
 
- 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

std::vector< OUString > m_aBatchVector
 
css::uno::WeakReference< css::sdbc::XResultSet > m_xResultSet
 
OConnectionm_pConnection
 
WpADOCommand m_Command
 
WpADORecordset m_RecordSet
 
OLEVariant m_RecordsAffected
 
OLEVariant m_Parameters
 
std::vector< connectivity::OTypeInfom_aTypeInfo
 
ADO_LONGPTR m_nMaxRows
 
sal_Int32 m_nFetchSize
 
LockTypeEnum m_eLockType
 
CursorTypeEnum m_eCursorType
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 

Private Member Functions

sal_Int32 getQueryTimeOut () const
 
sal_Int32 getMaxRows () const
 
sal_Int32 getResultSetConcurrency () const
 
sal_Int32 getResultSetType () const
 
sal_Int32 getFetchSize () const
 
OUString getCursorName () const
 
void setQueryTimeOut (sal_Int32 _par0)
 
void setMaxFieldSize (sal_Int32 _par0)
 
void setMaxRows (sal_Int32 _par0)
 
void setResultSetConcurrency (sal_Int32 _par0)
 
void setResultSetType (sal_Int32 _par0)
 
void setFetchDirection (sal_Int32 _par0)
 
void setFetchSize (sal_Int32 _par0)
 
void setCursorName (std::u16string_view _par0)
 

Static Private Member Functions

static sal_Int32 getMaxFieldSize ()
 
static sal_Int32 getFetchDirection ()
 

Private Attributes

css::sdbc::SQLWarning m_aLastWarning
 

Friends

class OResultSet
 

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< OStatement_Base >
static std::mutextheMutex ()
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 49 of file AStatement.hxx.

Constructor & Destructor Documentation

◆ OStatement_Base()

OStatement_Base::OStatement_Base ( OConnection _pConnection)

Member Function Documentation

◆ acquire()

void SAL_CALL OStatement_Base::acquire ( )
overridevirtualnoexcept

◆ assignRecordSet()

void OStatement_Base::assignRecordSet ( ADORecordset *  _pRS)
protected

◆ cancel()

void SAL_CALL OStatement_Base::cancel ( )
overridevirtual

◆ clearMyResultSet()

void OStatement_Base::clearMyResultSet ( )
protected
Exceptions
css::sdbc::SQLException

Definition at line 174 of file AStatement.cxx.

References connectivity::checkDisposed(), and cppu::BaseMutex::m_aMutex.

Referenced by reset().

◆ clearWarnings()

void SAL_CALL OStatement_Base::clearWarnings ( )
overridevirtual

◆ close()

void SAL_CALL OStatement_Base::close ( )
overridevirtual

◆ convertFastPropertyValue()

virtual sal_Bool SAL_CALL connectivity::ado::OStatement_Base::convertFastPropertyValue ( css::uno::Any &  rConvertedValue,
css::uno::Any &  rOldValue,
sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

◆ createArrayHelper()

cppu::IPropertyArrayHelper * OStatement_Base::createArrayHelper ( ) const
overrideprotectedvirtual

◆ disposeResultSet()

void OStatement_Base::disposeResultSet ( )
protected

Definition at line 79 of file AStatement.cxx.

References m_xResultSet.

Referenced by disposing(), and connectivity::ado::OPreparedStatement::executeQuery().

◆ disposing()

void OStatement_Base::disposing ( )
overridevirtual

◆ execute()

sal_Bool SAL_CALL OStatement_Base::execute ( const OUString &  sql)
overridevirtual

◆ executeQuery()

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

◆ executeUpdate()

sal_Int32 SAL_CALL OStatement_Base::executeUpdate ( const OUString &  sql)
overridevirtual

◆ getConnection()

Reference< XConnection > SAL_CALL OStatement_Base::getConnection ( )
overridevirtual

◆ getCursorName()

OUString OStatement_Base::getCursorName ( ) const
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 551 of file AStatement.cxx.

References connectivity::ado::WpADOCommand::GetName(), and m_Command.

◆ getFastPropertyValue()

virtual void SAL_CALL connectivity::ado::OStatement_Base::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overrideprotectedvirtual

◆ getFetchDirection()

sal_Int32 OStatement_Base::getFetchDirection ( )
staticprivate
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 536 of file AStatement.cxx.

◆ getFetchSize()

sal_Int32 OStatement_Base::getFetchSize ( ) const
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 541 of file AStatement.cxx.

References m_nFetchSize.

◆ getInfoHelper()

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

◆ getMaxFieldSize()

sal_Int32 OStatement_Base::getMaxFieldSize ( )
staticprivate
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 546 of file AStatement.cxx.

◆ getMaxRows()

sal_Int32 OStatement_Base::getMaxRows ( ) const
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 491 of file AStatement.cxx.

References connectivity::ado::WpADORecordset::get_MaxRecords(), connectivity::ado::WpOLEBase< T >::IsValid(), m_RecordSet, and dbtools::throwFunctionSequenceException().

◆ getMoreResults()

sal_Bool SAL_CALL OStatement_Base::getMoreResults ( )
overridevirtual

◆ getPrecision()

sal_Int32 OStatement_Base::getPrecision ( sal_Int32  sqlType)
protected

◆ getPropertySetInfo()

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

Definition at line 862 of file AStatement.cxx.

References getInfoHelper().

◆ getQueryTimeOut()

sal_Int32 OStatement_Base::getQueryTimeOut ( ) const
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 486 of file AStatement.cxx.

References connectivity::ado::WpADOCommand::get_CommandTimeout(), and m_Command.

◆ getResultSet()

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

◆ getResultSetConcurrency()

sal_Int32 OStatement_Base::getResultSetConcurrency ( ) const
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 499 of file AStatement.cxx.

References m_eLockType, and nValue.

◆ getResultSetType()

sal_Int32 OStatement_Base::getResultSetType ( ) const
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 516 of file AStatement.cxx.

References m_eCursorType, and nValue.

◆ getRowCount()

sal_Int32 OStatement_Base::getRowCount ( )
protected
Exceptions
css::sdbc::SQLException

Definition at line 191 of file AStatement.cxx.

References connectivity::checkDisposed(), connectivity::ado::OLEVariant::getInt32(), cppu::BaseMutex::m_aMutex, and m_RecordsAffected.

◆ getTypes()

css::uno::Sequence< css::uno::Type > SAL_CALL OStatement_Base::getTypes ( )
overridevirtual

Reimplemented in connectivity::ado::OPreparedStatement.

Definition at line 121 of file AStatement.cxx.

References aTypes.

Referenced by connectivity::ado::OPreparedStatement::getTypes().

◆ getUpdateCount()

sal_Int32 SAL_CALL OStatement_Base::getUpdateCount ( )
overridevirtual

◆ getWarnings()

Any SAL_CALL OStatement_Base::getWarnings ( )
overridevirtual

◆ queryInterface()

virtual css::uno::Any SAL_CALL connectivity::ado::OStatement_Base::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ release()

void SAL_CALL OStatement_Base::release ( )
overridevirtualnoexcept

◆ reset()

void OStatement_Base::reset ( )
protected

◆ setCursorName()

void OStatement_Base::setCursorName ( std::u16string_view  _par0)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 632 of file AStatement.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, m_Command, and connectivity::ado::WpADOCommand::put_Name().

◆ setFastPropertyValue_NoBroadcast()

virtual void SAL_CALL connectivity::ado::OStatement_Base::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

◆ setFetchDirection()

void OStatement_Base::setFetchDirection ( sal_Int32  _par0)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 609 of file AStatement.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and dbtools::throwFeatureNotImplementedSQLException().

◆ setFetchSize()

void OStatement_Base::setFetchSize ( sal_Int32  _par0)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 616 of file AStatement.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and m_nFetchSize.

◆ setMaxFieldSize()

void OStatement_Base::setMaxFieldSize ( sal_Int32  _par0)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 625 of file AStatement.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and dbtools::throwFeatureNotImplementedSQLException().

◆ setMaxRows()

void OStatement_Base::setMaxRows ( sal_Int32  _par0)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 565 of file AStatement.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and m_nMaxRows.

◆ setQueryTimeOut()

void OStatement_Base::setQueryTimeOut ( sal_Int32  _par0)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 556 of file AStatement.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, m_Command, and connectivity::ado::WpADOCommand::put_CommandTimeout().

◆ setResultSetConcurrency()

void OStatement_Base::setResultSetConcurrency ( sal_Int32  _par0)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 573 of file AStatement.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and m_eLockType.

◆ setResultSetType()

void OStatement_Base::setResultSetType ( sal_Int32  _par0)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 589 of file AStatement.cxx.

References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and m_eCursorType.

◆ setWarning()

void connectivity::ado::OStatement_Base::setWarning ( const css::sdbc::SQLWarning &  ex)
protected
Exceptions
css::sdbc::SQLException

Friends And Related Function Documentation

◆ OResultSet

friend class OResultSet
friend

Member Data Documentation

◆ m_aBatchVector

std::vector< OUString> connectivity::ado::OStatement_Base::m_aBatchVector
protected

◆ m_aLastWarning

css::sdbc::SQLWarning connectivity::ado::OStatement_Base::m_aLastWarning
private

Definition at line 57 of file AStatement.hxx.

Referenced by clearWarnings(), execute(), executeUpdate(), and getWarnings().

◆ m_aTypeInfo

std::vector<connectivity::OTypeInfo> connectivity::ado::OStatement_Base::m_aTypeInfo
protected

Definition at line 70 of file AStatement.hxx.

Referenced by getPrecision().

◆ m_Command

WpADOCommand connectivity::ado::OStatement_Base::m_Command
protected

◆ m_eCursorType

CursorTypeEnum connectivity::ado::OStatement_Base::m_eCursorType
protected

◆ m_eLockType

LockTypeEnum connectivity::ado::OStatement_Base::m_eLockType
protected

◆ m_nFetchSize

sal_Int32 connectivity::ado::OStatement_Base::m_nFetchSize
protected

◆ m_nMaxRows

ADO_LONGPTR connectivity::ado::OStatement_Base::m_nMaxRows
protected

◆ m_Parameters

OLEVariant connectivity::ado::OStatement_Base::m_Parameters
protected

◆ m_pConnection

OConnection* connectivity::ado::OStatement_Base::m_pConnection
protected

◆ m_RecordsAffected

OLEVariant connectivity::ado::OStatement_Base::m_RecordsAffected
protected

◆ m_RecordSet

WpADORecordset connectivity::ado::OStatement_Base::m_RecordSet
protected

◆ m_xResultSet

css::uno::WeakReference< css::sdbc::XResultSet> connectivity::ado::OStatement_Base::m_xResultSet
protected

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