LibreOffice Module connectivity (master) 1
|
#include <TKeys.hxx>
Public Member Functions | |
OKeysHelper (OTableHelper *_pTable, ::osl::Mutex &_rMutex, const ::std::vector< OUString > &_rVector) | |
Public Member Functions inherited from connectivity::sdbcx::OCollection | |
virtual | ~OCollection () |
DECLARE_SERVICE_INFO () | |
void | reFill (const ::std::vector< OUString > &_rVector) |
bool | isCaseSensitive () const |
void | renameObject (const OUString &_sOldName, const OUString &_sNewName) |
virtual void | disposing () |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
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 css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual sal_Int32 SAL_CALL | getCount () override |
virtual css::uno::Any SAL_CALL | getByIndex (sal_Int32 Index) 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::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override |
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 css::uno::Reference< css::beans::XPropertySet > SAL_CALL | createDataDescriptor () override |
virtual void SAL_CALL | appendByDescriptor (const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
virtual void SAL_CALL | dropByName (const OUString &elementName) override |
virtual void SAL_CALL | dropByIndex (sal_Int32 index) override |
virtual sal_Int32 SAL_CALL | findColumn (const OUString &columnName) 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 |
Public Member Functions inherited from cppu::ImplHelper10< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10 > | |
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 void | cloneDescriptorColumns (const sdbcx::ObjectType &_rSourceDescriptor, const sdbcx::ObjectType &_rDestDescriptor) |
Protected Member Functions | |
virtual sdbcx::ObjectType | createObject (const OUString &_rName) override |
virtual void | impl_refresh () override |
virtual css::uno::Reference< css::beans::XPropertySet > | createDescriptor () override |
virtual sdbcx::ObjectType | appendObject (const OUString &_rForName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
appends an object described by a descriptor, under a given name More... | |
virtual void | dropObject (sal_Int32 _nPos, const OUString &_sElementName) override |
virtual OUString | getDropForeignKey () const |
Protected Member Functions inherited from connectivity::sdbcx::OCollection | |
virtual void | impl_refresh ()=0 |
virtual ObjectType | createObject (const OUString &_rName)=0 |
virtual css::uno::Reference< css::beans::XPropertySet > | createDescriptor () |
virtual ObjectType | appendObject (const OUString &_rForName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) |
appends an object described by a descriptor, under a given name More... | |
virtual void | dropObject (sal_Int32 _nPos, const OUString &_sElementName) |
virtual OUString | getNameForObject (const ObjectType &_xObject) |
returns the name for the object. More... | |
ObjectType | cloneDescriptor (const ObjectType &_descriptor) |
clones the given descriptor More... | |
OCollection (::cppu::OWeakObject &_rParent, bool _bCase, ::osl::Mutex &_rMutex, const ::std::vector< OUString > &_rVector, bool _bUseIndexOnly=false, bool _bUseHardRef=true) | |
void | clear_NoDispose () |
clear the name map More... | |
void | insertElement (const OUString &_sElementName, const ObjectType &_xElement) |
insert a new element into the collection More... | |
ObjectType | getObject (sal_Int32 _nIndex) |
return the object, if not existent it creates it. More... | |
Protected Member Functions inherited from cppu::ImplHelper10< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10 > | |
~ImplHelper10 () SAL_NOEXCEPT | |
Private Attributes | |
OTableHelper * | m_pTable |
Additional Inherited Members | |
Protected Attributes inherited from connectivity::sdbcx::OCollection | |
::std::unique_ptr< IObjectCollection > | m_pElements |
::comphelper::OInterfaceContainerHelper3< css::container::XContainerListener > | m_aContainerListeners |
::comphelper::OInterfaceContainerHelper3< css::util::XRefreshListener > | m_aRefreshListeners |
::cppu::OWeakObject & | m_rParent |
::osl::Mutex & | m_rMutex |
bool | m_bUseIndexOnly |
connectivity::OKeysHelper::OKeysHelper | ( | OTableHelper * | _pTable, |
::osl::Mutex & | _rMutex, | ||
const ::std::vector< OUString > & | _rVector | ||
) |
|
overrideprotectedvirtual |
appends an object described by a descriptor, under a given name
_rForName | is the name under which the object should be appended. Guaranteed to not be empty. This is passed for convenience only, since it's the result of a call of getNameForObject for the given descriptor |
descriptor | describes the object to append |
createObject( _rForName )
, or a clone of the descriptor. Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 126 of file TKeys.cxx.
References connectivity::OTableHelper::addKey(), Any, connectivity::sdbcx::OCollection::cloneDescriptor(), cloneDescriptorColumns(), dbtools::composeTableName(), createObject(), connectivity::OTableHelper::getConnection(), getINT32(), connectivity::getKeyRuleString(), connectivity::OTableHelper::getKeyService(), connectivity::OTableHelper::getMetaData(), connectivity::OMetaConnection::getPropMap(), getString(), i, connectivity::sdbcx::ODescriptor::isNew(), connectivity::sdbcx::OCollection::m_pElements, m_pTable, PROPERTY_ID_CATALOGNAME, PROPERTY_ID_DELETERULE, PROPERTY_ID_NAME, PROPERTY_ID_REFERENCEDTABLE, PROPERTY_ID_RELATEDCOLUMN, PROPERTY_ID_SCHEMANAME, PROPERTY_ID_TYPE, PROPERTY_ID_UPDATERULE, dbtools::quoteName(), dbtools::quoteTableName(), and sName.
|
static |
|
overrideprotectedvirtual |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 76 of file TKeys.cxx.
References m_pTable.
|
overrideprotectedvirtual |
Implements connectivity::sdbcx::OCollection.
Definition at line 54 of file TKeys.cxx.
References connectivity::OTableHelper::getKeyProperties(), and m_pTable.
Referenced by appendObject().
|
overrideprotectedvirtual |
Reimplemented from connectivity::sdbcx::OCollection.
Reimplemented in connectivity::firebird::Keys.
Definition at line 261 of file TKeys.cxx.
References _nPos, dbtools::composeTableName(), connectivity::OTableHelper::getConnection(), getDropForeignKey(), connectivity::OTableHelper::getKeyService(), dbtools::OPropertyMap::getNameByIndex(), connectivity::sdbcx::OCollection::getObject(), connectivity::OMetaConnection::getPropMap(), connectivity::sdbcx::ODescriptor::isNew(), m_pTable, PROPERTY_ID_TYPE, and dbtools::quoteName().
|
protectedvirtual |
Definition at line 255 of file TKeys.cxx.
Referenced by dropObject().
|
overrideprotectedvirtual |
css::uno::RuntimeException |
Implements connectivity::sdbcx::OCollection.
Definition at line 71 of file TKeys.cxx.
References m_pTable, and connectivity::OTableHelper::refreshKeys().
|
private |
Definition at line 32 of file TKeys.hxx.
Referenced by appendObject(), createDescriptor(), createObject(), dropObject(), and impl_refresh().