LibreOffice Module connectivity (master) 1
|
#include <MacabPreparedStatement.hxx>
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< MacabResultSetMetaData > | m_xMetaData |
bool | m_bPrepared |
sal_Int32 | m_nParameterIndex |
OValueRow | m_aParameterRow |
Definition at line 37 of file MacabPreparedStatement.hxx.
|
overrideprotectedvirtual |
Definition at line 98 of file MacabPreparedStatement.cxx.
MacabPreparedStatement::MacabPreparedStatement | ( | MacabConnection * | _pConnection, |
const OUString & | sql | ||
) |
Definition at line 86 of file MacabPreparedStatement.cxx.
|
protected |
css::sdbc::SQLException |
Definition at line 37 of file MacabPreparedStatement.cxx.
References m_aParameterRow, and dbtools::throwInvalidIndexException().
Referenced by setNull(), and setString().
|
overridevirtual |
Definition at line 321 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 138 of file MacabPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::macab::MacabCommonStatement::close(), and m_aMutex.
connectivity::macab::MacabPreparedStatement::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Definition at line 102 of file MacabPreparedStatement.cxx.
References m_aParameterRow.
|
overridevirtual |
Definition at line 156 of file MacabPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::macab::MacabCommonStatement::executeQuery(), m_aMutex, and m_sSqlStatement.
|
override |
Definition at line 129 of file MacabStatement.cxx.
|
overridevirtual |
Definition at line 183 of file MacabPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::macab::MacabCommonStatement::executeQuery(), m_aMutex, and m_sSqlStatement.
|
override |
Definition at line 125 of file MacabStatement.cxx.
|
overridevirtual |
Definition at line 166 of file MacabPreparedStatement.cxx.
References connectivity::checkDisposed(), and m_aMutex.
|
override |
Definition at line 127 of file MacabStatement.cxx.
|
overridevirtual |
Definition at line 175 of file MacabPreparedStatement.cxx.
References connectivity::checkDisposed(), and m_aMutex.
|
overridevirtual |
Definition at line 113 of file MacabPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::macab::MacabAddressBook::getDefaultTableName(), m_aMutex, m_xMetaData, and setMacabFields().
|
overrideprotectedvirtual |
Definition at line 70 of file MacabPreparedStatement.cxx.
References connectivity::SharedResources::getResourceString(), m_aParameterRow, m_nParameterIndex, and dbtools::throwGenericSQLException().
|
overrideprotectedvirtual |
Definition at line 65 of file MacabPreparedStatement.cxx.
References m_nParameterIndex.
|
overridevirtual |
Definition at line 316 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 274 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 306 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 208 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 213 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 253 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 279 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 311 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 258 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 238 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overrideprotectedvirtual |
Definition at line 326 of file MacabPreparedStatement.cxx.
References nHandle, PROPERTY_ID_FETCHDIRECTION, PROPERTY_ID_RESULTSETCONCURRENCY, PROPERTY_ID_RESULTSETTYPE, PROPERTY_ID_USEBOOKMARKS, and connectivity::macab::MacabCommonStatement::setFastPropertyValue_NoBroadcast().
|
overridevirtual |
Definition at line 233 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 223 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 228 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
protected |
css::sdbc::SQLException |
Definition at line 49 of file MacabPreparedStatement.cxx.
References connectivity::SharedResources::getResourceString(), m_xMetaData, and dbtools::throwGenericSQLException().
Referenced by getMetaData().
|
overridevirtual |
Definition at line 193 of file MacabPreparedStatement.cxx.
References checkAndResizeParameters(), connectivity::checkDisposed(), and m_aMutex.
|
overridevirtual |
Definition at line 284 of file MacabPreparedStatement.cxx.
References dbtools::implSetObject(), dbtools::throwGenericSQLException(), and x.
|
overridevirtual |
Definition at line 203 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 296 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 301 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 218 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 243 of file MacabPreparedStatement.cxx.
References checkAndResizeParameters(), connectivity::checkDisposed(), m_aMutex, and x.
|
overridevirtual |
Definition at line 263 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 269 of file MacabPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
protected |
Definition at line 45 of file MacabPreparedStatement.hxx.
Referenced by checkAndResizeParameters(), disposing(), and getNextParameter().
|
protected |
Definition at line 43 of file MacabPreparedStatement.hxx.
|
mutableprotected |
Definition at line 44 of file MacabPreparedStatement.hxx.
Referenced by getNextParameter(), and resetParameters().
|
protected |
Definition at line 40 of file MacabPreparedStatement.hxx.
Referenced by execute(), and executeQuery().
|
protected |
Definition at line 42 of file MacabPreparedStatement.hxx.
Referenced by getMetaData(), and setMacabFields().