LibreOffice Module connectivity (master) 1
|
#include <pq_xcontainer.hxx>
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::RefCountedMutex > | m_xMutex |
ConnectionSettings * | m_pSettings |
css::uno::Reference< css::sdbc::XConnection > | m_origin |
String2IntMap | m_name2index |
std::vector< css::uno::Any > | m_values |
OUString | m_type |
Definition at line 107 of file pq_xcontainer.hxx.
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.
|
overridevirtual |
Definition at line 368 of file pq_xcontainer.cxx.
|
overridevirtual |
Definition at line 252 of file pq_xcontainer.cxx.
void pq_sdbc_driver::Container::append | ( | const OUString & | str, |
const css::uno::Reference< css::beans::XPropertySet > & | descriptor | ||
) |
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().
|
overridevirtual |
Reimplemented in pq_sdbc_driver::Columns, pq_sdbc_driver::IndexColumns, pq_sdbc_driver::Indexes, pq_sdbc_driver::KeyColumns, pq_sdbc_driver::Keys, pq_sdbc_driver::Tables, pq_sdbc_driver::Users, and pq_sdbc_driver::Views.
Definition at line 361 of file pq_xcontainer.cxx.
References append(), pq_sdbc_driver::extractStringProperty(), pq_sdbc_driver::getStatics(), and NAME.
|
overridepure virtual |
Implemented in pq_sdbc_driver::Columns, pq_sdbc_driver::ColumnDescriptors, pq_sdbc_driver::IndexColumns, pq_sdbc_driver::IndexColumnDescriptors, pq_sdbc_driver::Indexes, pq_sdbc_driver::IndexDescriptors, pq_sdbc_driver::KeyColumns, pq_sdbc_driver::KeyColumnDescriptors, pq_sdbc_driver::Keys, pq_sdbc_driver::KeyDescriptors, pq_sdbc_driver::Tables, pq_sdbc_driver::Users, and pq_sdbc_driver::Views.
|
overridevirtual |
Definition at line 247 of file pq_xcontainer.cxx.
References m_values.
|
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.
|
overridevirtual |
Reimplemented in pq_sdbc_driver::Columns, pq_sdbc_driver::IndexColumns, pq_sdbc_driver::Indexes, pq_sdbc_driver::KeyColumns, pq_sdbc_driver::Keys, pq_sdbc_driver::Tables, pq_sdbc_driver::Users, and pq_sdbc_driver::Views.
Definition at line 301 of file pq_xcontainer.cxx.
References fire(), i, index, m_name2index, m_type, m_values, m_xMutex, o3tl::make_unsigned(), and name.
Referenced by pq_sdbc_driver::Columns::dropByIndex(), pq_sdbc_driver::Indexes::dropByIndex(), pq_sdbc_driver::Keys::dropByIndex(), pq_sdbc_driver::Tables::dropByIndex(), and dropByName().
|
overridevirtual |
Reimplemented in pq_sdbc_driver::IndexColumns, pq_sdbc_driver::Users, and pq_sdbc_driver::Views.
Definition at line 287 of file pq_xcontainer.cxx.
References dropByIndex(), m_name2index, m_type, and m_xMutex.
|
protected |
Definition at line 381 of file pq_xcontainer.cxx.
References cppu::OInterfaceIteratorHelper::hasMoreElements(), cppu::OInterfaceIteratorHelper::next(), and TOOLS_WARN_EXCEPTION.
Referenced by append(), 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(), pq_sdbc_driver::Views::refresh(), and rename().
|
overridevirtual |
Definition at line 192 of file pq_xcontainer.cxx.
References Any, m_type, m_values, and o3tl::make_unsigned().
|
overridevirtual |
Definition at line 152 of file pq_xcontainer.cxx.
References aName, Any, m_name2index, m_type, m_values, and o3tl::make_unsigned().
|
overridevirtual |
Definition at line 205 of file pq_xcontainer.cxx.
References m_values.
|
overridevirtual |
Definition at line 165 of file pq_xcontainer.cxx.
References m_name2index, and m_values.
|
overridevirtual |
Definition at line 182 of file pq_xcontainer.cxx.
|
overridevirtual |
Definition at line 177 of file pq_xcontainer.cxx.
Referenced by append().
|
overridevirtual |
Definition at line 187 of file pq_xcontainer.cxx.
References m_name2index.
|
inlineoverridevirtual |
Reimplemented in pq_sdbc_driver::Columns, pq_sdbc_driver::IndexColumns, pq_sdbc_driver::Indexes, pq_sdbc_driver::KeyColumns, pq_sdbc_driver::Keys, pq_sdbc_driver::Tables, pq_sdbc_driver::Users, and pq_sdbc_driver::Views.
Definition at line 163 of file pq_xcontainer.hxx.
|
overridevirtual |
Definition at line 374 of file pq_xcontainer.cxx.
|
overridevirtual |
Definition at line 258 of file pq_xcontainer.cxx.
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.
|
protected |
Definition at line 113 of file pq_xcontainer.hxx.
Referenced by append(), pq_sdbc_driver::Tables::disposing(), dropByIndex(), dropByName(), pq_sdbc_driver::Users::dropByName(), pq_sdbc_driver::Views::dropByName(), getByName(), getElementNames(), hasElements(), 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().
|
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().
|
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().
|
protected |
Definition at line 115 of file pq_xcontainer.hxx.
Referenced by append(), dropByIndex(), dropByName(), getByIndex(), and getByName().
|
protected |
Definition at line 114 of file pq_xcontainer.hxx.
Referenced by append(), createEnumeration(), 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(), getByIndex(), getByName(), getCount(), getElementNames(), 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().
|
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().