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

#include <MacabPreparedStatement.hxx>

Inheritance diagram for connectivity::macab::MacabPreparedStatement:
[legend]
Collaboration diagram for connectivity::macab::MacabPreparedStatement:
[legend]

Public Member Functions

 DECLARE_SERVICE_INFO ()
 
 MacabPreparedStatement (MacabConnection *_pConnection, const OUString &sql)
 
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 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
 
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery (const OUString &sql) override
 
virtual sal_Int32 SAL_CALL executeUpdate (const OUString &sql) override
 
virtual sal_Bool SAL_CALL execute (const OUString &sql) override
 

Protected Member Functions

void checkAndResizeParameters (sal_Int32 nParams)
 
void setMacabFields () const
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void resetParameters () const override
 
virtual void getNextParameter (OUString &rParameter) const override
 
virtual ~MacabPreparedStatement () override
 

Protected Attributes

OUString m_sSqlStatement
 
::rtl::Reference< MacabResultSetMetaDatam_xMetaData
 
bool m_bPrepared
 
sal_Int32 m_nParameterIndex
 
OValueRow m_aParameterRow
 

Detailed Description

Definition at line 37 of file MacabPreparedStatement.hxx.

Constructor & Destructor Documentation

◆ ~MacabPreparedStatement()

MacabPreparedStatement::~MacabPreparedStatement ( )
overrideprotectedvirtual

Definition at line 98 of file MacabPreparedStatement.cxx.

◆ MacabPreparedStatement()

MacabPreparedStatement::MacabPreparedStatement ( MacabConnection _pConnection,
const OUString &  sql 
)

Definition at line 86 of file MacabPreparedStatement.cxx.

Member Function Documentation

◆ checkAndResizeParameters()

void MacabPreparedStatement::checkAndResizeParameters ( sal_Int32  nParams)
protected
Exceptions
css::sdbc::SQLException

Definition at line 37 of file MacabPreparedStatement.cxx.

References m_aParameterRow, and dbtools::throwInvalidIndexException().

Referenced by setNull(), and setString().

◆ clearParameters()

void SAL_CALL MacabPreparedStatement::clearParameters ( )
overridevirtual

◆ close()

void SAL_CALL MacabPreparedStatement::close ( )
overridevirtual

◆ DECLARE_SERVICE_INFO()

connectivity::macab::MacabPreparedStatement::DECLARE_SERVICE_INFO ( )

◆ disposing()

void MacabPreparedStatement::disposing ( )
overridevirtual

Definition at line 102 of file MacabPreparedStatement.cxx.

References m_aParameterRow.

◆ execute() [1/2]

sal_Bool SAL_CALL MacabPreparedStatement::execute ( )
overridevirtual

◆ execute() [2/2]

sal_Bool SAL_CALL MacabCommonStatement::execute ( const OUString &  sql)
override

Definition at line 129 of file MacabStatement.cxx.

◆ executeQuery() [1/2]

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

◆ executeQuery() [2/2]

Reference< XResultSet > SAL_CALL MacabCommonStatement::executeQuery ( const OUString &  sql)
override

Definition at line 125 of file MacabStatement.cxx.

◆ executeUpdate() [1/2]

sal_Int32 SAL_CALL MacabPreparedStatement::executeUpdate ( )
overridevirtual

Definition at line 166 of file MacabPreparedStatement.cxx.

References connectivity::checkDisposed(), and m_aMutex.

◆ executeUpdate() [2/2]

sal_Int32 SAL_CALL MacabCommonStatement::executeUpdate ( const OUString &  sql)
override

Definition at line 127 of file MacabStatement.cxx.

◆ getConnection()

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

Definition at line 175 of file MacabPreparedStatement.cxx.

References connectivity::checkDisposed(), and m_aMutex.

◆ getMetaData()

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

◆ getNextParameter()

void MacabPreparedStatement::getNextParameter ( OUString &  rParameter) const
overrideprotectedvirtual

◆ resetParameters()

void MacabPreparedStatement::resetParameters ( ) const
overrideprotectedvirtual

Definition at line 65 of file MacabPreparedStatement.cxx.

References m_nParameterIndex.

◆ setArray()

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

◆ setBinaryStream()

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

◆ setBlob()

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

◆ setBoolean()

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

◆ setByte()

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

◆ setBytes()

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

◆ setCharacterStream()

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

◆ setClob()

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

◆ setDate()

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

◆ setDouble()

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

◆ setFastPropertyValue_NoBroadcast()

void MacabPreparedStatement::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

◆ setFloat()

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

◆ setInt()

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

◆ setLong()

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

◆ setMacabFields()

void MacabPreparedStatement::setMacabFields ( ) const
protected
Exceptions
css::sdbc::SQLException

Definition at line 49 of file MacabPreparedStatement.cxx.

References connectivity::SharedResources::getResourceString(), m_xMetaData, and dbtools::throwGenericSQLException().

Referenced by getMetaData().

◆ setNull()

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

◆ setObject()

void SAL_CALL MacabPreparedStatement::setObject ( sal_Int32  parameterIndex,
const css::uno::Any &  x 
)
overridevirtual

◆ setObjectNull()

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

◆ setObjectWithInfo()

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

◆ setRef()

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

◆ setShort()

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

◆ setString()

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

◆ setTime()

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

◆ setTimestamp()

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

Member Data Documentation

◆ m_aParameterRow

OValueRow connectivity::macab::MacabPreparedStatement::m_aParameterRow
protected

◆ m_bPrepared

bool connectivity::macab::MacabPreparedStatement::m_bPrepared
protected

Definition at line 43 of file MacabPreparedStatement.hxx.

◆ m_nParameterIndex

sal_Int32 connectivity::macab::MacabPreparedStatement::m_nParameterIndex
mutableprotected

Definition at line 44 of file MacabPreparedStatement.hxx.

Referenced by getNextParameter(), and resetParameters().

◆ m_sSqlStatement

OUString connectivity::macab::MacabPreparedStatement::m_sSqlStatement
protected

Definition at line 40 of file MacabPreparedStatement.hxx.

Referenced by execute(), and executeQuery().

◆ m_xMetaData

::rtl::Reference< MacabResultSetMetaData > connectivity::macab::MacabPreparedStatement::m_xMetaData
protected

Definition at line 42 of file MacabPreparedStatement.hxx.

Referenced by getMetaData(), and setMacabFields().


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