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

#include <column.hxx>

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

Public Member Functions

connectivity::sdbcx::ObjectType createBaseObject (const OUString &_rName)
 
bool isInitialized () const
 flag which determines whether the container is filled or not More...
 
void setInitialized ()
 
void setMediator (OContainerMediator *_pMediator)
 
 OColumns (::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex, bool _bCaseSensitive, const std::vector< OUString > &_rVector, IColumnFactory *_pColFactory, ::connectivity::sdbcx::IRefreshableColumns *_pRefresh, bool _bAddColumn=false, bool _bDropColumn=false, bool _bUseHardRef=true)
 constructs an empty container without configuration location. More...
 
 OColumns (::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex, css::uno::Reference< css::container::XNameAccess > _xDrvColumns, bool _bCaseSensitive, const std::vector< OUString > &_rVector, IColumnFactory *_pColFactory, ::connectivity::sdbcx::IRefreshableColumns *_pRefresh, bool _bAddColumn=false, bool _bDropColumn=false, bool _bUseHardRef=true)
 
virtual ~OColumns () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
void append (const OUString &rName, OColumn *)
 
void clearColumns ()
 
virtual void disposing () override
 
- Public Member Functions inherited from connectivity::OColumnsHelper
 OColumnsHelper (::cppu::OWeakObject &_rParent, bool _bCase,::osl::Mutex &_rMutex, const ::std::vector< OUString > &_rVector, bool _bUseHardRef)
 
virtual ~OColumnsHelper () override
 
void setParent (OTableHelper *_pTable)
 
- 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< class Ifc1 >
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 void impl_refresh () override
 
virtual connectivity::sdbcx::ObjectType createObject (const OUString &_rName) override
 
virtual css::uno::Reference< css::beans::XPropertySetcreateDescriptor () 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 sdbcx::ObjectType createObject (const OUString &_rName) override
 
virtual void impl_refresh () override
 
virtual css::uno::Reference< css::beans::XPropertySetcreateDescriptor () override
 
virtual 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
 
- 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)
 
- Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 

Private Member Functions

void setParent (OTableHelper *_pTable)
 

Private Attributes

OContainerMediatorm_pMediator
 
css::uno::Reference< css::container::XNameAccess > m_xDrvColumns
 
css::uno::WeakReference< css::uno::XInterface > m_xParent
 
IColumnFactorym_pColFactoryImpl
 
::connectivity::sdbcx::IRefreshableColumnsm_pRefreshColumns
 
bool m_bInitialized: 1
 
bool m_bAddColumn: 1
 
bool m_bDropColumn: 1
 

Additional Inherited Members

- Protected Attributes inherited from connectivity::OColumnsHelper
OTableHelperm_pTable
 
- 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 126 of file column.hxx.

Constructor & Destructor Documentation

◆ OColumns() [1/2]

OColumns::OColumns ( ::cppu::OWeakObject _rParent,
::osl::Mutex &  _rMutex,
bool  _bCaseSensitive,
const std::vector< OUString > &  _rVector,
IColumnFactory _pColFactory,
::connectivity::sdbcx::IRefreshableColumns _pRefresh,
bool  _bAddColumn = false,
bool  _bDropColumn = false,
bool  _bUseHardRef = true 
)

constructs an empty container without configuration location.

Parameters
rParentthe parent object. This instance will be used for refcounting, so the parent cannot die before the container does.
_rMutexthe mutex of the parent.
_bCaseSensitivethe initial case sensitivity flag
See also
setCaseSensitive

Definition at line 132 of file column.cxx.

◆ OColumns() [2/2]

OColumns::OColumns ( ::cppu::OWeakObject _rParent,
::osl::Mutex &  _rMutex,
css::uno::Reference< css::container::XNameAccess >  _xDrvColumns,
bool  _bCaseSensitive,
const std::vector< OUString > &  _rVector,
IColumnFactory _pColFactory,
::connectivity::sdbcx::IRefreshableColumns _pRefresh,
bool  _bAddColumn = false,
bool  _bDropColumn = false,
bool  _bUseHardRef = true 
)

Definition at line 150 of file column.cxx.

◆ ~OColumns()

OColumns::~OColumns ( )
overridevirtual

Definition at line 169 of file column.cxx.

Member Function Documentation

◆ acquire()

virtual void SAL_CALL dbaccess::OColumns::acquire ( )
inlineoverridevirtualnoexcept

Reimplemented from connectivity::sdbcx::OCollection.

Definition at line 193 of file column.hxx.

References connectivity::sdbcx::OCollection::acquire().

◆ append()

void OColumns::append ( const OUString &  rName,
OColumn _pColumn 
)

◆ appendObject()

virtual connectivity::sdbcx::ObjectType dbaccess::OColumns::appendObject ( const OUString &  _rForName,
const css::uno::Reference< css::beans::XPropertySet > &  descriptor 
)
overrideprotectedvirtual

Reimplemented from connectivity::OColumnsHelper.

◆ clearColumns()

void OColumns::clearColumns ( )

Definition at line 202 of file column.cxx.

References disposing(), and connectivity::sdbcx::OCollection::m_rMutex.

◆ createBaseObject()

connectivity::sdbcx::ObjectType dbaccess::OColumns::createBaseObject ( const OUString &  _rName)
inline

◆ createDescriptor()

Reference< XPropertySet > OColumns::createDescriptor ( )
overrideprotectedvirtual

◆ createObject()

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

◆ disposing()

void OColumns::disposing ( )
overridevirtual

◆ dropObject()

void OColumns::dropObject ( sal_Int32  _nPos,
const OUString &  _sElementName 
)
overrideprotectedvirtual

◆ getImplementationName()

OUString OColumns::getImplementationName ( )
overridevirtual

Definition at line 174 of file column.cxx.

◆ getParent()

Reference< XInterface > SAL_CALL OColumns::getParent ( )
overridevirtual

Definition at line 400 of file column.cxx.

References connectivity::sdbcx::OCollection::m_rMutex, and m_xParent.

◆ getSupportedServiceNames()

Sequence< OUString > OColumns::getSupportedServiceNames ( )
overridevirtual

Definition at line 184 of file column.cxx.

References SERVICE_SDBCX_CONTAINER.

◆ getTypes()

Sequence< Type > SAL_CALL OColumns::getTypes ( )
overridevirtual

◆ impl_refresh()

void OColumns::impl_refresh ( )
overrideprotectedvirtual

◆ isInitialized()

bool dbaccess::OColumns::isInitialized ( ) const
inline

flag which determines whether the container is filled or not

Definition at line 155 of file column.hxx.

◆ queryInterface()

Any SAL_CALL OColumns::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ release()

virtual void SAL_CALL dbaccess::OColumns::release ( )
inlineoverridevirtualnoexcept

Reimplemented from connectivity::sdbcx::OCollection.

Definition at line 194 of file column.hxx.

References connectivity::sdbcx::OCollection::release().

◆ setInitialized()

void dbaccess::OColumns::setInitialized ( )
inline

Definition at line 156 of file column.hxx.

◆ setMediator()

void dbaccess::OColumns::setMediator ( OContainerMediator _pMediator)
inline

◆ setParent() [1/2]

void SAL_CALL OColumns::setParent ( const css::uno::Reference< css::uno::XInterface > &  Parent)
overridevirtual

◆ setParent() [2/2]

void connectivity::OColumnsHelper::setParent ( OTableHelper _pTable)
private

◆ supportsService()

sal_Bool OColumns::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 179 of file column.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_bAddColumn

bool dbaccess::OColumns::m_bAddColumn
private

Definition at line 138 of file column.hxx.

Referenced by getTypes(), and queryInterface().

◆ m_bDropColumn

bool dbaccess::OColumns::m_bDropColumn
private

Definition at line 139 of file column.hxx.

Referenced by dropObject(), getTypes(), and queryInterface().

◆ m_bInitialized

bool dbaccess::OColumns::m_bInitialized
private

Definition at line 137 of file column.hxx.

◆ m_pColFactoryImpl

IColumnFactory* dbaccess::OColumns::m_pColFactoryImpl
private

Definition at line 134 of file column.hxx.

Referenced by createDescriptor(), createObject(), disposing(), and dropObject().

◆ m_pMediator

OContainerMediator* dbaccess::OColumns::m_pMediator
private

Definition at line 129 of file column.hxx.

Referenced by createObject(), and disposing().

◆ m_pRefreshColumns

::connectivity::sdbcx::IRefreshableColumns* dbaccess::OColumns::m_pRefreshColumns
private

Definition at line 135 of file column.hxx.

Referenced by impl_refresh().

◆ m_xDrvColumns

css::uno::Reference< css::container::XNameAccess > dbaccess::OColumns::m_xDrvColumns
private

Definition at line 132 of file column.hxx.

Referenced by disposing(), dropObject(), getTypes(), and queryInterface().

◆ m_xParent

css::uno::WeakReference< css::uno::XInterface > dbaccess::OColumns::m_xParent
private

Definition at line 133 of file column.hxx.

Referenced by dropObject(), getParent(), and setParent().


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