LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
connectivity::mysqlc::OPreparedStatement Class Referencefinal

#include <mysqlc_preparedstatement.hxx>

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

Public Member Functions

virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
 OPreparedStatement (OConnection *_pConnection, MYSQL_STMT *pStmt)
 
Any SAL_CALL queryInterface (const Type &rType) override
 
void SAL_CALL acquire () noexcept override
 
void SAL_CALL release () noexcept override
 
css::uno::Sequence< Type > SAL_CALL getTypes () override
 
Reference< css::sdbc::XResultSet > SAL_CALL executeQuery () override
 
sal_Int32 SAL_CALL executeUpdate () override
 
sal_Bool SAL_CALL execute () override
 
Reference< css::sdbc::XConnection > SAL_CALL getConnection () override
 
void SAL_CALL setNull (sal_Int32 parameter, sal_Int32 sqlType) override
 
void SAL_CALL setObjectNull (sal_Int32 parameter, sal_Int32 sqlType, const OUString &typeName) override
 
void SAL_CALL setBoolean (sal_Int32 parameter, sal_Bool x) override
 
void SAL_CALL setByte (sal_Int32 parameter, sal_Int8 x) override
 
void SAL_CALL setShort (sal_Int32 parameter, sal_Int16 x) override
 
void SAL_CALL setInt (sal_Int32 parameter, sal_Int32 x) override
 
void SAL_CALL setLong (sal_Int32 parameter, sal_Int64 x) override
 
void SAL_CALL setFloat (sal_Int32 parameter, float x) override
 
void SAL_CALL setDouble (sal_Int32 parameter, double x) override
 
void SAL_CALL setString (sal_Int32 parameter, const OUString &x) override
 
void SAL_CALL setBytes (sal_Int32 parameter, const css::uno::Sequence< sal_Int8 > &x) override
 
void SAL_CALL setDate (sal_Int32 parameter, const css::util::Date &x) override
 
void SAL_CALL setTime (sal_Int32 parameter, const css::util::Time &x) override
 
void SAL_CALL setTimestamp (sal_Int32 parameter, const css::util::DateTime &x) override
 
void SAL_CALL setBinaryStream (sal_Int32 parameter, const Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
void SAL_CALL setCharacterStream (sal_Int32 parameter, const Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
void SAL_CALL setObject (sal_Int32 parameter, const Any &x) override
 
void SAL_CALL setObjectWithInfo (sal_Int32 parameter, const Any &x, sal_Int32 targetSqlType, sal_Int32 scale) override
 
void SAL_CALL setRef (sal_Int32 parameter, const Reference< css::sdbc::XRef > &x) override
 
void SAL_CALL setBlob (sal_Int32 parameter, const Reference< css::sdbc::XBlob > &x) override
 
void SAL_CALL setClob (sal_Int32 parameter, const Reference< css::sdbc::XClob > &x) override
 
void SAL_CALL setArray (sal_Int32 parameter, const Reference< css::sdbc::XArray > &x) override
 
void SAL_CALL clearParameters () override
 
void SAL_CALL close () override
 
Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
- Public Member Functions inherited from connectivity::mysqlc::OCommonStatement
void SAL_CALL disposing () override
 
void SAL_CALL release () noexcept override
 
void SAL_CALL acquire () noexcept override
 
Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
Any SAL_CALL getWarnings () override
 
void SAL_CALL clearWarnings () override
 
void SAL_CALL cancel () override
 
void SAL_CALL close () override
 
OConnectiongetOwnConnection () const
 
- Public Member Functions inherited from cppu::WeakComponentImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
 WeakComponentImplHelper3 (::osl::Mutex &rMutex) SAL_NOEXCEPT
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL dispose () SAL_OVERRIDE
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- 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 connectivity::mysqlc::OPropertyArrayUsageHelper< TYPE >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 call this in the getInfoHelper method of your derived class. More...
 
- Public Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Private Member Functions

void checkParameterIndex (sal_Int32 parameter)
 
void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const Any &rValue) override
 
virtual ~OPreparedStatement () override
 

Private Attributes

unsigned int m_paramCount = 0
 
Reference< XResultSetMetaData > m_xMetaData
 
MYSQL_STMT * m_pStmt
 
std::vector< MYSQL_BIND > m_binds
 
std::vector< BindMetaDatam_bindMetas
 

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 connectivity::mysqlc::OCommonStatement
void closeResultSet ()
 
::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 used to implement the creation of the array helper which is shared amongst all instances of the class. More...
 
::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
sal_Bool SAL_CALL convertFastPropertyValue (Any &rConvertedValue, Any &rOldValue, sal_Int32 nHandle, const Any &rValue) override
 
void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const Any &rValue) override
 
void SAL_CALL getFastPropertyValue (Any &rValue, sal_Int32 nHandle) const override
 
virtual ~OCommonStatement () override
 
 OCommonStatement (OConnection *_pConnection)
 
- 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
 used to implement the creation of the array helper which is shared amongst all instances of the class. More...
 
- Protected Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 >
 ~ImplHelper4 () SAL_NOEXCEPT
 
- Protected Attributes inherited from connectivity::mysqlc::OCommonStatement
rtl::Reference< OConnectionm_xConnection
 
css::uno::Reference< css::sdbc::XResultSet > m_xResultSet
 
sal_Int32 m_nAffectedRows = 0
 
- 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
 
- Static Protected Attributes inherited from connectivity::mysqlc::OPropertyArrayUsageHelper< TYPE >
static sal_Int32 s_nRefCount = 0
 
::cppu::IPropertyArrayHelpers_pProps = nullptr
 
::osl::Mutex s_aMutex
 

Detailed Description

Definition at line 55 of file mysqlc_preparedstatement.hxx.

Constructor & Destructor Documentation

◆ ~OPreparedStatement()

OPreparedStatement::~OPreparedStatement ( )
overrideprivatevirtual

Definition at line 75 of file mysqlc_preparedstatement.cxx.

◆ OPreparedStatement()

OPreparedStatement::OPreparedStatement ( OConnection _pConnection,
MYSQL_STMT *  pStmt 
)

Definition at line 58 of file mysqlc_preparedstatement.cxx.

References i, m_bindMetas, m_binds, m_paramCount, and m_pStmt.

Member Function Documentation

◆ acquire()

void SAL_CALL OPreparedStatement::acquire ( )
overridevirtualnoexcept

◆ checkParameterIndex()

void OPreparedStatement::checkParameterIndex ( sal_Int32  parameter)
private

◆ clearParameters()

void SAL_CALL OPreparedStatement::clearParameters ( )
override

◆ close()

void SAL_CALL OPreparedStatement::close ( )
override

◆ execute()

sal_Bool SAL_CALL OPreparedStatement::execute ( )
override

◆ executeQuery()

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

◆ executeUpdate()

sal_Int32 SAL_CALL OPreparedStatement::executeUpdate ( )
override

◆ getConnection()

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

◆ getImplementationName()

OUString OPreparedStatement::getImplementationName ( )
overridevirtual

Definition at line 43 of file mysqlc_preparedstatement.cxx.

◆ getMetaData()

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

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > OPreparedStatement::getSupportedServiceNames ( )
overridevirtual

Definition at line 48 of file mysqlc_preparedstatement.cxx.

◆ getTypes()

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

◆ queryInterface()

Any SAL_CALL OPreparedStatement::queryInterface ( const Type rType)
override

◆ release()

void SAL_CALL OPreparedStatement::release ( )
overridevirtualnoexcept

◆ setArray()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setArray ( sal_Int32  parameter,
const Reference< css::sdbc::XArray > &  x 
)
override

◆ setBinaryStream()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setBinaryStream ( sal_Int32  parameter,
const Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
override

◆ setBlob()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setBlob ( sal_Int32  parameter,
const Reference< css::sdbc::XBlob > &  x 
)
override

◆ setBoolean()

void SAL_CALL OPreparedStatement::setBoolean ( sal_Int32  parameter,
sal_Bool  x 
)
override

◆ setByte()

void SAL_CALL OPreparedStatement::setByte ( sal_Int32  parameter,
sal_Int8  x 
)
override

◆ setBytes()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setBytes ( sal_Int32  parameter,
const css::uno::Sequence< sal_Int8 > &  x 
)
override

◆ setCharacterStream()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setCharacterStream ( sal_Int32  parameter,
const Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
override

◆ setClob()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setClob ( sal_Int32  parameter,
const Reference< css::sdbc::XClob > &  x 
)
override

◆ setDate()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setDate ( sal_Int32  parameter,
const css::util::Date &  x 
)
override

◆ setDouble()

void SAL_CALL OPreparedStatement::setDouble ( sal_Int32  parameter,
double  x 
)
override

◆ setFastPropertyValue_NoBroadcast()

void OPreparedStatement::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const Any &  rValue 
)
overrideprivate

◆ setFloat()

void SAL_CALL OPreparedStatement::setFloat ( sal_Int32  parameter,
float  x 
)
override

◆ setInt()

void SAL_CALL OPreparedStatement::setInt ( sal_Int32  parameter,
sal_Int32  x 
)
override

◆ setLong()

void SAL_CALL OPreparedStatement::setLong ( sal_Int32  parameter,
sal_Int64  x 
)
override

◆ setNull()

void SAL_CALL OPreparedStatement::setNull ( sal_Int32  parameter,
sal_Int32  sqlType 
)
override

◆ setObject()

void SAL_CALL OPreparedStatement::setObject ( sal_Int32  parameter,
const Any &  x 
)
override

◆ setObjectNull()

void SAL_CALL OPreparedStatement::setObjectNull ( sal_Int32  parameter,
sal_Int32  sqlType,
const OUString &  typeName 
)
override

◆ setObjectWithInfo()

void SAL_CALL OPreparedStatement::setObjectWithInfo ( sal_Int32  parameter,
const Any &  x,
sal_Int32  targetSqlType,
sal_Int32  scale 
)
override

◆ setRef()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setRef ( sal_Int32  parameter,
const Reference< css::sdbc::XRef > &  x 
)
override

◆ setShort()

void SAL_CALL OPreparedStatement::setShort ( sal_Int32  parameter,
sal_Int16  x 
)
override

◆ setString()

void SAL_CALL OPreparedStatement::setString ( sal_Int32  parameter,
const OUString &  x 
)
override

◆ setTime()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setTime ( sal_Int32  parameter,
const css::util::Time &  x 
)
override

◆ setTimestamp()

void SAL_CALL connectivity::mysqlc::OPreparedStatement::setTimestamp ( sal_Int32  parameter,
const css::util::DateTime &  x 
)
override

◆ supportsService()

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

Definition at line 53 of file mysqlc_preparedstatement.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_bindMetas

std::vector<BindMetaData> connectivity::mysqlc::OPreparedStatement::m_bindMetas
private

◆ m_binds

std::vector<MYSQL_BIND> connectivity::mysqlc::OPreparedStatement::m_binds
private

◆ m_paramCount

unsigned int connectivity::mysqlc::OPreparedStatement::m_paramCount = 0
private

Definition at line 57 of file mysqlc_preparedstatement.hxx.

Referenced by checkParameterIndex(), and OPreparedStatement().

◆ m_pStmt

MYSQL_STMT* connectivity::mysqlc::OPreparedStatement::m_pStmt
private

◆ m_xMetaData

Reference<XResultSetMetaData> connectivity::mysqlc::OPreparedStatement::m_xMetaData
private

Definition at line 58 of file mysqlc_preparedstatement.hxx.

Referenced by getMetaData().


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