LibreOffice Module connectivity (master) 1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
connectivity::file::OConnection Class Reference

#include <FConnection.hxx>

Inheritance diagram for connectivity::file::OConnection:
[legend]
Collaboration diagram for connectivity::file::OConnection:
[legend]

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
 
OFileDrivergetDriver () 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 SharedResourcesgetResources () 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::OPropertyMapgetPropMap ()
 
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
 
OFileDriverm_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
 

Detailed Description

Definition at line 35 of file FConnection.hxx.

Constructor & Destructor Documentation

◆ ~OConnection()

OConnection::~OConnection ( )
overrideprotectedvirtual

Definition at line 69 of file FConnection.cxx.

References close(), and isClosed().

◆ OConnection()

OConnection::OConnection ( OFileDriver _pDriver)

Definition at line 57 of file FConnection.cxx.

References m_bReadOnly, and connectivity::OMetaConnection::m_nTextEncoding.

Member Function Documentation

◆ clearWarnings()

void SAL_CALL OConnection::clearWarnings ( )
overridevirtual

Definition at line 361 of file FConnection.cxx.

◆ close()

void SAL_CALL OConnection::close ( )
finaloverridevirtual

◆ commit()

void SAL_CALL OConnection::commit ( )
overridevirtual

Definition at line 266 of file FConnection.cxx.

◆ construct()

virtual void connectivity::file::OConnection::construct ( const OUString &  _rUrl,
const css::uno::Sequence< css::beans::PropertyValue > &  _rInfo 
)
virtual
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException
css::uno::DeploymentException

Reimplemented in connectivity::calc::OCalcConnection, connectivity::flat::OFlatConnection, and connectivity::writer::OWriterConnection.

◆ createCatalog()

Reference< XTablesSupplier > OConnection::createCatalog ( )
virtual

◆ createStatement()

Reference< XStatement > SAL_CALL OConnection::createStatement ( )
overridevirtual

◆ DECLARE_SERVICE_INFO()

connectivity::file::OConnection::DECLARE_SERVICE_INFO ( )

◆ disposing()

void OConnection::disposing ( )
overridevirtual

◆ getAutoCommit()

sal_Bool SAL_CALL OConnection::getAutoCommit ( )
overridevirtual

◆ getCatalog()

OUString SAL_CALL OConnection::getCatalog ( )
overridevirtual

Definition at line 320 of file FConnection.cxx.

◆ getContent()

const css::uno::Reference< css::ucb::XContent > & connectivity::file::OConnection::getContent ( ) const
inline

Definition at line 105 of file FConnection.hxx.

References m_xContent.

Referenced by getDir(), and connectivity::dbase::ODbaseDatabaseMetaData::isReadOnly().

◆ getDir()

Reference< XDynamicResultSet > OConnection::getDir ( ) const

◆ getDriver()

OFileDriver * connectivity::file::OConnection::getDriver ( ) const
inline

◆ getExtension()

const OUString & connectivity::file::OConnection::getExtension ( ) const
inline

Definition at line 111 of file FConnection.hxx.

Referenced by connectivity::flat::OFlatTable::construct(), and matchesExtension().

◆ getMetaData()

Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData ( )
overridevirtual

◆ getSomething()

virtual sal_Int64 SAL_CALL connectivity::file::OConnection::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Reimplemented from connectivity::OMetaConnection.

◆ getTransactionIsolation()

sal_Int32 SAL_CALL OConnection::getTransactionIsolation ( )
overridevirtual

Definition at line 330 of file FConnection.cxx.

◆ getTypeMap()

Reference< XNameAccess > SAL_CALL OConnection::getTypeMap ( )
overridevirtual

Definition at line 335 of file FConnection.cxx.

◆ getUnoTunnelId()

const Sequence< sal_Int8 > & OConnection::getUnoTunnelId ( )
static

Definition at line 408 of file FConnection.cxx.

References comphelper::UnoIdInit::getSeq().

◆ getWarnings()

Any SAL_CALL OConnection::getWarnings ( )
overridevirtual

Definition at line 356 of file FConnection.cxx.

References Any.

◆ isCaseSensitiveExtension()

bool connectivity::file::OConnection::isCaseSensitiveExtension ( ) const
inline

Definition at line 112 of file FConnection.hxx.

Referenced by matchesExtension().

◆ isCheckEnabled()

bool connectivity::file::OConnection::isCheckEnabled ( ) const
inline

Definition at line 115 of file FConnection.hxx.

◆ isClosed()

sal_Bool SAL_CALL OConnection::isClosed ( )
finaloverridevirtual

Definition at line 274 of file FConnection.cxx.

References connectivity::OMetaConnection::m_aMutex.

Referenced by ~OConnection().

◆ isReadOnly()

sal_Bool SAL_CALL OConnection::isReadOnly ( )
overridevirtual

◆ isTextEncodingDefaulted()

bool connectivity::file::OConnection::isTextEncodingDefaulted ( ) const
inline

Definition at line 116 of file FConnection.hxx.

Referenced by connectivity::dbase::ODbaseTable::readHeader().

◆ matchesExtension()

bool OConnection::matchesExtension ( const OUString &  _rExt) const

◆ nativeSQL()

OUString SAL_CALL OConnection::nativeSQL ( const OUString &  sql)
overridevirtual

Definition at line 245 of file FConnection.cxx.

◆ prepareCall()

Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall ( const OUString &  sql)
overridevirtual

◆ prepareStatement()

Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement ( const OUString &  sql)
overridevirtual

◆ rollback()

void SAL_CALL OConnection::rollback ( )
overridevirtual

Definition at line 270 of file FConnection.cxx.

◆ setAutoCommit()

void SAL_CALL OConnection::setAutoCommit ( sal_Bool  autoCommit)
overridevirtual

◆ setCaseSensitiveExtension()

void connectivity::file::OConnection::setCaseSensitiveExtension ( bool  _bIsCS,
GrantAccess   
)
inline

Definition at line 126 of file FConnection.hxx.

◆ setCatalog()

void SAL_CALL OConnection::setCatalog ( const OUString &  catalog)
overridevirtual

◆ setReadOnly()

void SAL_CALL OConnection::setReadOnly ( sal_Bool  readOnly)
overridevirtual

◆ setTransactionIsolation()

void SAL_CALL OConnection::setTransactionIsolation ( sal_Int32  level)
overridevirtual

◆ setTypeMap()

virtual void SAL_CALL connectivity::file::OConnection::setTypeMap ( const css::uno::Reference< css::container::XNameAccess > &  typeMap)
overridevirtual

◆ showDeleted()

bool connectivity::file::OConnection::showDeleted ( ) const
inline

Definition at line 114 of file FConnection.hxx.

◆ throwUrlNotValid()

void OConnection::throwUrlNotValid ( const OUString &  _rsUrl,
const OUString &  _rsMessage 
)
protected

Member Data Documentation

◆ m_aFilenameExtension

OUString connectivity::file::OConnection::m_aFilenameExtension
protected

◆ m_bAutoCommit

bool connectivity::file::OConnection::m_bAutoCommit
protected

Definition at line 49 of file FConnection.hxx.

Referenced by getAutoCommit(), and setAutoCommit().

◆ m_bCaseSensitiveExtension

bool connectivity::file::OConnection::m_bCaseSensitiveExtension
protected

Definition at line 52 of file FConnection.hxx.

◆ m_bCheckSQL92

bool connectivity::file::OConnection::m_bCheckSQL92
protected

Definition at line 53 of file FConnection.hxx.

◆ m_bDefaultTextEncoding

bool connectivity::file::OConnection::m_bDefaultTextEncoding
protected

Definition at line 54 of file FConnection.hxx.

◆ m_bReadOnly

bool connectivity::file::OConnection::m_bReadOnly
protected

Definition at line 50 of file FConnection.hxx.

Referenced by isReadOnly(), and setReadOnly().

◆ m_bShowDeleted

bool connectivity::file::OConnection::m_bShowDeleted
protected

Definition at line 51 of file FConnection.hxx.

◆ m_pDriver

OFileDriver* connectivity::file::OConnection::m_pDriver
protected

Definition at line 44 of file FConnection.hxx.

◆ m_xCatalog

css::uno::WeakReference< css::sdbcx::XTablesSupplier> connectivity::file::OConnection::m_xCatalog
protected

◆ m_xContent

css::uno::Reference< css::ucb::XContent> connectivity::file::OConnection::m_xContent
protected

Definition at line 47 of file FConnection.hxx.

Referenced by disposing().

◆ m_xDir

css::uno::Reference< css::ucb::XDynamicResultSet > connectivity::file::OConnection::m_xDir
protected

Definition at line 46 of file FConnection.hxx.

Referenced by disposing().


The documentation for this class was generated from the following files: