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

#include <NStatement.hxx>

Inheritance diagram for connectivity::evoab::OCommonStatement:
[legend]
Collaboration diagram for connectivity::evoab::OCommonStatement:
[legend]

Public Member Functions

OEvoabConnectiongetOwnConnection () const
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

void disposeResultSet ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ~OCommonStatement () override
 
void parseSql (const OUString &sql, QueryData &_out_rQueryData)
 
EBookQuerywhereAnalysis (const OSQLParseNode *parseTree)
 
void orderByAnalysis (const OSQLParseNode *_pOrderByClause, SortDescriptor &_out_rSort)
 
OUString getTableName () const
 
 OCommonStatement (OEvoabConnection *_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 void SAL_CALL close () override
 
QueryData impl_getEBookQuery_throw (const OUString &_rSql)
 will return the EBookQuery representing the statement WHERE condition, or throw More...
 
css::uno::Reference< css::sdbc::XResultSet > impl_executeQuery_throw (const OUString &_rSql)
 
css::uno::Reference< css::sdbc::XResultSet > impl_executeQuery_throw (const QueryData &_rData)
 
css::uno::Reference< css::sdbc::XConnection > impl_getConnection ()
 
OUString impl_getColumnRefColumnName_throw (const ::connectivity::OSQLParseNode &_rColumnRef)
 
- Protected Member Functions inherited from comphelper::OPropertyContainer
 OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper)
 
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 getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
- Protected Member Functions inherited from comphelper::OPropertyContainerHelper
 OPropertyContainerHelper ()
 
 ~OPropertyContainerHelper ()
 
void registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
 
void registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType)
 
void registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue)
 
void revokeProperty (sal_Int32 _nHandle)
 
bool isRegisteredProperty (sal_Int32 _nHandle) const
 
bool isRegisteredProperty (const OUString &_rName) const
 
bool convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
 
void setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue)
 
void getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const
 
void describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 
const css::beans::Property & getProperty (const OUString &_rName) const
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 

Private Attributes

css::uno::WeakReference< css::sdbc::XResultSet > m_xResultSet
 
rtl::Reference< OEvoabConnectionm_xConnection
 
connectivity::OSQLParser m_aParser
 
connectivity::OSQLParseTreeIterator m_aSQLIterator
 
connectivity::OSQLParseNodem_pParseTree
 
OUString m_aCursorName
 
sal_Int32 m_nMaxFieldSize
 
sal_Int32 m_nMaxRows
 
sal_Int32 m_nQueryTimeOut
 
sal_Int32 m_nFetchSize
 
sal_Int32 m_nResultSetType
 
sal_Int32 m_nFetchDirection
 
sal_Int32 m_nResultSetConcurrency
 
bool m_bEscapeProcessing
 

Additional Inherited Members

- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement >
static std::mutextheMutex ()
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 146 of file NStatement.hxx.

Constructor & Destructor Documentation

◆ ~OCommonStatement()

connectivity::evoab::OCommonStatement::~OCommonStatement ( )
overrideprotectedvirtual

Definition at line 157 of file NStatement.cxx.

◆ OCommonStatement()

connectivity::evoab::OCommonStatement::OCommonStatement ( OEvoabConnection _pConnection)
explicitprotected

Member Function Documentation

◆ acquire()

void SAL_CALL connectivity::evoab::OCommonStatement::acquire ( )
overrideprotectedvirtualnoexcept

◆ clearWarnings()

void SAL_CALL connectivity::evoab::OCommonStatement::clearWarnings ( )
overrideprotectedvirtual

◆ close()

void SAL_CALL connectivity::evoab::OCommonStatement::close ( )
overrideprotectedvirtual

◆ createArrayHelper()

cppu::IPropertyArrayHelper * connectivity::evoab::OCommonStatement::createArrayHelper ( ) const
overrideprotectedvirtual

◆ disposeResultSet()

void connectivity::evoab::OCommonStatement::disposeResultSet ( )
protected

Definition at line 161 of file NStatement.cxx.

References m_xResultSet.

Referenced by disposing().

◆ disposing()

void connectivity::evoab::OCommonStatement::disposing ( )
overrideprotectedvirtual

Definition at line 170 of file NStatement.cxx.

References disposeResultSet(), cppu::BaseMutex::m_aMutex, and m_xConnection.

◆ getInfoHelper()

cppu::IPropertyArrayHelper & connectivity::evoab::OCommonStatement::getInfoHelper ( )
overrideprotected

◆ getOwnConnection()

OEvoabConnection * connectivity::evoab::OCommonStatement::getOwnConnection ( ) const
inline

Definition at line 190 of file NStatement.hxx.

References m_xConnection.

Referenced by connectivity::evoab::OEvoabPreparedStatement::setObject().

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SAL_CALL connectivity::evoab::OCommonStatement::getPropertySetInfo ( )
overrideprotectedvirtual

Definition at line 635 of file NStatement.cxx.

References getInfoHelper().

◆ getTableName()

OUString connectivity::evoab::OCommonStatement::getTableName ( ) const
protected

◆ getTypes()

Sequence< Type > SAL_CALL connectivity::evoab::OCommonStatement::getTypes ( )
overrideprotectedvirtual

◆ getWarnings()

Any SAL_CALL connectivity::evoab::OCommonStatement::getWarnings ( )
overrideprotectedvirtual

Definition at line 546 of file NStatement.cxx.

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

◆ impl_executeQuery_throw() [1/2]

Reference< XResultSet > connectivity::evoab::OCommonStatement::impl_executeQuery_throw ( const OUString &  _rSql)
protected

◆ impl_executeQuery_throw() [2/2]

Reference< XResultSet > connectivity::evoab::OCommonStatement::impl_executeQuery_throw ( const QueryData _rData)
protected

Definition at line 610 of file NStatement.cxx.

References m_xConnection, and m_xResultSet.

◆ impl_getColumnRefColumnName_throw()

OUString connectivity::evoab::OCommonStatement::impl_getColumnRefColumnName_throw ( const ::connectivity::OSQLParseNode _rColumnRef)
protected

◆ impl_getConnection()

css::uno::Reference< css::sdbc::XConnection > connectivity::evoab::OCommonStatement::impl_getConnection ( )
inlineprotected

◆ impl_getEBookQuery_throw()

QueryData connectivity::evoab::OCommonStatement::impl_getEBookQuery_throw ( const OUString &  _rSql)
protected

will return the EBookQuery representing the statement WHERE condition, or throw

Also, all statement dependent members (such as the parser/iterator) will be inited afterwards.

Definition at line 587 of file NStatement.cxx.

References aData, e_book_query_to_string, connectivity::OSQLParseTreeIterator::getSelectColumns(), m_aSQLIterator, m_xConnection, and parseSql().

Referenced by connectivity::evoab::OEvoabPreparedStatement::construct(), and impl_executeQuery_throw().

◆ orderByAnalysis()

void connectivity::evoab::OCommonStatement::orderByAnalysis ( const OSQLParseNode _pOrderByClause,
SortDescriptor _out_rSort 
)
protected

◆ parseSql()

void connectivity::evoab::OCommonStatement::parseSql ( const OUString &  sql,
QueryData _out_rQueryData 
)
protected

◆ queryInterface()

virtual css::uno::Any SAL_CALL connectivity::evoab::OCommonStatement::queryInterface ( const css::uno::Type &  rType)
overrideprotectedvirtual

◆ release()

void SAL_CALL connectivity::evoab::OCommonStatement::release ( )
overrideprotectedvirtualnoexcept

◆ whereAnalysis()

EBookQuery * connectivity::evoab::OCommonStatement::whereAnalysis ( const OSQLParseNode parseTree)
protected

Member Data Documentation

◆ m_aCursorName

OUString connectivity::evoab::OCommonStatement::m_aCursorName
private

Definition at line 159 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_aParser

connectivity::OSQLParser connectivity::evoab::OCommonStatement::m_aParser
private

Definition at line 154 of file NStatement.hxx.

Referenced by parseSql().

◆ m_aSQLIterator

connectivity::OSQLParseTreeIterator connectivity::evoab::OCommonStatement::m_aSQLIterator
private

Definition at line 155 of file NStatement.hxx.

Referenced by getTableName(), impl_getEBookQuery_throw(), and parseSql().

◆ m_bEscapeProcessing

bool connectivity::evoab::OCommonStatement::m_bEscapeProcessing
private

Definition at line 167 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_nFetchDirection

sal_Int32 connectivity::evoab::OCommonStatement::m_nFetchDirection
private

Definition at line 165 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_nFetchSize

sal_Int32 connectivity::evoab::OCommonStatement::m_nFetchSize
private

Definition at line 163 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_nMaxFieldSize

sal_Int32 connectivity::evoab::OCommonStatement::m_nMaxFieldSize
private

Definition at line 160 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_nMaxRows

sal_Int32 connectivity::evoab::OCommonStatement::m_nMaxRows
private

Definition at line 161 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_nQueryTimeOut

sal_Int32 connectivity::evoab::OCommonStatement::m_nQueryTimeOut
private

Definition at line 162 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_nResultSetConcurrency

sal_Int32 connectivity::evoab::OCommonStatement::m_nResultSetConcurrency
private

Definition at line 166 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_nResultSetType

sal_Int32 connectivity::evoab::OCommonStatement::m_nResultSetType
private

Definition at line 164 of file NStatement.hxx.

Referenced by OCommonStatement().

◆ m_pParseTree

connectivity::OSQLParseNode* connectivity::evoab::OCommonStatement::m_pParseTree
private

Definition at line 156 of file NStatement.hxx.

Referenced by getTableName(), and parseSql().

◆ m_xConnection

rtl::Reference<OEvoabConnection> connectivity::evoab::OCommonStatement::m_xConnection
private

◆ m_xResultSet

css::uno::WeakReference< css::sdbc::XResultSet> connectivity::evoab::OCommonStatement::m_xResultSet
private

Definition at line 152 of file NStatement.hxx.

Referenced by disposeResultSet(), and impl_executeQuery_throw().


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