LibreOffice Module connectivity (master) 1
|
#include <NPreparedStatement.hxx>
Public Member Functions | |
OEvoabPreparedStatement (OEvoabConnection *_pConnection) | |
void | construct (const OUString &_sql) |
DECLARE_SERVICE_INFO () | |
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 | close () override |
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL | getMetaData () 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 |
Public Member Functions inherited from connectivity::evoab::OCommonStatement | |
OEvoabConnection * | getOwnConnection () const |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement > | |
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 | |
virtual | ~OEvoabPreparedStatement () override |
Private Attributes | |
OUString | m_sSqlStatement |
QueryData | m_aQueryData |
css::uno::Reference< css::sdbc::XResultSetMetaData > | m_xMetaData |
Additional Inherited Members | |
Protected Member Functions inherited from connectivity::evoab::OCommonStatement | |
void | disposeResultSet () |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual | ~OCommonStatement () override |
void | parseSql (const OUString &sql, QueryData &_out_rQueryData) |
EBookQuery * | whereAnalysis (const OSQLParseNode *parseTree) |
void | orderByAnalysis (const OSQLParseNode *_pOrderByClause, SortDescriptor &_out_rSort) |
OUString | getTableName () const |
OCommonStatement (OEvoabConnection *_pConnection) | |
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::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () override |
virtual void SAL_CALL | close () override |
QueryData | impl_getEBookQuery_throw (const OUString &_rSql) |
will return the EBookQuery representing the statement WHERE condition, or throw More... | |
css::uno::Reference< css::sdbc::XResultSet > | impl_executeQuery_throw (const OUString &_rSql) |
css::uno::Reference< css::sdbc::XResultSet > | impl_executeQuery_throw (const QueryData &_rData) |
css::uno::Reference< css::sdbc::XConnection > | impl_getConnection () |
OUString | impl_getColumnRefColumnName_throw (const ::connectivity::OSQLParseNode &_rColumnRef) |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
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 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 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
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::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement > | |
static std::mutex & | theMutex () |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OCommonStatement > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 42 of file NPreparedStatement.hxx.
|
overrideprivatevirtual |
Definition at line 63 of file NPreparedStatement.cxx.
|
explicit |
Definition at line 41 of file NPreparedStatement.cxx.
|
overridevirtualnoexcept |
Reimplemented from connectivity::evoab::OCommonStatement.
Definition at line 68 of file NPreparedStatement.cxx.
References connectivity::evoab::OCommonStatement::acquire().
|
overridevirtual |
Definition at line 299 of file NPreparedStatement.cxx.
|
overridevirtual |
Reimplemented from connectivity::evoab::OCommonStatement.
Definition at line 105 of file NPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::evoab::OCommonStatement::clearWarnings(), connectivity::evoab::OCommonStatement::close(), connectivity::evoab::free_column_resources(), and cppu::BaseMutex::m_aMutex.
void OEvoabPreparedStatement::construct | ( | const OUString & | _sql | ) |
Definition at line 47 of file NPreparedStatement.cxx.
References ENSURE_OR_THROW, connectivity::evoab::QueryData::getQuery(), connectivity::evoab::OCommonStatement::impl_getEBookQuery_throw(), m_aQueryData, m_sSqlStatement, m_xMetaData, connectivity::evoab::QueryData::sTable, and connectivity::evoab::QueryData::xSelectColumns.
connectivity::evoab::OEvoabPreparedStatement::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Definition at line 123 of file NPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::evoab::OCommonStatement::impl_executeQuery_throw(), cppu::BaseMutex::m_aMutex, and m_aQueryData.
|
overridevirtual |
Definition at line 157 of file NPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::evoab::OCommonStatement::impl_executeQuery_throw(), cppu::BaseMutex::m_aMutex, and m_aQueryData.
|
overridevirtual |
Definition at line 133 of file NPreparedStatement.cxx.
References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
Definition at line 148 of file NPreparedStatement.cxx.
References connectivity::checkDisposed(), connectivity::evoab::OCommonStatement::impl_getConnection(), and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 94 of file NPreparedStatement.cxx.
References connectivity::checkDisposed(), ENSURE_OR_THROW, cppu::BaseMutex::m_aMutex, and m_xMetaData.
|
overridevirtual |
Definition at line 313 of file NPreparedStatement.cxx.
|
overridevirtual |
Definition at line 303 of file NPreparedStatement.cxx.
Reimplemented from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >.
Definition at line 88 of file NPreparedStatement.cxx.
References connectivity::evoab::OCommonStatement::getTypes(), and cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >::getTypes().
|
overridevirtual |
Definition at line 308 of file NPreparedStatement.cxx.
|
overridevirtual |
Reimplemented from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >.
Definition at line 80 of file NPreparedStatement.cxx.
References Any, connectivity::evoab::OCommonStatement::queryInterface(), and cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >::queryInterface().
|
overridevirtualnoexcept |
Reimplemented from connectivity::evoab::OCommonStatement.
Definition at line 74 of file NPreparedStatement.cxx.
References connectivity::evoab::OCommonStatement::release().
|
overridevirtual |
Definition at line 238 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 293 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 232 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 166 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 172 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 281 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 287 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 226 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 178 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 196 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 202 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 208 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 214 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 220 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 262 of file NPreparedStatement.cxx.
References connectivity::evoab::OCommonStatement::getOwnConnection(), dbtools::implSetObject(), dbtools::throwGenericSQLException(), and x.
|
overridevirtual |
Definition at line 256 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 250 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 244 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 275 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 142 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 184 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
overridevirtual |
Definition at line 190 of file NPreparedStatement.cxx.
References dbtools::throwFunctionNotSupportedSQLException().
|
private |
Definition at line 48 of file NPreparedStatement.hxx.
Referenced by construct(), execute(), and executeQuery().
|
private |
Definition at line 46 of file NPreparedStatement.hxx.
Referenced by construct().
|
private |
Definition at line 50 of file NPreparedStatement.hxx.
Referenced by construct(), and getMetaData().