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

#include <OPreparedStatement.hxx>

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

Public Member Functions

 DECLARE_SERVICE_INFO ()
 
 OPreparedStatement (OConnection *_pConnection, const OUString &sql)
 
virtual ~OPreparedStatement () override
 
OPreparedStatementoperator= (OPreparedStatement const &)=delete
 
 OPreparedStatement (OPreparedStatement const &)=delete
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
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 addBatch () override
 
virtual void SAL_CALL clearBatch () override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch () override
 
virtual void SAL_CALL close () override
 
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
- Public Member Functions inherited from connectivity::odbc::OStatement_BASE2
 OStatement_BASE2 (OConnection *_pConnection)
 
virtual void SAL_CALL disposing () override
 
- Public Member Functions inherited from connectivity::odbc::OStatement_Base
 OStatement_Base (OConnection *_pConnection)
 
oslGenericFunction getOdbcFunction (ODBC3SQLFunctionId _nIndex) const
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () 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
 
virtual css::uno::Any SAL_CALL getWarnings () override
 
virtual void SAL_CALL clearWarnings () override
 
virtual void SAL_CALL cancel () 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 css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getGeneratedValues () override
 
SQLHANDLE getConnectionHandle ()
 
OConnectiongetOwnConnection () const
 
SQLUINTEGER getCursorProperties (SQLINTEGER _nCursorType, bool bFirst)
 getCursorProperties return the properties for a specific cursor type More...
 
- Public Member Functions inherited from cppu::OPropertySetHelper
 OPropertySetHelper (OBroadcastHelper &rBHelper)
 
 OPropertySetHelper (OBroadcastHelper &rBHelper, bool bIgnoreRuntimeExceptionsWhileFiring)
 
 OPropertySetHelper (OBroadcastHelper &rBHelper, IEventNotificationHook *i_pFireEvents, bool bIgnoreRuntimeExceptionsWhileFiring=false)
 
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< OStatement_Base >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 
- Public Member Functions inherited from cppu::ImplHelper5< class, class, class, class, class >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Private Member Functions

void FreeParams ()
 
void putParamData (sal_Int32 index)
 
void setStream (sal_Int32 ParameterIndex, const css::uno::Reference< css::io::XInputStream > &x, SQLLEN length, sal_Int32 SQLtype)
 
SQLLEN * getLengthBuf (sal_Int32 index)
 
voidallocBindBuf (sal_Int32 index, sal_Int32 bufLen)
 
void initBoundParam ()
 
void setParameterPre (sal_Int32 parameterIndex)
 
template<typename T >
void setScalarParameter (sal_Int32 parameterIndex, sal_Int32 _nType, SQLULEN _nColumnSize, const T i_Value)
 
template<typename T >
void setScalarParameter (sal_Int32 parameterIndex, sal_Int32 _nType, SQLULEN _nColumnSize, sal_Int32 _nScale, const T i_Value)
 
void setParameter (sal_Int32 parameterIndex, sal_Int32 _nType, SQLULEN _nColumnSize, sal_Int32 _nScale, const void *_pData, SQLULEN _nDataLen, SQLLEN _nDataAllocLen)
 
void setParameter (sal_Int32 parameterIndex, sal_Int32 _nType, sal_Int16 _nScale, const OUString &_sData)
 
void setParameter (sal_Int32 parameterIndex, sal_Int32 _nType, const css::uno::Sequence< sal_Int8 > &Data)
 
bool isPrepared () const
 
void prepareStatement ()
 
void checkParameterIndex (sal_Int32 _parameterIndex)
 
virtual OResultSetcreateResulSet () override
 creates the driver specific resultset (factory) More...
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 

Private Attributes

SQLSMALLINT numParams
 
std::unique_ptr< OBoundParam[]> boundParams
 
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData
 
bool m_bPrepared
 

Static Private Attributes

static const short invalid_scale = -1
 

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::odbc::OStatement_Base
sal_Int64 getQueryTimeOut () const
 
sal_Int64 getMaxFieldSize () const
 
sal_Int64 getMaxRows () const
 
sal_Int32 getResultSetConcurrency () const
 
sal_Int32 getResultSetType () const
 
sal_Int32 getFetchDirection () const
 
sal_Int32 getFetchSize () const
 
OUString getCursorName () const
 
bool isUsingBookmarks () const
 
bool getEscapeProcessing () const
 
template<typename T , SQLINTEGER BufferLength>
getStmtOption (SQLINTEGER fOption) const
 
void setQueryTimeOut (sal_Int64 _par0)
 
void setMaxFieldSize (sal_Int64 _par0)
 
void setMaxRows (sal_Int64 _par0)
 
void setFetchDirection (sal_Int32 _par0)
 
void setFetchSize (sal_Int32 _par0)
 
void setCursorName (const OUString &_par0)
 
void setEscapeProcessing (const bool _bEscapeProc)
 
template<typename T , SQLINTEGER BufferLength>
SQLRETURN setStmtOption (SQLINTEGER fOption, T value) const
 
void setResultSetConcurrency (sal_Int32 _par0)
 
void setResultSetType (sal_Int32 _par0)
 
void setUsingBookmarks (bool _bUseBookmark)
 
void reset ()
 
void clearMyResultSet ()
 
void setWarning (const css::sdbc::SQLWarning &ex)
 
bool lockIfNecessary (const OUString &sql)
 
sal_Int32 getColumnCount ()
 
css::uno::Reference< css::sdbc::XResultSet > getResultSet (bool checkCount)
 
SQLLEN getRowCount ()
 
void disposeResultSet ()
 
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 getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual ~OStatement_Base () 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)
 
void setDependentFastPropertyValue (sal_Int32 i_handle, const css::uno::Any &i_value)
 
 ~OPropertySetHelper ()
 
- Protected Member Functions inherited from cppu::ImplHelper5< class, class, class, class, class >
 ~ImplHelper5 ()
 
- Protected Attributes inherited from connectivity::odbc::OStatement_Base
css::uno::WeakReference< css::sdbc::XResultSet > m_xResultSet
 
css::uno::Reference< css::sdbc::XStatement > m_xGeneratedStatement
 
std::vector< OUString > m_aBatchVector
 
OUString m_sSqlStatement
 
rtl::Reference< OConnectionm_pConnection
 
SQLHANDLE m_aStatementHandle
 
SQLUSMALLINT * m_pRowStatusArray
 
- 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 comphelper::OPropertyArrayUsageHelper< OStatement_Base >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 42 of file OPreparedStatement.hxx.

Constructor & Destructor Documentation

OPreparedStatement::OPreparedStatement ( OConnection _pConnection,
const OUString &  sql 
)
OPreparedStatement::~OPreparedStatement ( )
overridevirtual

Definition at line 68 of file OPreparedStatement.cxx.

connectivity::odbc::OPreparedStatement::OPreparedStatement ( OPreparedStatement const &  )
delete

Member Function Documentation

void SAL_CALL OPreparedStatement::acquire ( )
throw (
)
overridevirtual
void SAL_CALL OPreparedStatement::addBatch ( )
overridevirtual
void * OPreparedStatement::allocBindBuf ( sal_Int32  index,
sal_Int32  bufLen 
)
private

Definition at line 700 of file OPreparedStatement.cxx.

References boundParams, and numParams.

Referenced by setNull(), setParameter(), setScalarParameter(), and setStream().

void OPreparedStatement::checkParameterIndex ( sal_Int32  _parameterIndex)
private
void SAL_CALL OPreparedStatement::clearBatch ( )
overridevirtual
void SAL_CALL OPreparedStatement::clearParameters ( )
overridevirtual
void SAL_CALL OPreparedStatement::close ( )
overridevirtual
OResultSet * OPreparedStatement::createResulSet ( )
overrideprivatevirtual

creates the driver specific resultset (factory)

Reimplemented from connectivity::odbc::OStatement_Base.

Definition at line 917 of file OPreparedStatement.cxx.

References getMetaData(), connectivity::odbc::OStatement_Base::m_aStatementHandle, and connectivity::odbc::OResultSet::setMetaData().

connectivity::odbc::OPreparedStatement::DECLARE_SERVICE_INFO ( )
sal_Bool SAL_CALL OPreparedStatement::execute ( )
overridevirtual
Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch ( )
overridevirtual
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery ( )
overridevirtual
sal_Int32 SAL_CALL OPreparedStatement::executeUpdate ( )
overridevirtual
void OPreparedStatement::FreeParams ( )
private

Definition at line 849 of file OPreparedStatement.cxx.

References boundParams, and numParams.

Referenced by close().

Reference< XConnection > SAL_CALL OPreparedStatement::getConnection ( )
overridevirtual
SQLLEN * OPreparedStatement::getLengthBuf ( sal_Int32  index)
private

Definition at line 719 of file OPreparedStatement.cxx.

References boundParams, and numParams.

Referenced by setNull(), and setStream().

Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData ( )
overridevirtual
css::uno::Sequence< css::uno::Type > SAL_CALL OPreparedStatement::getTypes ( )
overridevirtual
void OPreparedStatement::initBoundParam ( )
private
Exceptions
css::sdbc::SQLException

Definition at line 678 of file OPreparedStatement.cxx.

References boundParams, connectivity::odbc::OStatement_Base::m_aStatementHandle, N3SQLNumParams, and numParams.

Referenced by prepareStatement().

bool connectivity::odbc::OPreparedStatement::isPrepared ( ) const
inlineprivate

Definition at line 78 of file OPreparedStatement.hxx.

Referenced by prepareStatement().

OPreparedStatement& connectivity::odbc::OPreparedStatement::operator= ( OPreparedStatement const &  )
delete
void OPreparedStatement::prepareStatement ( )
private
void OPreparedStatement::putParamData ( sal_Int32  index)
private
virtual css::uno::Any SAL_CALL connectivity::odbc::OPreparedStatement::queryInterface ( const css::uno::Type &  rType)
overridevirtual
void SAL_CALL OPreparedStatement::release ( )
throw (
)
overridevirtual
virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setArray ( sal_Int32  parameterIndex,
const css::uno::Reference< css::sdbc::XArray > &  x 
)
overridevirtual
virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setBinaryStream ( sal_Int32  parameterIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
overridevirtual
virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setBlob ( sal_Int32  parameterIndex,
const css::uno::Reference< css::sdbc::XBlob > &  x 
)
overridevirtual
void SAL_CALL OPreparedStatement::setBoolean ( sal_Int32  parameterIndex,
sal_Bool  x 
)
overridevirtual

Definition at line 254 of file OPreparedStatement.cxx.

References setInt().

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

Definition at line 395 of file OPreparedStatement.cxx.

References setScalarParameter().

virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setBytes ( sal_Int32  parameterIndex,
const css::uno::Sequence< sal_Int8 > &  x 
)
overridevirtual
virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setCharacterStream ( sal_Int32  parameterIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
sal_Int32  length 
)
overridevirtual
virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setClob ( sal_Int32  parameterIndex,
const css::uno::Reference< css::sdbc::XClob > &  x 
)
overridevirtual
virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setDate ( sal_Int32  parameterIndex,
const css::util::Date &  x 
)
overridevirtual
void SAL_CALL OPreparedStatement::setDouble ( sal_Int32  parameterIndex,
double  x 
)
overridevirtual

Definition at line 468 of file OPreparedStatement.cxx.

References setScalarParameter().

virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprivatevirtual
void SAL_CALL OPreparedStatement::setFloat ( sal_Int32  parameterIndex,
float  x 
)
overridevirtual

Definition at line 474 of file OPreparedStatement.cxx.

References setScalarParameter().

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

Definition at line 480 of file OPreparedStatement.cxx.

References setScalarParameter().

Referenced by setBoolean().

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

Definition at line 486 of file OPreparedStatement.cxx.

References setScalarParameter(), and setString().

void SAL_CALL OPreparedStatement::setNull ( sal_Int32  parameterIndex,
sal_Int32  sqlType 
)
overridevirtual
virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setObject ( sal_Int32  parameterIndex,
const css::uno::Any &  x 
)
overridevirtual
void SAL_CALL OPreparedStatement::setObjectNull ( sal_Int32  parameterIndex,
sal_Int32  sqlType,
const OUString &  typeName 
)
overridevirtual

Definition at line 599 of file OPreparedStatement.cxx.

References setNull().

virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setObjectWithInfo ( sal_Int32  parameterIndex,
const css::uno::Any &  x,
sal_Int32  targetSqlType,
sal_Int32  scale 
)
overridevirtual
void OPreparedStatement::setParameter ( sal_Int32  parameterIndex,
sal_Int32  _nType,
SQLULEN  _nColumnSize,
sal_Int32  _nScale,
const void _pData,
SQLULEN  _nDataLen,
SQLLEN  _nDataAllocLen 
)
private
void OPreparedStatement::setParameter ( sal_Int32  parameterIndex,
sal_Int32  _nType,
sal_Int16  _nScale,
const OUString &  _sData 
)
private
void connectivity::odbc::OPreparedStatement::setParameter ( sal_Int32  parameterIndex,
sal_Int32  _nType,
const css::uno::Sequence< sal_Int8 > &  Data 
)
private
void OPreparedStatement::setParameterPre ( sal_Int32  parameterIndex)
private
virtual void SAL_CALL connectivity::odbc::OPreparedStatement::setRef ( sal_Int32  parameterIndex,
const css::uno::Reference< css::sdbc::XRef > &  x 
)
overridevirtual
template<typename T >
void OPreparedStatement::setScalarParameter ( sal_Int32  parameterIndex,
sal_Int32  _nType,
SQLULEN  _nColumnSize,
const T  i_Value 
)
private

Definition at line 270 of file OPreparedStatement.cxx.

References invalid_scale.

Referenced by setByte(), setDouble(), setFloat(), setInt(), setLong(), and setShort().

template<typename T >
void OPreparedStatement::setScalarParameter ( sal_Int32  parameterIndex,
sal_Int32  _nType,
SQLULEN  _nColumnSize,
sal_Int32  _nScale,
const T  i_Value 
)
private
void SAL_CALL OPreparedStatement::setShort ( sal_Int32  parameterIndex,
sal_Int16  x 
)
overridevirtual

Definition at line 614 of file OPreparedStatement.cxx.

References setScalarParameter().

void OPreparedStatement::setStream ( sal_Int32  ParameterIndex,
const css::uno::Reference< css::io::XInputStream > &  x,
SQLLEN  length,
sal_Int32  SQLtype 
)
private
void SAL_CALL OPreparedStatement::setString ( sal_Int32  parameterIndex,
const OUString &  x 
)
overridevirtual

Definition at line 219 of file OPreparedStatement.cxx.

References invalid_scale, and setParameter().

Referenced by setLong().

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

Member Data Documentation

std::unique_ptr<OBoundParam[]> connectivity::odbc::OPreparedStatement::boundParams
private
const short connectivity::odbc::OPreparedStatement::invalid_scale = -1
staticprivate

Definition at line 46 of file OPreparedStatement.hxx.

Referenced by setScalarParameter(), setStream(), and setString().

bool connectivity::odbc::OPreparedStatement::m_bPrepared
private

Definition at line 56 of file OPreparedStatement.hxx.

Referenced by prepareStatement().

css::uno::Reference< css::sdbc::XResultSetMetaData > connectivity::odbc::OPreparedStatement::m_xMetaData
private

Definition at line 55 of file OPreparedStatement.hxx.

Referenced by getMetaData().

SQLSMALLINT connectivity::odbc::OPreparedStatement::numParams
private

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