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

#include <FPreparedStatement.hxx>

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

Public Member Functions

 DECLARE_SERVICE_INFO ()
 
 OPreparedStatement (OConnection *_pConnection)
 
virtual void construct (const OUString &sql) override
 
virtual void SAL_CALL disposing () 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 css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery () override
 
virtual sal_Int32 SAL_CALL executeUpdate () override
 
virtual sal_Bool SAL_CALL execute () override
 
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection () override
 
virtual void SAL_CALL setNull (sal_Int32 parameterIndex, sal_Int32 sqlType) override
 
virtual void SAL_CALL setObjectNull (sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString &typeName) override
 
virtual void SAL_CALL setBoolean (sal_Int32 parameterIndex, sal_Bool x) override
 
virtual void SAL_CALL setByte (sal_Int32 parameterIndex, sal_Int8 x) override
 
virtual void SAL_CALL setShort (sal_Int32 parameterIndex, sal_Int16 x) override
 
virtual void SAL_CALL setInt (sal_Int32 parameterIndex, sal_Int32 x) override
 
virtual void SAL_CALL setLong (sal_Int32 parameterIndex, sal_Int64 x) override
 
virtual void SAL_CALL setFloat (sal_Int32 parameterIndex, float x) override
 
virtual void SAL_CALL setDouble (sal_Int32 parameterIndex, double x) override
 
virtual void SAL_CALL setString (sal_Int32 parameterIndex, const OUString &x) override
 
virtual void SAL_CALL setBytes (sal_Int32 parameterIndex, const css::uno::Sequence< sal_Int8 > &x) override
 
virtual void SAL_CALL setDate (sal_Int32 parameterIndex, const css::util::Date &x) override
 
virtual void SAL_CALL setTime (sal_Int32 parameterIndex, const css::util::Time &x) override
 
virtual void SAL_CALL setTimestamp (sal_Int32 parameterIndex, const css::util::DateTime &x) override
 
virtual void SAL_CALL setBinaryStream (sal_Int32 parameterIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
virtual void SAL_CALL setCharacterStream (sal_Int32 parameterIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
virtual void SAL_CALL setObject (sal_Int32 parameterIndex, const css::uno::Any &x) override
 
virtual void SAL_CALL setObjectWithInfo (sal_Int32 parameterIndex, const css::uno::Any &x, sal_Int32 targetSqlType, sal_Int32 scale) override
 
virtual void SAL_CALL setRef (sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XRef > &x) override
 
virtual void SAL_CALL setBlob (sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XBlob > &x) override
 
virtual void SAL_CALL setClob (sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XClob > &x) override
 
virtual void SAL_CALL setArray (sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XArray > &x) override
 
virtual void SAL_CALL clearParameters () override
 
virtual void SAL_CALL close () override
 
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
- Public Member Functions inherited from connectivity::file::OStatement_BASE2
 OStatement_BASE2 (OConnection *_pConnection)
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL release () noexcept override
 
- Public Member Functions inherited from connectivity::file::OStatement_Base
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

virtual rtl::Reference< OResultSetcreateResultSet () override
 
::rtl::Reference< OResultSetmakeResultSet ()
 
void initResultSet (OResultSet *)
 
void checkAndResizeParameters (sal_Int32 parameterIndex)
 
void setParameter (sal_Int32 parameterIndex, const ORowSetValue &x)
 
sal_uInt32 AddParameter (connectivity::OSQLParseNode const *pParameter, const css::uno::Reference< css::beans::XPropertySet > &_xCol)
 
void scanParameter (OSQLParseNode *pParseNode, std::vector< OSQLParseNode * > &_rParaNodes)
 
void describeColumn (OSQLParseNode const *_pParameter, OSQLParseNode const *_pNode, const OSQLTable &_xTable)
 
void describeParameter ()
 
virtual void parseParamterElem (const OUString &_sColumnName, OSQLParseNode *pRow_Value_Constructor_Elem) override
 
virtual void initializeResultSet (OResultSet *_pResult) override
 
virtual ~OPreparedStatement () override
 
- Protected Member Functions inherited from connectivity::file::OStatement_Base
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

OValueRefRow m_aParameterRow
 
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData
 
::rtl::Reference< connectivity::OSQLColumnsm_xParamColumns
 
- Protected Attributes inherited from connectivity::file::OStatement_Base
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 33 of file FPreparedStatement.hxx.

Constructor & Destructor Documentation

◆ ~OPreparedStatement()

OPreparedStatement::~OPreparedStatement ( )
overrideprotectedvirtual

Definition at line 57 of file FPreparedStatement.cxx.

◆ OPreparedStatement()

OPreparedStatement::OPreparedStatement ( OConnection _pConnection)

Definition at line 51 of file FPreparedStatement.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL OPreparedStatement::acquire ( )
overridevirtualnoexcept

◆ AddParameter()

sal_uInt32 OPreparedStatement::AddParameter ( connectivity::OSQLParseNode const *  pParameter,
const css::uno::Reference< css::beans::XPropertySet > &  _xCol 
)
protected

◆ checkAndResizeParameters()

void OPreparedStatement::checkAndResizeParameters ( sal_Int32  parameterIndex)
protected

◆ clearParameters()

void SAL_CALL OPreparedStatement::clearParameters ( )
overridevirtual

◆ close()

void SAL_CALL OPreparedStatement::close ( )
overridevirtual

◆ construct()

void OPreparedStatement::construct ( const OUString &  sql)
overridevirtual

◆ createResultSet()

rtl::Reference< OResultSet > OPreparedStatement::createResultSet ( )
overrideprotectedvirtual

◆ DECLARE_SERVICE_INFO()

connectivity::file::OPreparedStatement::DECLARE_SERVICE_INFO ( )

◆ describeColumn()

void OPreparedStatement::describeColumn ( OSQLParseNode const *  _pParameter,
OSQLParseNode const *  _pNode,
const OSQLTable _xTable 
)
protected

◆ describeParameter()

void OPreparedStatement::describeParameter ( )
protected

◆ disposing()

void OPreparedStatement::disposing ( )
overridevirtual

◆ execute()

sal_Bool SAL_CALL OPreparedStatement::execute ( )
overridevirtual

◆ executeQuery()

Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery ( )
overridevirtual

◆ executeUpdate()

sal_Int32 SAL_CALL OPreparedStatement::executeUpdate ( )
overridevirtual

◆ getConnection()

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

◆ getMetaData()

Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData ( )
overridevirtual

◆ getTypes()

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

◆ initializeResultSet()

void OPreparedStatement::initializeResultSet ( OResultSet _pResult)
overrideprotectedvirtual

◆ initResultSet()

void OPreparedStatement::initResultSet ( OResultSet pResultSet)
protected

◆ makeResultSet()

rtl::Reference< OResultSet > OPreparedStatement::makeResultSet ( )
protected

◆ parseParamterElem()

void OPreparedStatement::parseParamterElem ( const OUString &  _sColumnName,
OSQLParseNode pRow_Value_Constructor_Elem 
)
overrideprotectedvirtual

◆ queryInterface()

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

◆ release()

void SAL_CALL OPreparedStatement::release ( )
overridevirtualnoexcept

◆ scanParameter()

void OPreparedStatement::scanParameter ( OSQLParseNode pParseNode,
std::vector< OSQLParseNode * > &  _rParaNodes 
)
protected

◆ setArray()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setArray ( sal_Int32  parameterIndex,
const css::uno::Reference< css::sdbc::XArray > &  x 
)
overridevirtual

◆ setBinaryStream()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setBinaryStream ( sal_Int32  parameterIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
overridevirtual

◆ setBlob()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setBlob ( sal_Int32  parameterIndex,
const css::uno::Reference< css::sdbc::XBlob > &  x 
)
overridevirtual

◆ setBoolean()

void SAL_CALL OPreparedStatement::setBoolean ( sal_Int32  parameterIndex,
sal_Bool  x 
)
overridevirtual

Definition at line 206 of file FPreparedStatement.cxx.

References setParameter(), and x.

◆ setByte()

void SAL_CALL OPreparedStatement::setByte ( sal_Int32  parameterIndex,
sal_Int8  x 
)
overridevirtual

Definition at line 211 of file FPreparedStatement.cxx.

References setParameter(), and x.

◆ setBytes()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setBytes ( sal_Int32  parameterIndex,
const css::uno::Sequence< sal_Int8 > &  x 
)
overridevirtual

◆ setCharacterStream()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setCharacterStream ( sal_Int32  parameterIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
overridevirtual

◆ setClob()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setClob ( sal_Int32  parameterIndex,
const css::uno::Reference< css::sdbc::XClob > &  x 
)
overridevirtual

◆ setDate()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setDate ( sal_Int32  parameterIndex,
const css::util::Date &  x 
)
overridevirtual

◆ setDouble()

void SAL_CALL OPreparedStatement::setDouble ( sal_Int32  parameterIndex,
double  x 
)
overridevirtual

Definition at line 234 of file FPreparedStatement.cxx.

References setParameter(), and x.

◆ setFloat()

void SAL_CALL OPreparedStatement::setFloat ( sal_Int32  parameterIndex,
float  x 
)
overridevirtual

Definition at line 240 of file FPreparedStatement.cxx.

References setParameter(), and x.

◆ setInt()

void SAL_CALL OPreparedStatement::setInt ( sal_Int32  parameterIndex,
sal_Int32  x 
)
overridevirtual

Definition at line 246 of file FPreparedStatement.cxx.

References setParameter(), and x.

◆ setLong()

void SAL_CALL OPreparedStatement::setLong ( sal_Int32  parameterIndex,
sal_Int64  x 
)
overridevirtual

◆ setNull()

void SAL_CALL OPreparedStatement::setNull ( sal_Int32  parameterIndex,
sal_Int32  sqlType 
)
overridevirtual

◆ setObject()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setObject ( sal_Int32  parameterIndex,
const css::uno::Any &  x 
)
overridevirtual

◆ setObjectNull()

void SAL_CALL OPreparedStatement::setObjectNull ( sal_Int32  parameterIndex,
sal_Int32  sqlType,
const OUString &  typeName 
)
overridevirtual

Definition at line 309 of file FPreparedStatement.cxx.

References setNull().

◆ setObjectWithInfo()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setObjectWithInfo ( sal_Int32  parameterIndex,
const css::uno::Any &  x,
sal_Int32  targetSqlType,
sal_Int32  scale 
)
overridevirtual

◆ setParameter()

void OPreparedStatement::setParameter ( sal_Int32  parameterIndex,
const ORowSetValue x 
)
protected

◆ setRef()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setRef ( sal_Int32  parameterIndex,
const css::uno::Reference< css::sdbc::XRef > &  x 
)
overridevirtual

◆ setShort()

void SAL_CALL OPreparedStatement::setShort ( sal_Int32  parameterIndex,
sal_Int16  x 
)
overridevirtual

Definition at line 329 of file FPreparedStatement.cxx.

References setParameter(), and x.

◆ setString()

void SAL_CALL OPreparedStatement::setString ( sal_Int32  parameterIndex,
const OUString &  x 
)
overridevirtual

Definition at line 182 of file FPreparedStatement.cxx.

References setParameter(), and x.

◆ setTime()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setTime ( sal_Int32  parameterIndex,
const css::util::Time &  x 
)
overridevirtual

◆ setTimestamp()

virtual void SAL_CALL connectivity::file::OPreparedStatement::setTimestamp ( sal_Int32  parameterIndex,
const css::util::DateTime &  x 
)
overridevirtual

Member Data Documentation

◆ m_aParameterRow

OValueRefRow connectivity::file::OPreparedStatement::m_aParameterRow
protected

◆ m_xMetaData

css::uno::Reference< css::sdbc::XResultSetMetaData> connectivity::file::OPreparedStatement::m_xMetaData
protected

Definition at line 45 of file FPreparedStatement.hxx.

Referenced by disposing(), and getMetaData().

◆ m_xParamColumns

::rtl::Reference<connectivity::OSQLColumns> connectivity::file::OPreparedStatement::m_xParamColumns
protected

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