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

#include <HelperCollections.hxx>

Inheritance diagram for dbaccess::OPrivateColumns:
[legend]
Collaboration diagram for dbaccess::OPrivateColumns:
[legend]

Public Member Functions

 OPrivateColumns (::rtl::Reference< ::connectivity::OSQLColumns > _xColumns, bool _bCase, ::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex, const std::vector< OUString > &_rVector, bool _bUseAsIndex=false)
 
virtual void disposing () override
 
- 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
 

Static Public Member Functions

static std::unique_ptr< OPrivateColumnscreateWithIntrinsicNames (const ::rtl::Reference< ::connectivity::OSQLColumns > &_rColumns, bool _bCase, ::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex)
 creates a columns instance as above, but taking the names from the columns itself More...
 

Protected Member Functions

virtual connectivity::sdbcx::ObjectType createObject (const OUString &_rName) override
 
virtual void impl_refresh () override
 
virtual Reference< XPropertySetcreateDescriptor () override
 
- 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::XPropertySetcreateDescriptor ()
 
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)
 

Private Attributes

::rtl::Reference< ::connectivity::OSQLColumnsm_aColumns
 

Additional Inherited Members

- Protected Attributes inherited from connectivity::sdbcx::OCollection
::std::unique_ptr< IObjectCollectionm_pElements
 
::comphelper::OInterfaceContainerHelper3< css::container::XContainerListener > m_aContainerListeners
 
::comphelper::OInterfaceContainerHelper3< css::util::XRefreshListener > m_aRefreshListeners
 
::cppu::OWeakObjectm_rParent
 
::osl::Mutex & m_rMutex
 
bool m_bUseIndexOnly
 

Detailed Description

Definition at line 42 of file HelperCollections.hxx.

Constructor & Destructor Documentation

◆ OPrivateColumns()

dbaccess::OPrivateColumns::OPrivateColumns ( ::rtl::Reference< ::connectivity::OSQLColumns _xColumns,
bool  _bCase,
::cppu::OWeakObject _rParent,
::osl::Mutex &  _rMutex,
const std::vector< OUString > &  _rVector,
bool  _bUseAsIndex = false 
)

Definition at line 43 of file HelperCollections.cxx.

Referenced by createWithIntrinsicNames().

Member Function Documentation

◆ createDescriptor()

virtual Reference< XPropertySet > dbaccess::OPrivateColumns::createDescriptor ( )
inlineoverrideprotectedvirtual

Reimplemented from connectivity::sdbcx::OCollection.

Definition at line 48 of file HelperCollections.hxx.

◆ createObject()

connectivity::sdbcx::ObjectType dbaccess::OPrivateColumns::createObject ( const OUString &  _rName)
overrideprotectedvirtual

◆ createWithIntrinsicNames()

std::unique_ptr< OPrivateColumns > dbaccess::OPrivateColumns::createWithIntrinsicNames ( const ::rtl::Reference< ::connectivity::OSQLColumns > &  _rColumns,
bool  _bCase,
::cppu::OWeakObject _rParent,
::osl::Mutex &  _rMutex 
)
static

creates a columns instance as above, but taking the names from the columns itself

Definition at line 54 of file HelperCollections.cxx.

References OPrivateColumns(), PROPERTY_NAME(), and xColumn.

Referenced by dbaccess::OSingleSelectQueryComposer::getColumns(), and dbaccess::OQuery::rebuildColumns().

◆ disposing()

void dbaccess::OPrivateColumns::disposing ( )
overridevirtual

◆ impl_refresh()

virtual void dbaccess::OPrivateColumns::impl_refresh ( )
inlineoverrideprotectedvirtual

Implements connectivity::sdbcx::OCollection.

Definition at line 47 of file HelperCollections.hxx.

Member Data Documentation

◆ m_aColumns

::rtl::Reference< ::connectivity::OSQLColumns> dbaccess::OPrivateColumns::m_aColumns
private

Definition at line 44 of file HelperCollections.hxx.

Referenced by createObject(), and disposing().


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