LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
connectivity::odbc::ODBCDriver Class Referenceabstract

#include <ODriver.hxx>

Inheritance diagram for connectivity::odbc::ODBCDriver:
[legend]
Collaboration diagram for connectivity::odbc::ODBCDriver:
[legend]

Public Member Functions

 ODBCDriver (css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual oslGenericFunction getOdbcFunction (ODBC3SQLFunctionId _nIndex) const =0
 
virtual void SAL_CALL disposing () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect (const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
 
virtual sal_Bool SAL_CALL acceptsURL (const OUString &url) override
 
virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo (const OUString &url, const css::uno::Sequence< css::beans::PropertyValue > &info) override
 
virtual sal_Int32 SAL_CALL getMajorVersion () override
 
virtual sal_Int32 SAL_CALL getMinorVersion () override
 
const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 

Protected Member Functions

virtual SQLHANDLE EnvironmentHandle (OUString &_rPath)=0
 

Protected Attributes

::osl::Mutex m_aMutex
 
connectivity::OWeakRefArray m_xConnections
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
SQLHANDLE m_pDriverHandle
 

Detailed Description

Definition at line 36 of file ODriver.hxx.

Constructor & Destructor Documentation

◆ ODBCDriver()

ODBCDriver::ODBCDriver ( css::uno::Reference< css::uno::XComponentContext >  xContext)

Definition at line 35 of file ODriver.cxx.

References _xContext, m_aMutex, and m_xContext.

Member Function Documentation

◆ acceptsURL()

sal_Bool SAL_CALL ODBCDriver::acceptsURL ( const OUString &  url)
overridevirtual

Definition at line 98 of file ODriver.cxx.

Referenced by connect(), and getPropertyInfo().

◆ connect()

Reference< XConnection > SAL_CALL ODBCDriver::connect ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overridevirtual

Definition at line 80 of file ODriver.cxx.

References acceptsURL(), Any, EnvironmentHandle(), m_pDriverHandle, and m_xConnections.

◆ disposing()

void ODBCDriver::disposing ( )
overridevirtual

Definition at line 42 of file ODriver.cxx.

References m_aMutex, and m_xConnections.

◆ EnvironmentHandle()

virtual SQLHANDLE connectivity::odbc::ODBCDriver::EnvironmentHandle ( OUString &  _rPath)
protectedpure virtual

Referenced by connect().

◆ getContext()

const css::uno::Reference< css::uno::XComponentContext > & connectivity::odbc::ODBCDriver::getContext ( ) const
inline

Definition at line 71 of file ODriver.hxx.

References m_xContext.

◆ getImplementationName()

OUString ODBCDriver::getImplementationName ( )
overridevirtual

Definition at line 60 of file ODriver.cxx.

◆ getMajorVersion()

sal_Int32 SAL_CALL ODBCDriver::getMajorVersion ( )
overridevirtual

Definition at line 182 of file ODriver.cxx.

◆ getMinorVersion()

sal_Int32 SAL_CALL ODBCDriver::getMinorVersion ( )
overridevirtual

Definition at line 187 of file ODriver.cxx.

◆ getOdbcFunction()

virtual oslGenericFunction connectivity::odbc::ODBCDriver::getOdbcFunction ( ODBC3SQLFunctionId  _nIndex) const
pure virtual

◆ getPropertyInfo()

Sequence< DriverPropertyInfo > SAL_CALL ODBCDriver::getPropertyInfo ( const OUString &  url,
const css::uno::Sequence< css::beans::PropertyValue > &  info 
)
overridevirtual

◆ getSupportedServiceNames()

Sequence< OUString > ODBCDriver::getSupportedServiceNames ( )
overridevirtual

Definition at line 68 of file ODriver.cxx.

◆ supportsService()

sal_Bool SAL_CALL ODBCDriver::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 74 of file ODriver.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_aMutex

::osl::Mutex connectivity::odbc::ODBCDriver::m_aMutex
protected

Definition at line 39 of file ODriver.hxx.

Referenced by disposing().

◆ m_pDriverHandle

SQLHANDLE connectivity::odbc::ODBCDriver::m_pDriverHandle
protected

Definition at line 46 of file ODriver.hxx.

Referenced by connect().

◆ m_xConnections

connectivity::OWeakRefArray connectivity::odbc::ODBCDriver::m_xConnections
protected

Definition at line 41 of file ODriver.hxx.

Referenced by connect(), and disposing().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > connectivity::odbc::ODBCDriver::m_xContext
protected

Definition at line 45 of file ODriver.hxx.


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