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

#include <pq_xcontainer.hxx>

Inheritance diagram for pq_sdbc_driver::Container:
[legend]
Collaboration diagram for pq_sdbc_driver::Container:
[legend]

Public Member Functions

 Container (const ::rtl::Reference< comphelper::RefCountedMutex > &refMutex, css::uno::Reference< css::sdbc::XConnection > origin, ConnectionSettings *pSettings, OUString type)
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual void SAL_CALL appendByDescriptor (const css::uno::Reference< css::beans::XPropertySet > &descriptor) override
 
void append (const OUString &str, const css::uno::Reference< css::beans::XPropertySet > &descriptor)
 
virtual void SAL_CALL dropByName (const OUString &elementName) override
 
virtual void SAL_CALL dropByIndex (sal_Int32 index) override
 
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor () override=0
 
virtual void SAL_CALL refresh () override
 
virtual void SAL_CALL addRefreshListener (const css::uno::Reference< css::util::XRefreshListener > &l) override
 
virtual void SAL_CALL removeRefreshListener (const css::uno::Reference< css::util::XRefreshListener > &l) override
 
virtual void SAL_CALL addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override
 
virtual void SAL_CALL removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override
 
virtual void SAL_CALL disposing () override
 
void rename (const OUString &oldName, const OUString &newName)
 

Protected Member Functions

void fire (const EventBroadcastHelper &helper)
 

Protected Attributes

::rtl::Reference< comphelper::RefCountedMutexm_xMutex
 
ConnectionSettingsm_pSettings
 
css::uno::Reference< css::sdbc::XConnection > m_origin
 
String2IntMap m_name2index
 
std::vector< css::uno::Any > m_values
 
OUString m_type
 

Detailed Description

Definition at line 107 of file pq_xcontainer.hxx.

Constructor & Destructor Documentation

◆ Container()

pq_sdbc_driver::Container::Container ( const ::rtl::Reference< comphelper::RefCountedMutex > &  refMutex,
css::uno::Reference< css::sdbc::XConnection >  origin,
ConnectionSettings pSettings,
OUString  type 
)

Definition at line 139 of file pq_xcontainer.cxx.

References m_type.

Member Function Documentation

◆ addContainerListener()

void pq_sdbc_driver::Container::addContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 368 of file pq_xcontainer.cxx.

◆ addRefreshListener()

void pq_sdbc_driver::Container::addRefreshListener ( const css::uno::Reference< css::util::XRefreshListener > &  l)
overridevirtual

Definition at line 252 of file pq_xcontainer.cxx.

◆ append()

void pq_sdbc_driver::Container::append ( const OUString &  str,
const css::uno::Reference< css::beans::XPropertySet > &  descriptor 
)
Exceptions
css::container::ElementExistException

Definition at line 340 of file pq_xcontainer.cxx.

References Any, fire(), hasByName(), index, m_name2index, m_type, m_values, m_xMutex, and name.

Referenced by appendByDescriptor().

◆ appendByDescriptor()

void pq_sdbc_driver::Container::appendByDescriptor ( const css::uno::Reference< css::beans::XPropertySet > &  descriptor)
overridevirtual

◆ createDataDescriptor()

virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL pq_sdbc_driver::Container::createDataDescriptor ( )
overridepure virtual

◆ createEnumeration()

Reference< XEnumeration > pq_sdbc_driver::Container::createEnumeration ( )
overridevirtual

Definition at line 247 of file pq_xcontainer.cxx.

References m_values.

◆ disposing()

void pq_sdbc_driver::Container::disposing ( )
overridevirtual

Reimplemented in pq_sdbc_driver::Tables, pq_sdbc_driver::Users, and pq_sdbc_driver::Views.

Definition at line 264 of file pq_xcontainer.cxx.

References m_origin.

◆ dropByIndex()

void pq_sdbc_driver::Container::dropByIndex ( sal_Int32  index)
overridevirtual

◆ dropByName()

void pq_sdbc_driver::Container::dropByName ( const OUString &  elementName)
overridevirtual

◆ fire()

void pq_sdbc_driver::Container::fire ( const EventBroadcastHelper helper)
protected

◆ getByIndex()

Any pq_sdbc_driver::Container::getByIndex ( sal_Int32  Index)
overridevirtual

Definition at line 192 of file pq_xcontainer.cxx.

References Any, m_type, m_values, and o3tl::make_unsigned().

◆ getByName()

Any pq_sdbc_driver::Container::getByName ( const OUString &  aName)
overridevirtual

Definition at line 152 of file pq_xcontainer.cxx.

References aName, Any, m_name2index, m_type, m_values, and o3tl::make_unsigned().

◆ getCount()

sal_Int32 pq_sdbc_driver::Container::getCount ( )
overridevirtual

Definition at line 205 of file pq_xcontainer.cxx.

References m_values.

◆ getElementNames()

Sequence< OUString > pq_sdbc_driver::Container::getElementNames ( )
overridevirtual

Definition at line 165 of file pq_xcontainer.cxx.

References m_name2index, and m_values.

◆ getElementType()

Type pq_sdbc_driver::Container::getElementType ( )
overridevirtual

Definition at line 182 of file pq_xcontainer.cxx.

◆ hasByName()

sal_Bool pq_sdbc_driver::Container::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 177 of file pq_xcontainer.cxx.

Referenced by append().

◆ hasElements()

sal_Bool pq_sdbc_driver::Container::hasElements ( )
overridevirtual

Definition at line 187 of file pq_xcontainer.cxx.

References m_name2index.

◆ refresh()

virtual void SAL_CALL pq_sdbc_driver::Container::refresh ( )
inlineoverridevirtual

◆ removeContainerListener()

void pq_sdbc_driver::Container::removeContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 374 of file pq_xcontainer.cxx.

◆ removeRefreshListener()

void pq_sdbc_driver::Container::removeRefreshListener ( const css::uno::Reference< css::util::XRefreshListener > &  l)
overridevirtual

Definition at line 258 of file pq_xcontainer.cxx.

◆ rename()

void pq_sdbc_driver::Container::rename ( const OUString &  oldName,
const OUString &  newName 
)

Definition at line 269 of file pq_xcontainer.cxx.

References Any, fire(), m_name2index, m_values, m_xMutex, newName(), and nIndex.

Member Data Documentation

◆ m_name2index

String2IntMap pq_sdbc_driver::Container::m_name2index
protected

◆ m_origin

css::uno::Reference< css::sdbc::XConnection > pq_sdbc_driver::Container::m_origin
protected

Definition at line 112 of file pq_xcontainer.hxx.

Referenced by pq_sdbc_driver::Columns::appendByDescriptor(), pq_sdbc_driver::Indexes::appendByDescriptor(), pq_sdbc_driver::Keys::appendByDescriptor(), pq_sdbc_driver::Tables::appendByDescriptor(), pq_sdbc_driver::Users::appendByDescriptor(), pq_sdbc_driver::Views::appendByDescriptor(), pq_sdbc_driver::Columns::createDataDescriptor(), pq_sdbc_driver::ColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::IndexColumns::createDataDescriptor(), pq_sdbc_driver::IndexColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::Indexes::createDataDescriptor(), pq_sdbc_driver::IndexDescriptors::createDataDescriptor(), pq_sdbc_driver::KeyColumns::createDataDescriptor(), pq_sdbc_driver::KeyColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::Keys::createDataDescriptor(), pq_sdbc_driver::KeyDescriptors::createDataDescriptor(), pq_sdbc_driver::Tables::createDataDescriptor(), pq_sdbc_driver::Users::createDataDescriptor(), pq_sdbc_driver::Views::createDataDescriptor(), disposing(), pq_sdbc_driver::Columns::dropByIndex(), pq_sdbc_driver::Indexes::dropByIndex(), pq_sdbc_driver::Keys::dropByIndex(), pq_sdbc_driver::Tables::dropByIndex(), pq_sdbc_driver::Users::dropByIndex(), pq_sdbc_driver::Views::dropByIndex(), pq_sdbc_driver::Columns::refresh(), pq_sdbc_driver::IndexColumns::refresh(), pq_sdbc_driver::Indexes::refresh(), pq_sdbc_driver::KeyColumns::refresh(), pq_sdbc_driver::Keys::refresh(), pq_sdbc_driver::Tables::refresh(), pq_sdbc_driver::Users::refresh(), and pq_sdbc_driver::Views::refresh().

◆ m_pSettings

ConnectionSettings* pq_sdbc_driver::Container::m_pSettings
protected

Definition at line 111 of file pq_xcontainer.hxx.

Referenced by pq_sdbc_driver::Columns::appendByDescriptor(), pq_sdbc_driver::Indexes::appendByDescriptor(), pq_sdbc_driver::Keys::appendByDescriptor(), pq_sdbc_driver::Tables::appendByDescriptor(), pq_sdbc_driver::Users::appendByDescriptor(), pq_sdbc_driver::Views::appendByDescriptor(), pq_sdbc_driver::Columns::createDataDescriptor(), pq_sdbc_driver::ColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::IndexColumns::createDataDescriptor(), pq_sdbc_driver::IndexColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::Indexes::createDataDescriptor(), pq_sdbc_driver::IndexDescriptors::createDataDescriptor(), pq_sdbc_driver::KeyColumns::createDataDescriptor(), pq_sdbc_driver::KeyColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::Keys::createDataDescriptor(), pq_sdbc_driver::KeyDescriptors::createDataDescriptor(), pq_sdbc_driver::Tables::createDataDescriptor(), pq_sdbc_driver::Users::createDataDescriptor(), pq_sdbc_driver::Views::createDataDescriptor(), pq_sdbc_driver::Columns::dropByIndex(), pq_sdbc_driver::Indexes::dropByIndex(), pq_sdbc_driver::Keys::dropByIndex(), pq_sdbc_driver::Tables::dropByIndex(), pq_sdbc_driver::Users::dropByIndex(), pq_sdbc_driver::Columns::refresh(), pq_sdbc_driver::IndexColumns::refresh(), pq_sdbc_driver::Indexes::refresh(), pq_sdbc_driver::KeyColumns::refresh(), pq_sdbc_driver::Keys::refresh(), pq_sdbc_driver::Tables::refresh(), pq_sdbc_driver::Users::refresh(), and pq_sdbc_driver::Views::refresh().

◆ m_type

OUString pq_sdbc_driver::Container::m_type
protected

Definition at line 115 of file pq_xcontainer.hxx.

Referenced by append(), dropByIndex(), dropByName(), getByIndex(), and getByName().

◆ m_values

std::vector< css::uno::Any > pq_sdbc_driver::Container::m_values
protected

◆ m_xMutex

::rtl::Reference< comphelper::RefCountedMutex > pq_sdbc_driver::Container::m_xMutex
protected

Definition at line 110 of file pq_xcontainer.hxx.

Referenced by append(), pq_sdbc_driver::Columns::appendByDescriptor(), pq_sdbc_driver::Keys::appendByDescriptor(), pq_sdbc_driver::Tables::appendByDescriptor(), pq_sdbc_driver::Users::appendByDescriptor(), pq_sdbc_driver::Views::appendByDescriptor(), pq_sdbc_driver::Columns::createDataDescriptor(), pq_sdbc_driver::ColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::IndexColumns::createDataDescriptor(), pq_sdbc_driver::IndexColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::Indexes::createDataDescriptor(), pq_sdbc_driver::IndexDescriptors::createDataDescriptor(), pq_sdbc_driver::KeyColumns::createDataDescriptor(), pq_sdbc_driver::KeyColumnDescriptors::createDataDescriptor(), pq_sdbc_driver::Keys::createDataDescriptor(), pq_sdbc_driver::KeyDescriptors::createDataDescriptor(), pq_sdbc_driver::Tables::createDataDescriptor(), pq_sdbc_driver::Users::createDataDescriptor(), pq_sdbc_driver::Views::createDataDescriptor(), pq_sdbc_driver::Columns::dropByIndex(), dropByIndex(), pq_sdbc_driver::Indexes::dropByIndex(), pq_sdbc_driver::Keys::dropByIndex(), pq_sdbc_driver::Tables::dropByIndex(), pq_sdbc_driver::Users::dropByIndex(), pq_sdbc_driver::Views::dropByIndex(), dropByName(), pq_sdbc_driver::Columns::refresh(), pq_sdbc_driver::IndexColumns::refresh(), pq_sdbc_driver::Indexes::refresh(), pq_sdbc_driver::KeyColumns::refresh(), pq_sdbc_driver::Keys::refresh(), pq_sdbc_driver::Tables::refresh(), pq_sdbc_driver::Users::refresh(), pq_sdbc_driver::Views::refresh(), and rename().


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