LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Attributes | List of all members
dbaccess::OPreparedStatement Class Reference

#include <preparedstatement.hxx>

Inheritance diagram for dbaccess::OPreparedStatement:
[legend]
Collaboration diagram for dbaccess::OPreparedStatement:
[legend]

Public Member Functions

 OPreparedStatement (const css::uno::Reference< css::sdbc::XConnection > &_xConn, const css::uno::Reference< css::uno::XInterface > &_xStatement)
 
virtual ~OPreparedStatement () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () 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 OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL disposing () 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 css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns () override
 
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () 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
 
- Public Member Functions inherited from OStatementBase
 OStatementBase (const css::uno::Reference< css::sdbc::XConnection > &_xConn, const css::uno::Reference< css::uno::XInterface > &_xStatement)
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () 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 void SAL_CALL disposing () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
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 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
 
virtual void SAL_CALL addBatch () override
 
virtual void SAL_CALL clearBatch () override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch () override
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getGeneratedValues () override
 
void disposeResultSet ()
 
- Public Member Functions inherited from OSubComponent
 OSubComponent (::osl::Mutex &_rMutex, const css::uno::Reference< css::uno::XInterface > &_xParent)
 
virtual void SAL_CALL release () noexcept override
 
 operator css::uno::Reference< css::uno::XInterface > () 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< OStatementBase >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Private Attributes

std::unique_ptr< OColumnsm_pColumns
 
css::uno::Reference< css::sdbc::XParameters > m_xAggregateAsParameters
 

Additional Inherited Members

- Static Public Member Functions inherited from cppu::OPropertySetHelper
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo (IPropertyArrayHelper &rProperties)
 
- Protected Member Functions inherited from OStatementBase
virtual ~OStatementBase () override
 
- Protected Member Functions inherited from OSubComponent
virtual ~OSubComponent () 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
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OStatementBase >
static std::mutextheMutex ()
 
- Protected Attributes inherited from OStatementBase
::osl::Mutex m_aCancelMutex
 
css::uno::WeakReferenceHelper m_aResultSet
 
css::uno::Reference< css::beans::XPropertySetm_xAggregateAsSet
 
css::uno::Reference< css::util::XCancellable > m_xAggregateAsCancellable
 
bool m_bUseBookmarks
 
bool m_bEscapeProcessing
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from OSubComponent
css::uno::Reference< css::uno::XInterface > m_xParent
 
- Protected Attributes inherited from cppu::OPropertySetHelper
OBroadcastHelperrBHelper
 
OMultiTypeInterfaceContainerHelperInt32 aBoundLC
 
OMultiTypeInterfaceContainerHelperInt32 aVetoableLC
 
Impl *const m_pReserved
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OStatementBase >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 34 of file preparedstatement.hxx.

Constructor & Destructor Documentation

◆ OPreparedStatement()

dbaccess::OPreparedStatement::OPreparedStatement ( const css::uno::Reference< css::sdbc::XConnection > &  _xConn,
const css::uno::Reference< css::uno::XInterface > &  _xStatement 
)

◆ ~OPreparedStatement()

OPreparedStatement::~OPreparedStatement ( )
overridevirtual

Definition at line 56 of file preparedstatement.cxx.

References m_pColumns.

Member Function Documentation

◆ acquire()

void OPreparedStatement::acquire ( )
overridevirtualnoexcept

Reimplemented from OStatementBase.

Reimplemented in dbaccess::OCallableStatement.

Definition at line 97 of file preparedstatement.cxx.

References OStatementBase::acquire().

Referenced by dbaccess::OCallableStatement::acquire().

◆ clearParameters()

void SAL_CALL OPreparedStatement::clearParameters ( )
overridevirtual

Definition at line 404 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, and m_xAggregateAsParameters.

◆ disposing()

void OPreparedStatement::disposing ( )
overridevirtual

◆ execute()

sal_Bool OPreparedStatement::execute ( )
overridevirtual

◆ executeQuery()

Reference< XResultSet > OPreparedStatement::executeQuery ( )
overridevirtual

◆ executeUpdate()

sal_Int32 OPreparedStatement::executeUpdate ( )
overridevirtual

◆ getColumns()

Reference< css::container::XNameAccess > OPreparedStatement::getColumns ( )
overridevirtual

◆ getConnection()

Reference< XConnection > OPreparedStatement::getConnection ( )
overridevirtual

Definition at line 222 of file preparedstatement.cxx.

References OSubComponent::m_xParent.

Referenced by getColumns().

◆ getImplementationId()

Sequence< sal_Int8 > OPreparedStatement::getImplementationId ( )
overridevirtual

Reimplemented in dbaccess::OCallableStatement.

Definition at line 75 of file preparedstatement.cxx.

◆ getImplementationName()

OUString OPreparedStatement::getImplementationName ( )
overridevirtual

Reimplemented in dbaccess::OCallableStatement.

Definition at line 108 of file preparedstatement.cxx.

◆ getMetaData()

Reference< XResultSetMetaData > OPreparedStatement::getMetaData ( )
overridevirtual

◆ getSupportedServiceNames()

Sequence< OUString > OPreparedStatement::getSupportedServiceNames ( )
overridevirtual

◆ getTypes()

Sequence< Type > OPreparedStatement::getTypes ( )
overridevirtual

Reimplemented from OStatementBase.

Reimplemented in dbaccess::OCallableStatement.

Definition at line 63 of file preparedstatement.cxx.

References aTypes, and OStatementBase::getTypes().

Referenced by dbaccess::OCallableStatement::getTypes().

◆ queryInterface()

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

Reimplemented from OStatementBase.

Reimplemented in dbaccess::OCallableStatement.

◆ release()

void OPreparedStatement::release ( )
overridevirtualnoexcept

Reimplemented from OStatementBase.

Reimplemented in dbaccess::OCallableStatement.

Definition at line 102 of file preparedstatement.cxx.

References OStatementBase::release().

Referenced by dbaccess::OCallableStatement::release().

◆ setArray()

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

◆ setBinaryStream()

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

◆ setBlob()

virtual void SAL_CALL dbaccess::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 244 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setByte()

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

Definition at line 252 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setBytes()

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

◆ setCharacterStream()

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

◆ setClob()

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

◆ setDate()

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

Definition at line 316 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setDouble()

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

Definition at line 292 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setFloat()

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

Definition at line 284 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setInt()

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

Definition at line 268 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setLong()

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

Definition at line 276 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setNull()

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

Definition at line 228 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, and m_xAggregateAsParameters.

◆ setObject()

virtual void SAL_CALL dbaccess::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

◆ setObjectWithInfo()

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

◆ setRef()

virtual void SAL_CALL dbaccess::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 260 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setString()

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

Definition at line 300 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setTime()

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

Definition at line 324 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ setTimestamp()

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

Definition at line 332 of file preparedstatement.cxx.

References cppu::BaseMutex::m_aMutex, m_xAggregateAsParameters, and x.

◆ supportsService()

sal_Bool OPreparedStatement::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 113 of file preparedstatement.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_pColumns

std::unique_ptr<OColumns> dbaccess::OPreparedStatement::m_pColumns
private

Definition at line 41 of file preparedstatement.hxx.

Referenced by disposing(), executeQuery(), getColumns(), and ~OPreparedStatement().

◆ m_xAggregateAsParameters

css::uno::Reference< css::sdbc::XParameters > dbaccess::OPreparedStatement::m_xAggregateAsParameters
private

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