LibreOffice Module dbaccess (master) 1
|
#include <column.hxx>
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::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 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 |
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::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< class Ifc1 > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Private Member Functions | |
void | setParent (OTableHelper *_pTable) |
Private Attributes | |
OContainerMediator * | m_pMediator |
css::uno::Reference< css::container::XNameAccess > | m_xDrvColumns |
css::uno::WeakReference< css::uno::XInterface > | m_xParent |
IColumnFactory * | m_pColFactoryImpl |
::connectivity::sdbcx::IRefreshableColumns * | m_pRefreshColumns |
bool | m_bInitialized: 1 |
bool | m_bAddColumn: 1 |
bool | m_bDropColumn: 1 |
Additional Inherited Members | |
Protected Attributes inherited from connectivity::OColumnsHelper | |
OTableHelper * | m_pTable |
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 126 of file column.hxx.
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.
rParent | the parent object. This instance will be used for refcounting, so the parent cannot die before the container does. |
_rMutex | the mutex of the parent. |
_bCaseSensitive | the initial case sensitivity flag |
Definition at line 132 of file column.cxx.
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.
|
overridevirtual |
Definition at line 169 of file column.cxx.
|
inlineoverridevirtualnoexcept |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 193 of file column.hxx.
References connectivity::sdbcx::OCollection::acquire().
void OColumns::append | ( | const OUString & | rName, |
OColumn * | _pColumn | ||
) |
Definition at line 189 of file column.cxx.
References connectivity::sdbcx::OCollection::insertElement(), connectivity::sdbcx::OCollection::m_pElements, and connectivity::sdbcx::OCollection::m_rMutex.
|
overrideprotectedvirtual |
Reimplemented from connectivity::OColumnsHelper.
void OColumns::clearColumns | ( | ) |
Definition at line 202 of file column.cxx.
References disposing(), and connectivity::sdbcx::OCollection::m_rMutex.
|
inline |
Definition at line 149 of file column.hxx.
References connectivity::OColumnsHelper::createObject().
Referenced by dbaccess::ODBTable::createColumn().
|
overrideprotectedvirtual |
Reimplemented from connectivity::OColumnsHelper.
Definition at line 243 of file column.cxx.
References dbaccess::IColumnFactory::createColumnDescriptor(), and m_pColFactoryImpl.
|
overrideprotectedvirtual |
Reimplemented from connectivity::OColumnsHelper.
Definition at line 223 of file column.cxx.
References dbaccess::IColumnFactory::createColumn(), m_pColFactoryImpl, m_pMediator, and dbaccess::OContainerMediator::notifyElementCreated().
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 208 of file column.cxx.
References connectivity::sdbcx::OCollection::disposing(), m_pColFactoryImpl, m_pMediator, connectivity::sdbcx::OCollection::m_rMutex, and m_xDrvColumns.
Referenced by clearColumns().
|
overrideprotectedvirtual |
Reimplemented from connectivity::OColumnsHelper.
Definition at line 373 of file column.cxx.
References _nPos, dbaccess::IColumnFactory::columnDropped(), DBA_RES, connectivity::OColumnsHelper::dropObject(), connectivity::OTableHelper::getAlterService(), connectivity::sdbcx::ODescriptor::isNew(), m_bDropColumn, m_pColFactoryImpl, connectivity::OColumnsHelper::m_pTable, m_xDrvColumns, m_xParent, and dbaccess::notifyDataSourceModified().
|
overridevirtual |
Definition at line 174 of file column.cxx.
|
overridevirtual |
Definition at line 400 of file column.cxx.
References connectivity::sdbcx::OCollection::m_rMutex, and m_xParent.
|
overridevirtual |
Definition at line 184 of file column.cxx.
References SERVICE_SDBCX_CONTAINER.
|
overridevirtual |
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Definition at line 283 of file column.cxx.
References aTypes, cppu::UnoType< typename T >::get(), connectivity::sdbcx::OCollection::getTypes(), cppu::ImplHelper1< class Ifc1 >::getTypes(), i, connectivity::sdbcx::ODescriptor::isNew(), m_bAddColumn, m_bDropColumn, connectivity::OColumnsHelper::m_pTable, and m_xDrvColumns.
|
overrideprotectedvirtual |
Reimplemented from connectivity::OColumnsHelper.
Definition at line 217 of file column.cxx.
References m_pRefreshColumns, and connectivity::sdbcx::IRefreshableColumns::refreshColumns().
|
inline |
flag which determines whether the container is filled or not
Definition at line 155 of file column.hxx.
|
overridevirtual |
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Definition at line 257 of file column.cxx.
References Any, connectivity::sdbcx::ODescriptor::isNew(), m_bAddColumn, m_bDropColumn, connectivity::OColumnsHelper::m_pTable, m_xDrvColumns, connectivity::sdbcx::OCollection::queryInterface(), and cppu::ImplHelper1< class Ifc1 >::queryInterface().
|
inlineoverridevirtualnoexcept |
Reimplemented from connectivity::sdbcx::OCollection.
Definition at line 194 of file column.hxx.
References connectivity::sdbcx::OCollection::release().
|
inline |
Definition at line 156 of file column.hxx.
|
inline |
Definition at line 157 of file column.hxx.
Referenced by dbaccess::ODBTable::createColumns(), and dbaccess::ODBTableDecorator::refreshColumns().
|
overridevirtual |
Definition at line 406 of file column.cxx.
References connectivity::sdbcx::OCollection::m_rMutex, and m_xParent.
Referenced by dbaccess::ODBTable::createColumns(), and dbaccess::ODBTableDecorator::refreshColumns().
|
private |
|
overridevirtual |
Definition at line 179 of file column.cxx.
References cppu::supportsService().
|
private |
Definition at line 138 of file column.hxx.
Referenced by getTypes(), and queryInterface().
|
private |
Definition at line 139 of file column.hxx.
Referenced by dropObject(), getTypes(), and queryInterface().
|
private |
Definition at line 137 of file column.hxx.
|
private |
Definition at line 134 of file column.hxx.
Referenced by createDescriptor(), createObject(), disposing(), and dropObject().
|
private |
Definition at line 129 of file column.hxx.
Referenced by createObject(), and disposing().
|
private |
Definition at line 135 of file column.hxx.
Referenced by impl_refresh().
|
private |
Definition at line 132 of file column.hxx.
Referenced by disposing(), dropObject(), getTypes(), and queryInterface().
|
private |
Definition at line 133 of file column.hxx.
Referenced by dropObject(), getParent(), and setParent().