LibreOffice Module connectivity (master) 1
|
#include <WConnection.hxx>
Classes | |
class | CloseVetoButTerminateListener |
class | ODocHolder |
Public Member Functions | |
OWriterConnection (ODriver *_pDriver) | |
~OWriterConnection () override | |
void | construct (const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &rInfo) override |
DECLARE_SERVICE_INFO () | |
void SAL_CALL | disposing () override |
css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL | getMetaData () override |
css::uno::Reference< css::sdbcx::XTablesSupplier > | createCatalog () override |
css::uno::Reference< css::sdbc::XStatement > SAL_CALL | createStatement () override |
css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareStatement (const OUString &sql) override |
css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL | prepareCall (const OUString &sql) override |
css::uno::Reference< css::text::XTextDocument > const & | acquireDoc () |
void | releaseDoc () |
Public Member Functions inherited from connectivity::file::OConnection | |
OConnection (OFileDriver *_pDriver) | |
virtual void | construct (const OUString &_rUrl, const css::uno::Sequence< css::beans::PropertyValue > &_rInfo) |
virtual void SAL_CALL | disposing () override |
DECLARE_SERVICE_INFO () | |
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 final |
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 void SAL_CALL | close () override final |
virtual css::uno::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override |
css::uno::Reference< css::ucb::XDynamicResultSet > | getDir () const |
const css::uno::Reference< css::ucb::XContent > & | getContent () const |
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > | createCatalog () |
bool | matchesExtension (const OUString &_rExt) const |
const OUString & | getExtension () const |
bool | isCaseSensitiveExtension () const |
OFileDriver * | getDriver () const |
bool | showDeleted () const |
bool | isCheckEnabled () const |
bool | isTextEncodingDefaulted () const |
void | setCaseSensitiveExtension (bool _bIsCS, GrantAccess) |
Public Member Functions inherited from connectivity::OMetaConnection | |
OMetaConnection () | |
rtl_TextEncoding | getTextEncoding () const |
const OUString & | getURL () const |
void | setURL (const OUString &_rsUrl) |
void | throwGenericSQLException (TranslateId pErrorResourceId, const css::uno::Reference< css::uno::XInterface > &_xContext) |
const SharedResources & | getResources () const |
void | setConnectionInfo (const css::uno::Sequence< css::beans::PropertyValue > &_aInfo) |
const css::uno::Sequence< css::beans::PropertyValue > & | getConnectionInfo () const |
virtual void SAL_CALL | disposing () override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override |
Private Attributes | |
css::uno::Reference< css::text::XTextDocument > | m_xDoc |
OUString | m_sPassword |
OUString | m_aFileName |
oslInterlockedCount | m_nDocCount = 0 |
rtl::Reference< CloseVetoButTerminateListener > | m_xCloseVetoButTerminateListener |
Additional Inherited Members | |
Static Public Member Functions inherited from connectivity::file::OConnection | |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Static Public Member Functions inherited from connectivity::OMetaConnection | |
::dbtools::OPropertyMap & | getPropMap () |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Protected Member Functions inherited from connectivity::file::OConnection | |
void | throwUrlNotValid (const OUString &_rsUrl, const OUString &_rsMessage) |
virtual | ~OConnection () override |
Protected Attributes inherited from connectivity::file::OConnection | |
css::uno::WeakReference< css::sdbcx::XTablesSupplier > | m_xCatalog |
OUString | m_aFilenameExtension |
OFileDriver * | m_pDriver |
css::uno::Reference< css::ucb::XDynamicResultSet > | m_xDir |
css::uno::Reference< css::ucb::XContent > | m_xContent |
bool | m_bAutoCommit |
bool | m_bReadOnly |
bool | m_bShowDeleted |
bool | m_bCaseSensitiveExtension |
bool | m_bCheckSQL92 |
bool | m_bDefaultTextEncoding |
Protected Attributes inherited from connectivity::OMetaConnection | |
::osl::Mutex | m_aMutex |
css::uno::Sequence< css::beans::PropertyValue > | m_aConnectionInfo |
connectivity::OWeakRefArray | m_aStatements |
OUString | m_sURL |
rtl_TextEncoding | m_nTextEncoding |
css::uno::WeakReference< css::sdbc::XDatabaseMetaData > | m_xMetaData |
SharedResources | m_aResources |
Definition at line 41 of file WConnection.hxx.
connectivity::writer::OWriterConnection::OWriterConnection | ( | ODriver * | _pDriver | ) |
Definition at line 43 of file WConnection.cxx.
|
overridedefault |
uno::Reference< text::XTextDocument > const & connectivity::writer::OWriterConnection::acquireDoc | ( | ) |
Definition at line 91 of file WConnection.cxx.
References exceptionToString(), getComponentContext(), connectivity::file::OConnection::getDriver(), connectivity::SharedResources::getResourceStringWithSubstitution(), uno::Any::hasValue(), m_aFileName, connectivity::OMetaConnection::m_aResources, m_nDocCount, m_sPassword, m_xCloseVetoButTerminateListener, m_xDoc, SAL_WARN, and dbtools::throwGenericSQLException().
Referenced by connectivity::writer::OWriterTable::construct(), construct(), and connectivity::writer::OWriterConnection::ODocHolder::ODocHolder().
|
overridevirtual |
css::sdbc::SQLException | |
css::uno::RuntimeException | |
css::uno::DeploymentException |
Reimplemented from connectivity::file::OConnection.
Definition at line 50 of file WConnection.cxx.
References acquireDoc(), aURL, m_aFileName, m_sPassword, INetURLObject::NONE, and SvtPathOptions::SubstituteVariable().
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 198 of file WConnection.cxx.
References connectivity::OMetaConnection::m_aMutex, and connectivity::file::OConnection::m_xCatalog.
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 210 of file WConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_aStatements.
connectivity::writer::OWriterConnection::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 163 of file WConnection.cxx.
References connectivity::OMetaConnection::m_aMutex, m_nDocCount, m_xCloseVetoButTerminateListener, and m_xDoc.
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 234 of file WConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
Reimplemented from connectivity::file::OConnection.
Definition at line 221 of file WConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_aStatements.
void connectivity::writer::OWriterConnection::releaseDoc | ( | ) |
Definition at line 150 of file WConnection.cxx.
References m_nDocCount, m_xCloseVetoButTerminateListener, and m_xDoc.
Referenced by connectivity::writer::OWriterTable::disposing(), and connectivity::writer::OWriterConnection::ODocHolder::~ODocHolder().
|
private |
Definition at line 46 of file WConnection.hxx.
Referenced by acquireDoc(), and construct().
|
private |
Definition at line 47 of file WConnection.hxx.
Referenced by acquireDoc(), disposing(), and releaseDoc().
|
private |
Definition at line 45 of file WConnection.hxx.
Referenced by acquireDoc(), and construct().
|
private |
Definition at line 105 of file WConnection.hxx.
Referenced by acquireDoc(), disposing(), and releaseDoc().
|
private |
Definition at line 44 of file WConnection.hxx.
Referenced by acquireDoc(), disposing(), and releaseDoc().