LibreOffice Module connectivity (master) 1
|
#include <OPreparedStatement.hxx>
Public Member Functions | |
DECLARE_SERVICE_INFO () | |
OPreparedStatement (OConnection *_pConnection, const OUString &sql) | |
virtual | ~OPreparedStatement () override |
OPreparedStatement & | operator= (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 () 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 | 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 |
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 |
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 void SAL_CALL | disposing () override |
virtual void SAL_CALL | release () noexcept 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::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::Reference< css::sdbc::XConnection > SAL_CALL | getConnection () 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 css::uno::Reference< css::sdbc::XResultSet > SAL_CALL | getGeneratedValues () override |
SQLHANDLE | getConnectionHandle () |
OConnection * | getOwnConnection () 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) | |
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< OStatement_Base > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Public Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
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 | 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) |
void * | allocBindBuf (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 rtl::Reference< OResultSet > | createResultSet () 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> | |
T | 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 (std::u16string_view _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) |
virtual rtl::Reference< OResultSet > | createResultSet () |
creates the driver specific resultset (factory) More... | |
SQLLEN | getRowCount () |
void | disposeResultSet () |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () 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 | ~OStatement_Base () 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 |
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::IPropertyArrayHelper * | createArrayHelper () const =0 |
Protected Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
~ImplHelper5 () SAL_NOEXCEPT | |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base > | |
static std::mutex & | theMutex () |
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< OConnection > | m_pConnection |
SQLHANDLE | m_aStatementHandle |
SQLUSMALLINT * | m_pRowStatusArray |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Protected Attributes inherited from cppu::OPropertySetHelper | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OStatement_Base > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 41 of file OPreparedStatement.hxx.
OPreparedStatement::OPreparedStatement | ( | OConnection * | _pConnection, |
const OUString & | sql | ||
) |
Definition at line 60 of file OPreparedStatement.cxx.
References connectivity::odbc::OStatement_Base::m_sSqlStatement.
|
overridevirtual |
Definition at line 68 of file OPreparedStatement.cxx.
|
delete |
|
overridevirtualnoexcept |
Reimplemented from connectivity::odbc::OStatement_Base.
Definition at line 72 of file OPreparedStatement.cxx.
References connectivity::odbc::OStatement_Base::acquire().
|
overridevirtual |
Definition at line 656 of file OPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
private |
Definition at line 699 of file OPreparedStatement.cxx.
References boundParams, index, and numParams.
Referenced by setNull(), setParameter(), setScalarParameter(), and setStream().
|
private |
Definition at line 899 of file OPreparedStatement.cxx.
References Any, connectivity::SharedResources::getResourceStringWithSubstitution(), numParams, and dbtools::throwInvalidIndexException().
Referenced by setParameterPre(), and setStream().
|
overridevirtual |
Definition at line 648 of file OPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 639 of file OPreparedStatement.cxx.
References cppu::BaseMutex::m_aMutex, connectivity::odbc::OStatement_Base::m_aStatementHandle, N3SQLFreeStmt, and prepareStatement().
|
overridevirtual |
Reimplemented from connectivity::odbc::OStatement_Base.
Definition at line 108 of file OPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::odbc::OStatement_Base::clearMyResultSet(), connectivity::odbc::OStatement_Base::clearWarnings(), connectivity::odbc::OStatement_Base::close(), FreeParams(), and cppu::BaseMutex::m_aMutex.
|
overrideprivatevirtual |
creates the driver specific resultset (factory)
Reimplemented from connectivity::odbc::OStatement_Base.
Definition at line 916 of file OPreparedStatement.cxx.
References getMetaData(), and connectivity::odbc::OStatement_Base::m_aStatementHandle.
connectivity::odbc::OPreparedStatement::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Definition at line 133 of file OPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::odbc::OStatement_Base::clearWarnings(), connectivity::odbc::OStatement_Base::getColumnCount(), cppu::BaseMutex::m_aMutex, connectivity::odbc::OStatement_Base::m_aStatementHandle, connectivity::odbc::OStatement_Base::m_pConnection, N3SQLExecute, N3SQLParamData, prepareStatement(), putParamData(), connectivity::odbc::OStatement_Base::reset(), and connectivity::odbc::OTools::ThrowException().
Referenced by executeQuery(), and executeUpdate().
|
overridevirtual |
Reimplemented from connectivity::odbc::OStatement_Base.
Definition at line 180 of file OStatement.cxx.
|
overridevirtual |
Definition at line 662 of file OPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 234 of file OPreparedStatement.cxx.
References connectivity::checkDisposed(), execute(), connectivity::odbc::OStatement_Base::getResultSet(), cppu::BaseMutex::m_aMutex, connectivity::odbc::OStatement_Base::m_pConnection, and prepareStatement().
|
overridevirtual |
Reimplemented from connectivity::odbc::OStatement_Base.
Definition at line 178 of file OStatement.cxx.
|
overridevirtual |
Definition at line 196 of file OPreparedStatement.cxx.
References connectivity::checkDisposed(), execute(), connectivity::odbc::OStatement_Base::getUpdateCount(), cppu::BaseMutex::m_aMutex, connectivity::odbc::OStatement_Base::m_pConnection, and prepareStatement().
|
overridevirtual |
Reimplemented from connectivity::odbc::OStatement_Base.
Definition at line 179 of file OStatement.cxx.
|
private |
Definition at line 848 of file OPreparedStatement.cxx.
References boundParams, and numParams.
Referenced by close().
|
overridevirtual |
Reimplemented from connectivity::odbc::OStatement_Base.
Definition at line 225 of file OPreparedStatement.cxx.
References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and connectivity::odbc::OStatement_Base::m_pConnection.
|
private |
Definition at line 718 of file OPreparedStatement.cxx.
References boundParams, index, and numParams.
Referenced by setNull(), and setStream().
|
overridevirtual |
Definition at line 94 of file OPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::odbc::OStatement_Base::getOwnConnection(), cppu::BaseMutex::m_aMutex, connectivity::odbc::OStatement_Base::m_aStatementHandle, m_xMetaData, and prepareStatement().
Referenced by createResultSet().
|
overridevirtual |
Reimplemented from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >.
Definition at line 88 of file OPreparedStatement.cxx.
References connectivity::odbc::OStatement_Base::getTypes(), and cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >::getTypes().
|
private |
css::sdbc::SQLException |
Definition at line 677 of file OPreparedStatement.cxx.
References boundParams, connectivity::odbc::OStatement_Base::m_aStatementHandle, N3SQLNumParams, and numParams.
Referenced by prepareStatement().
|
inlineprivate |
Definition at line 77 of file OPreparedStatement.hxx.
Referenced by prepareStatement().
|
delete |
|
private |
Definition at line 886 of file OPreparedStatement.cxx.
References connectivity::odbc::OStatement_Base::getOwnConnection(), initBoundParam(), isPrepared(), connectivity::odbc::OStatement_Base::m_aStatementHandle, m_bPrepared, connectivity::odbc::OStatement_Base::m_pConnection, connectivity::odbc::OStatement_Base::m_sSqlStatement, N3SQLPrepare, pq_sdbc_driver::OUStringToOString(), SDB_ODBC_CHAR, and connectivity::odbc::OTools::ThrowException().
Referenced by clearParameters(), execute(), executeQuery(), executeUpdate(), getMetaData(), setParameterPre(), and setStream().
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 737 of file OPreparedStatement.cxx.
References Any, boundParams, ex, connectivity::SharedResources::getResourceString(), index, connectivity::odbc::OStatement_Base::m_aStatementHandle, connectivity::odbc::MAX_PUT_DATA_LENGTH, N3SQLPutData, and numParams.
Referenced by execute().
|
overridevirtual |
Reimplemented from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >.
|
overridevirtualnoexcept |
Reimplemented from connectivity::odbc::OStatement_Base.
Definition at line 77 of file OPreparedStatement.cxx.
References connectivity::odbc::OStatement_Base::release().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 254 of file OPreparedStatement.cxx.
|
overridevirtual |
Definition at line 395 of file OPreparedStatement.cxx.
References setScalarParameter(), and x.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 468 of file OPreparedStatement.cxx.
References setScalarParameter(), and x.
|
overrideprivatevirtual |
Reimplemented from connectivity::odbc::OStatement_Base.
|
overridevirtual |
Definition at line 474 of file OPreparedStatement.cxx.
References setScalarParameter(), and x.
|
overridevirtual |
Definition at line 480 of file OPreparedStatement.cxx.
References setScalarParameter(), and x.
Referenced by setBoolean().
|
overridevirtual |
Definition at line 486 of file OPreparedStatement.cxx.
References getString(), setScalarParameter(), setString(), and x.
|
overridevirtual |
Definition at line 499 of file OPreparedStatement.cxx.
References allocBindBuf(), connectivity::odbc::OTools::getBindTypes(), getLengthBuf(), connectivity::odbc::OTools::jdbcTypeToOdbc(), cppu::BaseMutex::m_aMutex, connectivity::odbc::OStatement_Base::m_aStatementHandle, connectivity::odbc::OStatement_Base::m_pConnection, N3SQLBindParameter, setParameterPre(), and connectivity::odbc::OTools::ThrowException().
Referenced by setObjectNull().
|
overridevirtual |
|
overridevirtual |
Definition at line 598 of file OPreparedStatement.cxx.
References setNull().
|
overridevirtual |
|
private |
|
private |
Definition at line 290 of file OPreparedStatement.cxx.
References allocBindBuf(), connectivity::odbc::OStatement_Base::getOwnConnection(), i, cppu::BaseMutex::m_aMutex, pq_sdbc_driver::OUStringToOString(), pData, setParameter(), and setParameterPre().
|
private |
Definition at line 369 of file OPreparedStatement.cxx.
References BindParameter, boundParams, connectivity::odbc::OTools::getBindTypes(), connectivity::odbc::OTools::jdbcTypeToOdbc(), connectivity::odbc::OStatement_Base::m_aStatementHandle, connectivity::odbc::OStatement_Base::m_pConnection, and connectivity::odbc::OTools::ThrowException().
Referenced by setParameter(), setScalarParameter(), and setString().
|
private |
Definition at line 261 of file OPreparedStatement.cxx.
References connectivity::checkDisposed(), checkParameterIndex(), connectivity::odbc::OStatement_Base::m_aStatementHandle, and prepareStatement().
Referenced by setNull(), setParameter(), and setScalarParameter().
|
overridevirtual |
|
private |
Definition at line 270 of file OPreparedStatement.cxx.
References invalid_scale, and setScalarParameter().
Referenced by setByte(), setDouble(), setFloat(), setInt(), setLong(), setScalarParameter(), and setShort().
|
private |
Definition at line 276 of file OPreparedStatement.cxx.
References allocBindBuf(), cppu::BaseMutex::m_aMutex, setParameter(), setParameterPre(), and type.
|
overridevirtual |
Definition at line 613 of file OPreparedStatement.cxx.
References setScalarParameter(), and x.
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 800 of file OPreparedStatement.cxx.
References allocBindBuf(), boundParams, connectivity::checkDisposed(), checkParameterIndex(), connectivity::odbc::OTools::getBindTypes(), getLengthBuf(), invalid_scale, connectivity::odbc::OTools::jdbcTypeToOdbc(), length, cppu::BaseMutex::m_aMutex, connectivity::odbc::OStatement_Base::m_aStatementHandle, connectivity::odbc::OStatement_Base::m_pConnection, N3SQLBindParameter, prepareStatement(), and x.
|
overridevirtual |
Definition at line 219 of file OPreparedStatement.cxx.
References invalid_scale, setParameter(), and x.
Referenced by setLong().
|
overridevirtual |
Definition at line 406 of file OPreparedStatement.cxx.
References connectivity::odbc::OTools::TimeToOdbcTime(), and x.
|
overridevirtual |
|
private |
Definition at line 51 of file OPreparedStatement.hxx.
Referenced by allocBindBuf(), FreeParams(), getLengthBuf(), initBoundParam(), putParamData(), setParameter(), and setStream().
|
staticprivate |
Definition at line 45 of file OPreparedStatement.hxx.
Referenced by setScalarParameter(), setStream(), and setString().
|
private |
Definition at line 55 of file OPreparedStatement.hxx.
Referenced by prepareStatement().
|
private |
Definition at line 54 of file OPreparedStatement.hxx.
Referenced by getMetaData().
|
private |
Definition at line 49 of file OPreparedStatement.hxx.
Referenced by allocBindBuf(), checkParameterIndex(), FreeParams(), getLengthBuf(), initBoundParam(), and putParamData().