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

#include <ConnectionWrapper.hxx>

Inheritance diagram for connectivity::OConnectionWrapper:
[legend]
Collaboration diagram for connectivity::OConnectionWrapper:
[legend]

Public Member Functions

 OConnectionWrapper ()
 
 DECLARE_SERVICE_INFO ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
- Public Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
static void createUniqueId (const OUString &_rURL, css::uno::Sequence< css::beans::PropertyValue > &_rInfo, sal_uInt8 *_pBuffer, const OUString &_rUserName=OUString(), const OUString &_rPassword=OUString())
 method to create unique ids More...
 

Protected Member Functions

virtual ~OConnectionWrapper ()
 
void setDelegation (css::uno::Reference< css::uno::XAggregation > &_rxProxyConnection, oslInterlockedCount &_rRefCount)
 
void setDelegation (const css::uno::Reference< css::sdbc::XConnection > &_xConnection, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, oslInterlockedCount &_rRefCount)
 
void disposing ()
 
- Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
 ~ImplHelper2 () SAL_NOEXCEPT
 

Protected Attributes

css::uno::Reference< css::uno::XAggregation > m_xProxyConnection
 
css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
css::uno::Reference< css::lang::XTypeProvider > m_xTypeProvider
 
css::uno::Reference< css::lang::XUnoTunnel > m_xUnoTunnel
 
css::uno::Reference< css::lang::XServiceInfo > m_xServiceInfo
 

Detailed Description

Definition at line 44 of file ConnectionWrapper.hxx.

Constructor & Destructor Documentation

◆ ~OConnectionWrapper()

OConnectionWrapper::~OConnectionWrapper ( )
protectedvirtual

Definition at line 98 of file ConnectionWrapper.cxx.

References m_xProxyConnection.

◆ OConnectionWrapper()

OConnectionWrapper::OConnectionWrapper ( )

Definition at line 39 of file ConnectionWrapper.cxx.

Member Function Documentation

◆ createUniqueId()

void OConnectionWrapper::createUniqueId ( const OUString &  _rURL,
css::uno::Sequence< css::beans::PropertyValue > &  _rInfo,
sal_uInt8 _pBuffer,
const OUString &  _rUserName = OUString(),
const OUString &  _rPassword = OUString() 
)
static

method to create unique ids

Parameters
_rURLThe URL.
_rInfoThe info property of the datasource. It will be resorted if needed.
_pBufferHere we store the digest. Must not NULL.
_rUserNameThe user name.
_rPasswordThe password.

Definition at line 188 of file ConnectionWrapper.cxx.

References aSeq, begin, end, comphelper::Hash::finalize(), nValue, result, and comphelper::Hash::update().

Referenced by connectivity::OConnectionPool::createNewConnection(), and connectivity::OConnectionPool::getConnectionWithInfo().

◆ DECLARE_SERVICE_INFO()

connectivity::OConnectionWrapper::DECLARE_SERVICE_INFO ( )

References queryInterface().

◆ disposing()

void OConnectionWrapper::disposing ( )
protected

◆ getSomething()

sal_Int64 SAL_CALL OConnectionWrapper::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Definition at line 154 of file ConnectionWrapper.cxx.

References comphelper::getSomething_cast(), and m_xUnoTunnel.

◆ getTypes()

Sequence< Type > SAL_CALL OConnectionWrapper::getTypes ( )
overridevirtual

◆ getUnoTunnelId()

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

Definition at line 165 of file ConnectionWrapper.cxx.

References comphelper::UnoIdInit::getSeq().

◆ queryInterface()

Any SAL_CALL OConnectionWrapper::queryInterface ( const css::uno::Type &  _rType)
overridevirtual

◆ setDelegation() [1/2]

void connectivity::OConnectionWrapper::setDelegation ( const css::uno::Reference< css::sdbc::XConnection > &  _xConnection,
const css::uno::Reference< css::uno::XComponentContext > &  _rxContext,
oslInterlockedCount &  _rRefCount 
)
protected

◆ setDelegation() [2/2]

void connectivity::OConnectionWrapper::setDelegation ( css::uno::Reference< css::uno::XAggregation > &  _rxProxyConnection,
oslInterlockedCount &  _rRefCount 
)
protected

Member Data Documentation

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection > connectivity::OConnectionWrapper::m_xConnection
protected

◆ m_xProxyConnection

css::uno::Reference< css::uno::XAggregation > connectivity::OConnectionWrapper::m_xProxyConnection
protected

Definition at line 47 of file ConnectionWrapper.hxx.

Referenced by queryInterface(), and ~OConnectionWrapper().

◆ m_xServiceInfo

css::uno::Reference< css::lang::XServiceInfo > connectivity::OConnectionWrapper::m_xServiceInfo
protected

Definition at line 51 of file ConnectionWrapper.hxx.

◆ m_xTypeProvider

css::uno::Reference< css::lang::XTypeProvider > connectivity::OConnectionWrapper::m_xTypeProvider
protected

Definition at line 49 of file ConnectionWrapper.hxx.

Referenced by getTypes().

◆ m_xUnoTunnel

css::uno::Reference< css::lang::XUnoTunnel > connectivity::OConnectionWrapper::m_xUnoTunnel
protected

Definition at line 50 of file ConnectionWrapper.hxx.

Referenced by getSomething().


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