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

#include <MacabStatement.hxx>

Inheritance diagram for connectivity::macab::MacabCommonStatement:
[legend]
Collaboration diagram for connectivity::macab::MacabCommonStatement:
[legend]

Public Member Functions

 MacabCommonStatement (MacabConnection *_pConnection)
 
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::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
 
MacabConnectiongetOwnConnection () 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< MacabCommonStatement >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

class MacabConditionanalyseWhereClause (const OSQLParseNode *pParseNode) const
 
class MacabOrderanalyseOrderByClause (const OSQLParseNode *pParseNode) const
 
OUString getTableName () const
 
void setMacabFields (class MacabResultSet *pResult) const
 
void selectRecords (MacabResultSet *pResult) const
 
void sortRecords (MacabResultSet *pResult) const
 
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 void resetParameters () const
 
virtual void getNextParameter (OUString &rParameter) const
 
virtual ~MacabCommonStatement () 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

connectivity::OSQLParser m_aParser
 
connectivity::OSQLParseTreeIterator m_aSQLIterator
 
connectivity::OSQLParseNodem_pParseTree
 
MacabConnectionm_pConnection
 
MacabHeaderm_pHeader
 
css::uno::WeakReference< css::sdbc::XResultSet > m_xResultSet
 
- 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 Attributes

css::sdbc::SQLWarning m_aLastWarning
 

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

Detailed Description

Definition at line 45 of file MacabStatement.hxx.

Constructor & Destructor Documentation

◆ ~MacabCommonStatement()

MacabCommonStatement::~MacabCommonStatement ( )
overrideprotectedvirtual

Definition at line 71 of file MacabStatement.cxx.

◆ MacabCommonStatement()

MacabCommonStatement::MacabCommonStatement ( MacabConnection _pConnection)
explicit

Definition at line 60 of file MacabStatement.cxx.

References getComponentContext(), m_aMutex, and m_pConnection.

Member Function Documentation

◆ acquire()

void SAL_CALL MacabCommonStatement::acquire ( )
overridevirtualnoexcept

Definition at line 611 of file MacabStatement.cxx.

◆ analyseOrderByClause()

MacabOrder * MacabCommonStatement::analyseOrderByClause ( const OSQLParseNode pParseNode) const
protected

◆ analyseWhereClause()

MacabCondition * MacabCommonStatement::analyseWhereClause ( const OSQLParseNode pParseNode) const
protected

◆ cancel()

void SAL_CALL MacabCommonStatement::cancel ( )
overridevirtual

◆ clearWarnings()

void SAL_CALL MacabCommonStatement::clearWarnings ( )
overridevirtual

◆ close()

void SAL_CALL MacabCommonStatement::close ( )
overridevirtual

◆ convertFastPropertyValue()

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

Implements cppu::OPropertySetHelper.

Definition at line 562 of file MacabStatement.cxx.

◆ createArrayHelper()

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

◆ execute()

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

◆ executeQuery()

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

◆ executeUpdate()

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

◆ getConnection()

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

◆ getFastPropertyValue()

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

◆ getInfoHelper()

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

◆ getNextParameter()

void MacabCommonStatement::getNextParameter ( OUString &  rParameter) const
protectedvirtual
Exceptions
css::sdbc::SQLException

Definition at line 79 of file MacabStatement.cxx.

References connectivity::macab::impl_throwError().

◆ getOwnConnection()

MacabConnection * connectivity::macab::MacabCommonStatement::getOwnConnection ( ) const
inline

Definition at line 149 of file MacabStatement.hxx.

References m_pConnection.

◆ getPropertySetInfo()

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

Definition at line 621 of file MacabStatement.cxx.

References getInfoHelper().

◆ getTableName()

OUString MacabCommonStatement::getTableName ( ) const
protected

◆ getTypes()

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

Definition at line 357 of file MacabStatement.cxx.

References aTypes, and comphelper::concatSequences().

◆ getWarnings()

Any SAL_CALL MacabCommonStatement::getWarnings ( )
overridevirtual

◆ queryInterface()

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

Reimplemented from cppu::OPropertySetHelper.

Definition at line 349 of file MacabStatement.cxx.

References Any, and comphelper::OPropertySetHelper::queryInterface().

◆ release()

void SAL_CALL MacabCommonStatement::release ( )
overridevirtualnoexcept

Definition at line 616 of file MacabStatement.cxx.

◆ resetParameters()

void MacabCommonStatement::resetParameters ( ) const
protectedvirtual
Exceptions
css::sdbc::SQLException

Definition at line 75 of file MacabStatement.cxx.

Referenced by selectRecords().

◆ selectRecords()

void MacabCommonStatement::selectRecords ( MacabResultSet pResult) const
protected

◆ setFastPropertyValue_NoBroadcast()

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

◆ setMacabFields()

void MacabCommonStatement::setMacabFields ( class MacabResultSet pResult) const
protected

◆ sortRecords()

void MacabCommonStatement::sortRecords ( MacabResultSet pResult) const
protected

Member Data Documentation

◆ m_aLastWarning

css::sdbc::SQLWarning connectivity::macab::MacabCommonStatement::m_aLastWarning
private

Definition at line 51 of file MacabStatement.hxx.

Referenced by clearWarnings(), and getWarnings().

◆ m_aParser

connectivity::OSQLParser connectivity::macab::MacabCommonStatement::m_aParser
protected

Definition at line 54 of file MacabStatement.hxx.

Referenced by executeQuery().

◆ m_aSQLIterator

connectivity::OSQLParseTreeIterator connectivity::macab::MacabCommonStatement::m_aSQLIterator
protected

◆ m_pConnection

MacabConnection* connectivity::macab::MacabCommonStatement::m_pConnection
protected

◆ m_pHeader

MacabHeader* connectivity::macab::MacabCommonStatement::m_pHeader
protected

Definition at line 58 of file MacabStatement.hxx.

Referenced by analyseOrderByClause(), and executeQuery().

◆ m_pParseTree

connectivity::OSQLParseNode* connectivity::macab::MacabCommonStatement::m_pParseTree
protected

Definition at line 56 of file MacabStatement.hxx.

Referenced by executeQuery().

◆ m_xResultSet

css::uno::WeakReference< css::sdbc::XResultSet> connectivity::macab::MacabCommonStatement::m_xResultSet
protected

Definition at line 59 of file MacabStatement.hxx.

Referenced by executeQuery().


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