LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
connectivity::file::OStatement_Base Class Referenceabstract

#include <FStatement.hxx>

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

Public Member Functions

connectivity::OSQLParseNodegetParseTree () const
 
 OStatement_Base (OConnection *_pConnection)
 
OConnectiongetOwnConnection () const
 
virtual void construct (const OUString &sql)
 
virtual void SAL_CALL disposing () 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 cancel () override
 
virtual void SAL_CALL close () override
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

void createColumnMapping ()
 
void analyzeSQL ()
 
void setOrderbyColumn (connectivity::OSQLParseNode const *pColumnRef, connectivity::OSQLParseNode const *pAscendingDescending)
 
virtual void initializeResultSet (OResultSet *_pResult)
 
void closeResultSet ()
 
void disposeResultSet ()
 
void GetAssignValues ()
 
void SetAssignValue (const OUString &aColumnName, const OUString &aValue, bool bSetNull=false, sal_uInt32 nParameter=SQL_NO_PARAMETER)
 
void ParseAssignValues (const std::vector< OUString > &aColumnNameList, connectivity::OSQLParseNode *pRow_Value_Constructor_Elem, sal_Int32 nIndex)
 
virtual void parseParamterElem (const OUString &_sColumnName, OSQLParseNode *pRow_Value_Constructor_Elem)
 
virtual rtl::Reference< OResultSetcreateResultSet ()=0
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ~OStatement_Base () override
 
- 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
 

Protected Attributes

std::vector< sal_Int32 > m_aColMapping
 
std::vector< sal_Int32 > m_aParameterIndexes
 
std::vector< sal_Int32 > m_aOrderbyColumnNumber
 
std::vector< TAscendingOrderm_aOrderbyAscending
 
css::sdbc::SQLWarning m_aLastWarning
 
css::uno::WeakReference< css::sdbc::XResultSet > m_xResultSet
 
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xDBMetaData
 
css::uno::Reference< css::container::XNameAccess > m_xColNames
 
connectivity::OSQLParser m_aParser
 
connectivity::OSQLParseTreeIterator m_aSQLIterator
 
rtl::Reference< OConnectionm_pConnection
 
connectivity::OSQLParseNodem_pParseTree
 
std::unique_ptr< OSQLAnalyzerm_pSQLAnalyzer
 
rtl::Reference< OFileTablem_pTable
 
OValueRefRow m_aSelectRow
 
OValueRefRow m_aRow
 
OValueRefRow m_aEvaluateRow
 
ORefAssignValues m_aAssignValues
 
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
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

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< 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 51 of file FStatement.hxx.

Constructor & Destructor Documentation

◆ ~OStatement_Base()

connectivity::file::OStatement_Base::~OStatement_Base ( )
overrideprotectedvirtual

Definition at line 86 of file FStatement.cxx.

References disposing(), and m_refCount.

◆ OStatement_Base()

connectivity::file::OStatement_Base::OStatement_Base ( OConnection _pConnection)

Member Function Documentation

◆ acquire()

void SAL_CALL connectivity::file::OStatement_Base::acquire ( )
overridevirtualnoexcept

◆ analyzeSQL()

void connectivity::file::OStatement_Base::analyzeSQL ( )
protected

◆ cancel()

void SAL_CALL connectivity::file::OStatement_Base::cancel ( )
overridevirtual

Definition at line 159 of file FStatement.cxx.

◆ clearWarnings()

void SAL_CALL connectivity::file::OStatement_Base::clearWarnings ( )
overridevirtual

◆ close()

void SAL_CALL connectivity::file::OStatement_Base::close ( )
overridevirtual

◆ closeResultSet()

void connectivity::file::OStatement_Base::closeResultSet ( )
protected
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 172 of file FStatement.cxx.

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

Referenced by connectivity::file::OPreparedStatement::close(), and connectivity::file::OPreparedStatement::makeResultSet().

◆ construct()

void connectivity::file::OStatement_Base::construct ( const OUString &  sql)
virtual

◆ createArrayHelper()

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

◆ createColumnMapping()

void connectivity::file::OStatement_Base::createColumnMapping ( )
protected

◆ createResultSet()

virtual rtl::Reference< OResultSet > connectivity::file::OStatement_Base::createResultSet ( )
protectedpure virtual

◆ disposeResultSet()

void connectivity::file::OStatement_Base::disposeResultSet ( )
protected

Definition at line 92 of file FStatement.cxx.

References m_xResultSet, and SAL_INFO.

Referenced by connectivity::file::OStatement_BASE2::disposing().

◆ disposing()

void SAL_CALL connectivity::file::OStatement_Base::disposing ( )
overridevirtual

◆ GetAssignValues()

void connectivity::file::OStatement_Base::GetAssignValues ( )
protected

◆ getInfoHelper()

cppu::IPropertyArrayHelper & connectivity::file::OStatement_Base::getInfoHelper ( )
overrideprotected

◆ getOwnConnection()

OConnection * connectivity::file::OStatement_Base::getOwnConnection ( ) const
inline

Definition at line 130 of file FStatement.hxx.

Referenced by setOrderbyColumn().

◆ getParseTree()

connectivity::OSQLParseNode * connectivity::file::OStatement_Base::getParseTree ( ) const
inline

Definition at line 126 of file FStatement.hxx.

◆ getPropertySetInfo()

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

Definition at line 296 of file FStatement.cxx.

References getInfoHelper().

◆ getTypes()

Sequence< Type > SAL_CALL connectivity::file::OStatement_Base::getTypes ( )
overridevirtual

Reimplemented in connectivity::file::OPreparedStatement.

Definition at line 149 of file FStatement.cxx.

References aTypes.

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

◆ getWarnings()

Any SAL_CALL connectivity::file::OStatement_Base::getWarnings ( )
overridevirtual

◆ initializeResultSet()

void connectivity::file::OStatement_Base::initializeResultSet ( OResultSet _pResult)
protectedvirtual

◆ ParseAssignValues()

void connectivity::file::OStatement_Base::ParseAssignValues ( const std::vector< OUString > &  aColumnNameList,
connectivity::OSQLParseNode pRow_Value_Constructor_Elem,
sal_Int32  nIndex 
)
protected

◆ parseParamterElem()

void connectivity::file::OStatement_Base::parseParamterElem ( const OUString &  _sColumnName,
OSQLParseNode pRow_Value_Constructor_Elem 
)
protectedvirtual

Reimplemented in connectivity::file::OPreparedStatement.

Definition at line 704 of file FStatement.cxx.

Referenced by ParseAssignValues().

◆ queryInterface()

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

◆ SetAssignValue()

void connectivity::file::OStatement_Base::SetAssignValue ( const OUString &  aColumnName,
const OUString &  aValue,
bool  bSetNull = false,
sal_uInt32  nParameter = SQL_NO_PARAMETER 
)
protected

◆ setOrderbyColumn()

void connectivity::file::OStatement_Base::setOrderbyColumn ( connectivity::OSQLParseNode const *  pColumnRef,
connectivity::OSQLParseNode const *  pAscendingDescending 
)
protected

Member Data Documentation

◆ m_aAssignValues

ORefAssignValues connectivity::file::OStatement_Base::m_aAssignValues
protected

◆ m_aColMapping

std::vector<sal_Int32> connectivity::file::OStatement_Base::m_aColMapping
protected

◆ m_aCursorName

OUString connectivity::file::OStatement_Base::m_aCursorName
protected

Definition at line 84 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_aEvaluateRow

OValueRefRow connectivity::file::OStatement_Base::m_aEvaluateRow
protected

◆ m_aLastWarning

css::sdbc::SQLWarning connectivity::file::OStatement_Base::m_aLastWarning
protected

Definition at line 64 of file FStatement.hxx.

Referenced by clearWarnings(), and getWarnings().

◆ m_aOrderbyAscending

std::vector<TAscendingOrder> connectivity::file::OStatement_Base::m_aOrderbyAscending
protected

Definition at line 62 of file FStatement.hxx.

Referenced by initializeResultSet(), and setOrderbyColumn().

◆ m_aOrderbyColumnNumber

std::vector<sal_Int32> connectivity::file::OStatement_Base::m_aOrderbyColumnNumber
protected

Definition at line 61 of file FStatement.hxx.

Referenced by initializeResultSet(), and setOrderbyColumn().

◆ m_aParameterIndexes

std::vector<sal_Int32> connectivity::file::OStatement_Base::m_aParameterIndexes
protected

◆ m_aParser

connectivity::OSQLParser connectivity::file::OStatement_Base::m_aParser
protected

Definition at line 70 of file FStatement.hxx.

Referenced by construct().

◆ m_aRow

OValueRefRow connectivity::file::OStatement_Base::m_aRow
protected

◆ m_aSelectRow

OValueRefRow connectivity::file::OStatement_Base::m_aSelectRow
protected

Definition at line 78 of file FStatement.hxx.

Referenced by construct(), createColumnMapping(), and initializeResultSet().

◆ m_aSQLIterator

connectivity::OSQLParseTreeIterator connectivity::file::OStatement_Base::m_aSQLIterator
protected

◆ m_bEscapeProcessing

bool connectivity::file::OStatement_Base::m_bEscapeProcessing
protected

Definition at line 92 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_nFetchDirection

sal_Int32 connectivity::file::OStatement_Base::m_nFetchDirection
protected

Definition at line 90 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_nFetchSize

sal_Int32 connectivity::file::OStatement_Base::m_nFetchSize
protected

Definition at line 88 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_nMaxFieldSize

sal_Int32 connectivity::file::OStatement_Base::m_nMaxFieldSize
protected

Definition at line 85 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_nMaxRows

sal_Int32 connectivity::file::OStatement_Base::m_nMaxRows
protected

Definition at line 86 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_nQueryTimeOut

sal_Int32 connectivity::file::OStatement_Base::m_nQueryTimeOut
protected

Definition at line 87 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_nResultSetConcurrency

sal_Int32 connectivity::file::OStatement_Base::m_nResultSetConcurrency
protected

Definition at line 91 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_nResultSetType

sal_Int32 connectivity::file::OStatement_Base::m_nResultSetType
protected

Definition at line 89 of file FStatement.hxx.

Referenced by OStatement_Base().

◆ m_pConnection

rtl::Reference<OConnection> connectivity::file::OStatement_Base::m_pConnection
protected

◆ m_pParseTree

connectivity::OSQLParseNode* connectivity::file::OStatement_Base::m_pParseTree
protected

◆ m_pSQLAnalyzer

std::unique_ptr<OSQLAnalyzer> connectivity::file::OStatement_Base::m_pSQLAnalyzer
protected

◆ m_pTable

rtl::Reference<OFileTable> connectivity::file::OStatement_Base::m_pTable
protected

◆ m_xColNames

css::uno::Reference< css::container::XNameAccess> connectivity::file::OStatement_Base::m_xColNames
protected

◆ m_xDBMetaData

css::uno::Reference< css::sdbc::XDatabaseMetaData> connectivity::file::OStatement_Base::m_xDBMetaData
protected

◆ m_xResultSet

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

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