LibreOffice Module connectivity (master) 1
|
#include <pq_statement.hxx>
Public Member Functions | |
Statement (const rtl::Reference< comphelper::RefCountedMutex > &refMutex, const css::uno::Reference< css::sdbc::XConnection > &con, struct ConnectionSettings *pSettings) | |
virtual | ~Statement () override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &reqType) override |
virtual void SAL_CALL | close () 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 css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () 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 |
void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL | getGeneratedValues () 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 void SAL_CALL | disposing () override |
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL | getMetaData () override |
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 |
Private Member Functions | |
void | checkClosed () |
void | raiseSQLException (std::u16string_view sql, const char *errorMsg) |
Private Attributes | |
css::uno::Any | m_props [STATEMENT_SIZE] |
css::uno::Reference< css::sdbc::XConnection > | m_connection |
ConnectionSettings * | m_pSettings |
css::uno::Reference< css::sdbc::XCloseable > | m_lastResultset |
::rtl::Reference< comphelper::RefCountedMutex > | m_xMutex |
bool | m_multipleResultAvailable |
sal_Int32 | m_multipleResultUpdateCount |
sal_Int32 | m_lastOidInserted |
OUString | m_lastTableInserted |
OString | m_lastQuery |
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 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 () | |
Protected Attributes inherited from cppu::OPropertySetHelper | |
OBroadcastHelper & | rBHelper |
OMultiTypeInterfaceContainerHelperInt32 | aBoundLC |
OMultiTypeInterfaceContainerHelperInt32 | aVetoableLC |
Impl *const | m_pReserved |
Definition at line 77 of file pq_statement.hxx.
pq_sdbc_driver::Statement::Statement | ( | const rtl::Reference< comphelper::RefCountedMutex > & | refMutex, |
const css::uno::Reference< css::sdbc::XConnection > & | con, | ||
struct ConnectionSettings * | pSettings | ||
) |
ppConnection | The piece of memory, pConnection points to, is accessible as long as a reference to parameter con is held. |
Definition at line 137 of file pq_statement.cxx.
References m_props, pq_sdbc_driver::STATEMENT_MAX_ROWS, pq_sdbc_driver::STATEMENT_QUERY_TIME_OUT, pq_sdbc_driver::STATEMENT_RESULT_SET_CONCURRENCY, and pq_sdbc_driver::STATEMENT_RESULT_SET_TYPE.
|
overridevirtual |
Definition at line 157 of file pq_statement.cxx.
|
inlineoverridevirtualnoexcept |
Definition at line 103 of file pq_statement.hxx.
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 161 of file pq_statement.cxx.
References Any, m_pSettings, and pq_sdbc_driver::ConnectionSettings::pConnection.
Referenced by execute(), and getConnection().
|
overridevirtual |
Definition at line 765 of file pq_statement.cxx.
|
overridevirtual |
Definition at line 191 of file pq_statement.cxx.
References m_connection, m_lastResultset, m_pSettings, and m_xMutex.
Referenced by disposing().
|
overridevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 785 of file pq_statement.cxx.
References m_props, nHandle, pq_sdbc_driver::STATEMENT_CURSOR_NAME, pq_sdbc_driver::STATEMENT_ESCAPE_PROCESSING, pq_sdbc_driver::STATEMENT_FETCH_DIRECTION, pq_sdbc_driver::STATEMENT_FETCH_SIZE, pq_sdbc_driver::STATEMENT_MAX_FIELD_SIZE, pq_sdbc_driver::STATEMENT_MAX_ROWS, pq_sdbc_driver::STATEMENT_QUERY_TIME_OUT, pq_sdbc_driver::STATEMENT_RESULT_SET_CONCURRENCY, and pq_sdbc_driver::STATEMENT_RESULT_SET_TYPE.
|
overridevirtual |
Definition at line 873 of file pq_statement.cxx.
References close().
|
overridevirtual |
Definition at line 719 of file pq_statement.cxx.
References checkClosed(), pq_sdbc_driver::CommandData::concurrency, pq_sdbc_driver::executePostgresCommand(), pq_sdbc_driver::extractIntProperty(), pq_sdbc_driver::getStatics(), m_connection, m_lastOidInserted, m_lastQuery, m_lastResultset, m_lastTableInserted, m_multipleResultAvailable, m_multipleResultUpdateCount, m_pSettings, m_xMutex, pq_sdbc_driver::OUStringToOString(), pq_sdbc_driver::CommandData::owner, pq_sdbc_driver::CommandData::pLastOidInserted, pq_sdbc_driver::CommandData::pLastQuery, pq_sdbc_driver::CommandData::pLastResultset, pq_sdbc_driver::CommandData::pLastTableInserted, pq_sdbc_driver::CommandData::pMultipleResultAvailable, pq_sdbc_driver::CommandData::pMultipleResultUpdateCount, pq_sdbc_driver::CommandData::ppSettings, pq_sdbc_driver::CommandData::refMutex, and pq_sdbc_driver::CommandData::tableSupplier.
Referenced by executeQuery(), and executeUpdate().
|
overridevirtual |
Definition at line 222 of file pq_statement.cxx.
References execute(), m_lastResultset, and raiseSQLException().
|
overridevirtual |
Definition at line 231 of file pq_statement.cxx.
References execute(), m_multipleResultUpdateCount, and raiseSQLException().
|
overridevirtual |
Definition at line 748 of file pq_statement.cxx.
References checkClosed(), m_connection, and m_xMutex.
|
overridevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 837 of file pq_statement.cxx.
|
overridevirtual |
Definition at line 878 of file pq_statement.cxx.
References pq_sdbc_driver::getGeneratedValuesFromLastInsert(), m_connection, m_lastOidInserted, m_lastQuery, m_lastTableInserted, m_pSettings, and m_xMutex.
Definition at line 186 of file pq_statement.cxx.
|
overridevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 779 of file pq_statement.cxx.
References pq_sdbc_driver::getStatementPropertyArrayHelper().
|
overridevirtual |
Definition at line 769 of file pq_statement.cxx.
References m_lastResultset.
|
overridevirtual |
Definition at line 858 of file pq_statement.cxx.
References m_lastResultset, and m_multipleResultUpdateCount.
|
override |
Definition at line 842 of file pq_statement.cxx.
References pq_sdbc_driver::getStatementPropertyArrayHelper().
|
overridevirtual |
Definition at line 848 of file pq_statement.cxx.
References m_lastResultset.
Definition at line 176 of file pq_statement.cxx.
|
overridevirtual |
Definition at line 853 of file pq_statement.cxx.
References m_multipleResultUpdateCount.
|
overridevirtual |
Definition at line 760 of file pq_statement.cxx.
References Any.
|
overridevirtual |
Reimplemented from cppu::OPropertySetHelper.
Definition at line 169 of file pq_statement.cxx.
References Any.
|
private |
css::sdbc::SQLException |
Definition at line 212 of file pq_statement.cxx.
References Any, pq_sdbc_driver::ConnectionSettings::encoding, and SAL_WARN.
Referenced by executeQuery(), and executeUpdate().
|
inlineoverridevirtualnoexcept |
Definition at line 104 of file pq_statement.hxx.
|
overridevirtual |
Implements cppu::OPropertySetHelper.
Definition at line 831 of file pq_statement.cxx.
|
private |
Definition at line 82 of file pq_statement.hxx.
Referenced by close(), execute(), getConnection(), and getGeneratedValues().
|
private |
Definition at line 88 of file pq_statement.hxx.
Referenced by execute(), and getGeneratedValues().
|
private |
Definition at line 90 of file pq_statement.hxx.
Referenced by execute(), and getGeneratedValues().
|
private |
Definition at line 84 of file pq_statement.hxx.
Referenced by close(), execute(), executeQuery(), getMetaData(), getMoreResults(), and getResultSet().
|
private |
Definition at line 89 of file pq_statement.hxx.
Referenced by execute(), and getGeneratedValues().
|
private |
Definition at line 86 of file pq_statement.hxx.
Referenced by execute().
|
private |
Definition at line 87 of file pq_statement.hxx.
Referenced by execute(), executeUpdate(), getMoreResults(), and getUpdateCount().
|
private |
Definition at line 81 of file pq_statement.hxx.
Referenced by convertFastPropertyValue(), getFastPropertyValue(), setFastPropertyValue_NoBroadcast(), and Statement().
|
private |
Definition at line 83 of file pq_statement.hxx.
Referenced by checkClosed(), close(), execute(), and getGeneratedValues().
|
private |
Definition at line 85 of file pq_statement.hxx.
Referenced by close(), execute(), getConnection(), and getGeneratedValues().