LibreOffice Module connectivity (master) 1
|
#include <FConnection.hxx>
Classes | |
struct | GrantAccess |
Public Member Functions | |
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 |
Static Public Member Functions | |
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 | |
void | throwUrlNotValid (const OUString &_rsUrl, const OUString &_rsMessage) |
virtual | ~OConnection () override |
Protected Attributes | |
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 35 of file FConnection.hxx.
|
overrideprotectedvirtual |
Definition at line 69 of file FConnection.cxx.
References close(), and isClosed().
OConnection::OConnection | ( | OFileDriver * | _pDriver | ) |
Definition at line 57 of file FConnection.cxx.
References m_bReadOnly, and connectivity::OMetaConnection::m_nTextEncoding.
|
overridevirtual |
Definition at line 361 of file FConnection.cxx.
|
finaloverridevirtual |
Definition at line 345 of file FConnection.cxx.
References connectivity::checkDisposed(), dispose(), and connectivity::OMetaConnection::m_aMutex.
Referenced by ~OConnection().
|
overridevirtual |
Definition at line 266 of file FConnection.cxx.
|
virtual |
css::sdbc::SQLException | |
css::uno::RuntimeException | |
css::uno::DeploymentException |
Reimplemented in connectivity::calc::OCalcConnection, connectivity::flat::OFlatConnection, and connectivity::writer::OWriterConnection.
|
virtual |
Reimplemented in connectivity::calc::OCalcConnection, connectivity::dbase::ODbaseConnection, connectivity::flat::OFlatConnection, and connectivity::writer::OWriterConnection.
Definition at line 375 of file FConnection.cxx.
References connectivity::OMetaConnection::m_aMutex, and m_xCatalog.
Referenced by connectivity::component::OComponentDatabaseMetaData::getColumns(), connectivity::dbase::ODbaseDatabaseMetaData::getColumns(), connectivity::flat::OFlatDatabaseMetaData::getColumns(), and connectivity::dbase::ODbaseDatabaseMetaData::getIndexInfo().
|
overridevirtual |
Reimplemented in connectivity::calc::OCalcConnection, connectivity::dbase::ODbaseConnection, connectivity::flat::OFlatConnection, and connectivity::writer::OWriterConnection.
Definition at line 216 of file FConnection.cxx.
References connectivity::checkDisposed(), and m_aMutex.
Referenced by connectivity::dbase::ODbaseIndex::CreateImpl().
connectivity::file::OConnection::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Reimplemented from connectivity::OMetaConnection.
Reimplemented in connectivity::calc::OCalcConnection, and connectivity::writer::OWriterConnection.
Definition at line 365 of file FConnection.cxx.
References disposing(), connectivity::OMetaConnection::m_aMutex, m_xCatalog, m_xContent, and m_xDir.
Referenced by connectivity::mysqlc::OConnection::disposing(), and disposing().
|
overridevirtual |
Definition at line 258 of file FConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and m_bAutoCommit.
|
overridevirtual |
Definition at line 320 of file FConnection.cxx.
|
inline |
Definition at line 105 of file FConnection.hxx.
References m_xContent.
Referenced by getDir(), and connectivity::dbase::ODbaseDatabaseMetaData::isReadOnly().
Reference< XDynamicResultSet > OConnection::getDir | ( | ) | const |
Definition at line 387 of file FConnection.cxx.
References ucbhelper::Content::createDynamicCursor(), Exception, getContent(), and comphelper::getProcessComponentContext().
Referenced by connectivity::flat::OFlatTable::getEntry(), and connectivity::dbase::ODbaseTable::getEntry().
|
inline |
Definition at line 113 of file FConnection.hxx.
Referenced by connectivity::calc::OCalcConnection::acquireDoc(), connectivity::writer::OWriterConnection::acquireDoc(), connectivity::flat::OFlatTable::construct(), and connectivity::flat::OFlatTable::fillColumns().
|
inline |
Definition at line 111 of file FConnection.hxx.
Referenced by connectivity::flat::OFlatTable::construct(), and matchesExtension().
|
overridevirtual |
Reimplemented in connectivity::calc::OCalcConnection, connectivity::dbase::ODbaseConnection, connectivity::flat::OFlatConnection, and connectivity::writer::OWriterConnection.
Definition at line 281 of file FConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_xMetaData.
Referenced by connectivity::dbase::ODbaseIndexColumns::createDescriptor(), connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::dbase::ODbaseIndexColumns::createObject(), connectivity::file::OColumns::createObject(), connectivity::calc::OCalcTable::fillColumns(), connectivity::dbase::ODbaseTable::fillColumns(), connectivity::writer::OWriterTable::fillColumns(), connectivity::flat::OFlatTable::fillColumns(), and connectivity::file::OFileTable::refreshColumns().
|
overridevirtual |
Reimplemented from connectivity::OMetaConnection.
|
overridevirtual |
Definition at line 330 of file FConnection.cxx.
|
overridevirtual |
Definition at line 335 of file FConnection.cxx.
Definition at line 408 of file FConnection.cxx.
References comphelper::UnoIdInit::getSeq().
|
overridevirtual |
Definition at line 356 of file FConnection.cxx.
References Any.
|
inline |
Definition at line 112 of file FConnection.hxx.
Referenced by matchesExtension().
|
inline |
Definition at line 115 of file FConnection.hxx.
|
finaloverridevirtual |
Definition at line 274 of file FConnection.cxx.
References connectivity::OMetaConnection::m_aMutex.
Referenced by ~OConnection().
|
overridevirtual |
Definition at line 306 of file FConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and m_bReadOnly.
|
inline |
Definition at line 116 of file FConnection.hxx.
Referenced by connectivity::dbase::ODbaseTable::readHeader().
bool OConnection::matchesExtension | ( | const OUString & | _rExt | ) | const |
Definition at line 75 of file FConnection.cxx.
References getExtension(), and isCaseSensitiveExtension().
Referenced by connectivity::dbase::ODbaseTable::construct(), connectivity::flat::OFlatTable::getEntry(), and connectivity::dbase::ODbaseTable::getEntry().
|
overridevirtual |
Definition at line 245 of file FConnection.cxx.
|
overridevirtual |
Reimplemented in connectivity::calc::OCalcConnection, connectivity::dbase::ODbaseConnection, connectivity::flat::OFlatConnection, and connectivity::writer::OWriterConnection.
Definition at line 239 of file FConnection.cxx.
References dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
Reimplemented in connectivity::calc::OCalcConnection, connectivity::dbase::ODbaseConnection, connectivity::flat::OFlatConnection, and connectivity::writer::OWriterConnection.
Definition at line 227 of file FConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and connectivity::OMetaConnection::m_aStatements.
|
overridevirtual |
Definition at line 270 of file FConnection.cxx.
|
overridevirtual |
Definition at line 250 of file FConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and m_bAutoCommit.
|
inline |
Definition at line 126 of file FConnection.hxx.
|
overridevirtual |
Definition at line 315 of file FConnection.cxx.
References dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
Definition at line 297 of file FConnection.cxx.
References connectivity::checkDisposed(), connectivity::OMetaConnection::m_aMutex, and m_bReadOnly.
|
overridevirtual |
Definition at line 325 of file FConnection.cxx.
References dbtools::throwFeatureNotImplementedSQLException().
|
overridevirtual |
|
inline |
Definition at line 114 of file FConnection.hxx.
|
protected |
Definition at line 414 of file FConnection.cxx.
References Any, connectivity::OMetaConnection::getResources(), and connectivity::SharedResources::getResourceStringWithSubstitution().
|
protected |
Definition at line 43 of file FConnection.hxx.
Referenced by connectivity::dbase::ODbaseConnection::ODbaseConnection().
|
protected |
Definition at line 49 of file FConnection.hxx.
Referenced by getAutoCommit(), and setAutoCommit().
|
protected |
Definition at line 52 of file FConnection.hxx.
|
protected |
Definition at line 53 of file FConnection.hxx.
|
protected |
Definition at line 54 of file FConnection.hxx.
|
protected |
Definition at line 50 of file FConnection.hxx.
Referenced by isReadOnly(), and setReadOnly().
|
protected |
Definition at line 51 of file FConnection.hxx.
|
protected |
Definition at line 44 of file FConnection.hxx.
|
protected |
Definition at line 41 of file FConnection.hxx.
Referenced by createCatalog(), connectivity::calc::OCalcConnection::createCatalog(), connectivity::dbase::ODbaseConnection::createCatalog(), connectivity::writer::OWriterConnection::createCatalog(), and disposing().
|
protected |
Definition at line 47 of file FConnection.hxx.
Referenced by disposing().
|
protected |
Definition at line 46 of file FConnection.hxx.
Referenced by disposing().