LibreOffice Module dbaccess (master) 1
|
#include <viewcontainer.hxx>
Public Member Functions | |
OViewContainer (::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex, const css::uno::Reference< css::sdbc::XConnection > &_xCon, bool _bCase, IRefreshListener *_pRefreshListener, std::atomic< std::size_t > &_nInAppend) | |
ctor of the container. More... | |
virtual | ~OViewContainer () override |
Public Member Functions inherited from dbaccess::OFilteredContainer | |
OFilteredContainer (::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex, const css::uno::Reference< css::sdbc::XConnection > &_xCon, bool _bCase, IRefreshListener *_pRefreshListener, std::atomic< std::size_t > &_nInAppend) | |
ctor of the container. More... | |
void | dispose () |
void | construct (const css::uno::Sequence< OUString > &_rTableFilter, const css::uno::Sequence< OUString > &_rTableTypeFilter) |
late ctor. More... | |
void | construct (const css::uno::Reference< css::container::XNameAccess > &_rxMasterContainer, const css::uno::Sequence< OUString > &_rTableFilter, const css::uno::Sequence< OUString > &_rTableTypeFilter) |
late ctor. More... | |
bool | isInitialized () const |
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::ImplHelper1< css::container::XContainerListener > | |
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 |
Protected Member Functions | |
virtual OUString | getTableTypeRestriction () const override |
returns a string denoting the only type of tables allowed in this container, or an empty string if there is no such restriction More... | |
Protected Member Functions inherited from dbaccess::OFilteredContainer | |
virtual OUString | getTableTypeRestriction () const =0 |
returns a string denoting the only type of tables allowed in this container, or an empty string if there is no such restriction More... | |
virtual void | addMasterContainerListener () |
virtual void | removeMasterContainerListener () |
virtual void | impl_refresh () override |
virtual OUString | getNameForObject (const ::connectivity::sdbcx::ObjectType &_xObject) override |
virtual void | disposing () override |
tell the container to free all elements and all additional resources. More... | |
void | getAllTableTypeFilter (css::uno::Sequence< OUString > &_rFilter) const |
retrieve a table type filter to pass to <member scope="css::sdbc">XDatabaseMetaData::getTables</member>, according to the current data source settings More... | |
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) |
virtual void | dropObject (sal_Int32 _nPos, const OUString &_sElementName) |
virtual OUString | getNameForObject (const ObjectType &_xObject) |
ObjectType | cloneDescriptor (const ObjectType &_descriptor) |
OCollection (::cppu::OWeakObject &_rParent, bool _bCase, ::osl::Mutex &_rMutex, const ::std::vector< OUString > &_rVector, bool _bUseIndexOnly=false, bool _bUseHardRef=true) | |
void | clear_NoDispose () |
void | insertElement (const OUString &_sElementName, const ObjectType &_xElement) |
ObjectType | getObject (sal_Int32 _nIndex) |
Protected Member Functions inherited from cppu::ImplHelper1< css::container::XContainerListener > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Private Member Functions | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
DECLARE_SERVICE_INFO () | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | elementInserted (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | elementRemoved (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | elementReplaced (const css::container::ContainerEvent &Event) override |
virtual ::connectivity::sdbcx::ObjectType | createObject (const OUString &_rName) override |
virtual css::uno::Reference< css::beans::XPropertySet > | createDescriptor () override |
virtual connectivity::sdbcx::ObjectType | appendObject (const OUString &_rForName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
virtual void | dropObject (sal_Int32 _nPos, const OUString &_sElementName) override |
virtual void | disposing () override |
tell the container to free all elements and all additional resources. More... | |
Private Attributes | |
bool | m_bInElementRemoved |
Additional Inherited Members | |
Protected Attributes inherited from dbaccess::OFilteredContainer | |
IRefreshListener * | m_pRefreshListener |
std::atomic< std::size_t > & | m_nInAppend |
css::uno::Reference< css::container::XNameAccess > | m_xMasterContainer |
css::uno::WeakReference< css::sdbc::XConnection > | m_xConnection |
css::uno::Reference< css::sdbc::XDatabaseMetaData > | m_xMetaData |
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 |
Definition at line 42 of file viewcontainer.hxx.
OViewContainer::OViewContainer | ( | ::cppu::OWeakObject & | _rParent, |
::osl::Mutex & | _rMutex, | ||
const css::uno::Reference< css::sdbc::XConnection > & | _xCon, | ||
bool | _bCase, | ||
IRefreshListener * | _pRefreshListener, | ||
std::atomic< std::size_t > & | _nInAppend | ||
) |
ctor of the container.
The parent has to support the <type scope="css::sdbc">XConnection</type> interface.
_rParent | the object which acts as parent for the container. all refcounting is rerouted to this object |
_rMutex | the access safety object of the parent |
_rTableFilter | restricts the visible tables by name |
_rTableTypeFilter | restricts the visible tables by type |
Definition at line 48 of file viewcontainer.cxx.
|
overridevirtual |
Definition at line 59 of file viewcontainer.cxx.
|
inlineoverrideprivatevirtualnoexcept |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 70 of file viewcontainer.hxx.
References connectivity::sdbcx::OCollection::acquire().
|
overrideprivatevirtual |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 124 of file viewcontainer.cxx.
References aName, createObject(), getString(), utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), dbaccess::OFilteredContainer::m_nInAppend, dbaccess::OFilteredContainer::m_xConnection, dbaccess::OFilteredContainer::m_xMasterContainer, dbaccess::OFilteredContainer::m_xMetaData, PROPERTY_COMMAND(), PROPERTY_NAME(), and sComposedName.
|
overrideprivatevirtual |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 109 of file viewcontainer.cxx.
References connectivity::sdbcx::OCollection::isCaseSensitive(), dbaccess::OFilteredContainer::m_xMasterContainer, and dbaccess::OFilteredContainer::m_xMetaData.
|
overrideprivatevirtual |
Implements connectivity::sdbcx::OCollection.
Definition at line 83 of file viewcontainer.cxx.
References connectivity::sdbcx::OCollection::isCaseSensitive(), dbaccess::OFilteredContainer::m_xConnection, dbaccess::OFilteredContainer::m_xMasterContainer, dbaccess::OFilteredContainer::m_xMetaData, sCatalog, and sSchema.
Referenced by appendObject(), and elementInserted().
|
private |
|
overrideprivatevirtual |
tell the container to free all elements and all additional resources.
After using this method the object may be reconstructed by calling one of the construct
methods.
Reimplemented from dbaccess::OFilteredContainer.
Definition at line 70 of file FilteredContainer.cxx.
|
overrideprivatevirtual |
Definition at line 240 of file viewcontainer.cxx.
|
overrideprivatevirtual |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 164 of file viewcontainer.cxx.
References _nPos, connectivity::sdbcx::OCollection::getObject(), m_bInElementRemoved, dbaccess::OFilteredContainer::m_xConnection, dbaccess::OFilteredContainer::m_xMasterContainer, dbaccess::OFilteredContainer::m_xMetaData, PROPERTY_CATALOGNAME(), PROPERTY_NAME(), PROPERTY_SCHEMANAME(), sCatalog, sComposedName, and sSchema.
|
overrideprivatevirtual |
Definition at line 203 of file viewcontainer.cxx.
References createObject(), connectivity::sdbcx::OCollection::hasByName(), connectivity::sdbcx::OCollection::insertElement(), dbaccess::OFilteredContainer::m_nInAppend, connectivity::sdbcx::OCollection::m_rMutex, PROPERTY_TYPE(), sName, and sType.
|
overrideprivatevirtual |
Definition at line 220 of file viewcontainer.cxx.
References connectivity::sdbcx::OCollection::dropByName(), Exception, connectivity::sdbcx::OCollection::hasByName(), m_bInElementRemoved, connectivity::sdbcx::OCollection::m_rMutex, and sName.
|
overrideprivatevirtual |
Definition at line 244 of file viewcontainer.cxx.
|
overrideprotectedvirtual |
returns a string denoting the only type of tables allowed in this container, or an empty string if there is no such restriction
Implements dbaccess::OFilteredContainer.
Definition at line 248 of file viewcontainer.cxx.
|
inlineoverrideprivatevirtualnoexcept |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 71 of file viewcontainer.hxx.
References connectivity::sdbcx::OCollection::release().
|
private |
Definition at line 90 of file viewcontainer.hxx.
Referenced by dropObject(), and elementRemoved().