LibreOffice Module connectivity (master) 1
|
#include <pq_connection.hxx>
Public Member Functions | |
Connection (const rtl::Reference< comphelper::RefCountedMutex > &refMutex, css::uno::Reference< css::uno::XComponentContext > ctx) | |
virtual | ~Connection () override |
virtual void SAL_CALL | close () override |
virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL | createStatement () override |
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareStatement (const OUString &sql) override |
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareCall (const OUString &sql) override |
virtual OUString SAL_CALL | nativeSQL (const OUString &sql) override |
virtual void SAL_CALL | setAutoCommit (sal_Bool autoCommit) override |
virtual sal_Bool SAL_CALL | getAutoCommit () override |
virtual void SAL_CALL | commit () override |
virtual void SAL_CALL | rollback () override |
virtual sal_Bool SAL_CALL | isClosed () override |
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL | getMetaData () override |
virtual void SAL_CALL | setReadOnly (sal_Bool readOnly) override |
virtual sal_Bool SAL_CALL | isReadOnly () override |
virtual void SAL_CALL | setCatalog (const OUString &catalog) override |
virtual OUString SAL_CALL | getCatalog () override |
virtual void SAL_CALL | setTransactionIsolation (sal_Int32 level) override |
virtual sal_Int32 SAL_CALL | getTransactionIsolation () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getTypeMap () override |
virtual void SAL_CALL | setTypeMap (const css::uno::Reference< css::container::XNameAccess > &typeMap) override |
virtual css::uno::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getTables () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getUsers () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getViews () override |
virtual void SAL_CALL | disposing () override |
void | removeFromWeakMap (const ::rtl::ByteSequence &seq) |
Private Member Functions | |
void | checkClosed () |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_ctx |
css::uno::Reference< css::container::XNameAccess > | m_typeMap |
ConnectionSettings | m_settings |
::rtl::Reference< comphelper::RefCountedMutex > | m_xMutex |
css::uno::Reference< css::sdbc::XDatabaseMetaData > | m_meta |
WeakHashMap | m_myStatements |
Definition at line 120 of file pq_connection.hxx.
pq_sdbc_driver::Connection::Connection | ( | const rtl::Reference< comphelper::RefCountedMutex > & | refMutex, |
css::uno::Reference< css::uno::XComponentContext > | ctx | ||
) |
Definition at line 117 of file pq_connection.cxx.
References ctx.
|
overridevirtual |
Definition at line 126 of file pq_connection.cxx.
References m_settings, and pq_sdbc_driver::ConnectionSettings::pConnection.
|
private |
css::sdbc::SQLException | |
css::uno::RuntimeException |
Definition at line 520 of file pq_connection.cxx.
References Any, m_settings, and pq_sdbc_driver::ConnectionSettings::pConnection.
Referenced by createStatement(), getMetaData(), and prepareStatement().
|
overridevirtual |
Definition at line 323 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 135 of file pq_connection.cxx.
References m_meta, m_myStatements, m_settings, m_xMutex, pq_sdbc_driver::ConnectionSettings::pConnection, SAL_INFO, pq_sdbc_driver::ConnectionSettings::tables, and pq_sdbc_driver::ConnectionSettings::users.
Referenced by disposing().
|
overridevirtual |
Definition at line 239 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 186 of file pq_connection.cxx.
References checkClosed(), m_myStatements, m_settings, and m_xMutex.
|
overridevirtual |
Definition at line 515 of file pq_connection.cxx.
References close().
|
overridevirtual |
Definition at line 233 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 280 of file pq_connection.cxx.
References Any, pq_sdbc_driver::ConnectionSettings::encoding, m_settings, m_xMutex, p, and pq_sdbc_driver::ConnectionSettings::pConnection.
|
overridevirtual |
Definition at line 254 of file pq_connection.cxx.
References checkClosed(), m_meta, m_settings, and m_xMutex.
|
overridevirtual |
Definition at line 527 of file pq_connection.cxx.
References pq_sdbc_driver::Tables::create(), m_settings, m_xMutex, pq_sdbc_driver::ConnectionSettings::pTablesImpl, SAL_INFO, and pq_sdbc_driver::ConnectionSettings::tables.
|
overridevirtual |
Definition at line 297 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 303 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 552 of file pq_connection.cxx.
References pq_sdbc_driver::Users::create(), m_settings, m_xMutex, SAL_INFO, and pq_sdbc_driver::ConnectionSettings::users.
|
overridevirtual |
Definition at line 539 of file pq_connection.cxx.
References pq_sdbc_driver::Views::create(), m_settings, m_xMutex, pq_sdbc_driver::ConnectionSettings::pViewsImpl, SAL_INFO, and pq_sdbc_driver::ConnectionSettings::views.
|
overridevirtual |
Definition at line 318 of file pq_connection.cxx.
References Any.
|
overridevirtual |
Definition at line 413 of file pq_connection.cxx.
References aArguments, Any, args, pq_sdbc_driver::ConnectionSettings::catalog, pq_sdbc_driver::ConnectionSettings::encoding, err, getTypeName(), m_ctx, m_settings, pq_sdbc_driver::OUStringToOString(), p, pq_sdbc_driver::ConnectionSettings::pConnection, pq_sdbc_driver::properties2arrays(), SAL_INFO, pq_sdbc_driver::ConnectionSettings::tc, pq_sdbc_driver::ConnectionSettings::user, and values.
|
overridevirtual |
Definition at line 249 of file pq_connection.cxx.
References m_settings, and pq_sdbc_driver::ConnectionSettings::pConnection.
|
overridevirtual |
Definition at line 269 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 223 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 215 of file pq_connection.cxx.
References Any.
|
overridevirtual |
Definition at line 199 of file pq_connection.cxx.
References checkClosed(), pq_sdbc_driver::ConnectionSettings::encoding, m_myStatements, m_settings, m_xMutex, and pq_sdbc_driver::OUStringToOString().
void pq_sdbc_driver::Connection::removeFromWeakMap | ( | const ::rtl::ByteSequence & | seq | ) |
Definition at line 177 of file pq_connection.cxx.
References m_myStatements, and m_xMutex.
|
overridevirtual |
Definition at line 244 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 228 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 275 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 263 of file pq_connection.cxx.
|
overridevirtual |
Definition at line 292 of file pq_connection.cxx.
|
overridevirtual |
|
private |
Definition at line 122 of file pq_connection.hxx.
Referenced by initialize().
|
private |
Definition at line 126 of file pq_connection.hxx.
Referenced by close(), and getMetaData().
|
private |
Definition at line 127 of file pq_connection.hxx.
Referenced by close(), createStatement(), prepareStatement(), and removeFromWeakMap().
|
private |
Definition at line 124 of file pq_connection.hxx.
Referenced by checkClosed(), close(), createStatement(), getCatalog(), getMetaData(), getTables(), getUsers(), getViews(), initialize(), isClosed(), prepareStatement(), and ~Connection().
|
private |
Definition at line 123 of file pq_connection.hxx.
Referenced by getTypeMap().
|
private |
Definition at line 125 of file pq_connection.hxx.
Referenced by close(), createStatement(), getCatalog(), getMetaData(), getTables(), getTypeMap(), getUsers(), getViews(), prepareStatement(), and removeFromWeakMap().