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

#include <TableDeco.hxx>

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

Public Member Functions

 ODBTableDecorator (const css::uno::Reference< css::sdbc::XConnection > &_rxConn, const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_rxTable, const css::uno::Reference< css::util::XNumberFormatsSupplier > &_rxNumberFormats, const css::uno::Reference< css::container::XNameAccess > &_rxColumnDefinitions)
 constructs a wrapper supporting the com.sun.star.sdb.Table service. More...
 
void construct ()
 
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 css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual void SAL_CALL disposing () override
 
 DECLARE_SERVICE_INFO ()
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL rename (const OUString &_rNewName) override
 
virtual void SAL_CALL alterColumnByName (const OUString &_rName, const css::uno::Reference< css::beans::XPropertySet > &_rxDescriptor) override
 
virtual void SAL_CALL alterColumnByIndex (sal_Int32 _nIndex, const css::uno::Reference< css::beans::XPropertySet > &_rxDescriptor) override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &aName) override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns () override
 
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL getKeys () override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getIndexes () override
 
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor () override
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
virtual rtl::Reference< OColumncreateColumn (const OUString &_rName) const =0
 creates an OColumn object which should represent the column with a given name More...
 
virtual css::uno::Reference< css::beans::XPropertySetcreateColumnDescriptor ()=0
 creates a column descriptor object. More...
 
virtual void columnAppended (const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor)=0
 notifies that a column, created from a column descriptor, has been appended More...
 
virtual void columnDropped (const OUString &_sName)=0
 notifies that a column with a given name has been dropped More...
 
virtual void refreshColumns ()=0
 
- Public Member Functions inherited from comphelper::OIdPropertyArrayUsageHelper< class TYPE >
 OIdPropertyArrayUsageHelper ()
 
virtual ~OIdPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper (sal_Int32 nId)
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Protected Member Functions

virtual rtl::Reference< OColumncreateColumn (const OUString &_rName) const override
 creates an OColumn object which should represent the column with a given name More...
 
virtual css::uno::Reference< css::beans::XPropertySetcreateColumnDescriptor () override
 creates a column descriptor object. More...
 
virtual void columnAppended (const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor) override
 notifies that a column, created from a column descriptor, has been appended More...
 
virtual void columnDropped (const OUString &_sName) override
 notifies that a column with a given name has been dropped More...
 
virtual void refreshColumns () override
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper (sal_Int32 _nId) const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual ~ODBTableDecorator () override
 
- Protected Member Functions inherited from dbaccess::ODataSettings
 ODataSettings (::cppu::OBroadcastHelper &_rBHelper, bool _bQuery=false)
 
virtual void getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const override
 
void registerPropertiesFor (ODataSettings_Base *_pItem)
 register the properties from the param given. More...
 
- Protected Member Functions inherited from comphelper::OPropertyStateContainer
 OPropertyStateContainer (::cppu::OBroadcastHelper &_rBHelper)
 
virtual css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
virtual void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
virtual css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
css::beans::PropertyState getPropertyStateByHandle (sal_Int32 _nHandle) const
 
void setPropertyToDefaultByHandle (sal_Int32 _nHandle)
 
virtual void getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const=0
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
sal_Int32 getHandleForName (const OUString &_rPropertyName)
 
- Protected Member Functions inherited from comphelper::OPropertyContainer
 OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper)
 
virtual sal_Bool SAL_CALL convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
- Protected Member Functions inherited from comphelper::OPropertyContainerHelper
 OPropertyContainerHelper ()
 
 ~OPropertyContainerHelper ()
 
void registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
 
void registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType)
 
void registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue)
 
void revokeProperty (sal_Int32 _nHandle)
 
bool isRegisteredProperty (sal_Int32 _nHandle) const
 
bool isRegisteredProperty (const OUString &_rName) const
 
bool convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)
 
void setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue)
 
void getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const
 
void describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 
const css::beans::Property & getProperty (const OUString &_rName) const
 
- Protected Member Functions inherited from dbaccess::ODataSettings_Base
 ODataSettings_Base ()
 
 ODataSettings_Base (const ODataSettings_Base &_rSource)=delete
 
 ~ODataSettings_Base ()
 
- Protected Member Functions inherited from dbaccess::IColumnFactory
 ~IColumnFactory ()
 
- Protected Member Functions inherited from connectivity::sdbcx::IRefreshableColumns
 ~IRefreshableColumns ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper (sal_Int32 nId) const=0
 

Private Member Functions

void fillPrivileges () const
 

Private Attributes

css::uno::Reference< css::container::XContainerListener > m_xColumnMediator
 
css::uno::Reference< css::sdbcx::XColumnsSupplier > m_xTable
 
css::uno::Reference< css::container::XNameAccess > m_xColumnDefinitions
 
css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
 
css::uno::Reference< css::util::XNumberFormatsSupplier > m_xNumberFormats
 
sal_Int32 m_nPrivileges
 
std::unique_ptr<::connectivity::sdbcx::OCollectionm_pColumns
 

Additional Inherited Members

- Public Attributes inherited from dbaccess::ODataSettings_Base
OUString m_sFilter
 
OUString m_sHavingClause
 
OUString m_sGroupBy
 
OUString m_sOrder
 
bool m_bApplyFilter
 
bool m_bAutoGrow
 
css::awt::FontDescriptor m_aFont
 
css::uno::Any m_aRowHeight
 
css::uno::Any m_aTextColor
 
css::uno::Any m_aTextLineColor
 
sal_Int16 m_nFontEmphasis
 
sal_Int16 m_nFontRelief
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 56 of file TableDeco.hxx.

Constructor & Destructor Documentation

◆ ~ODBTableDecorator()

ODBTableDecorator::~ODBTableDecorator ( )
overrideprotectedvirtual

Definition at line 67 of file TableDeco.cxx.

◆ ODBTableDecorator()

ODBTableDecorator::ODBTableDecorator ( const css::uno::Reference< css::sdbc::XConnection > &  _rxConn,
const css::uno::Reference< css::sdbcx::XColumnsSupplier > &  _rxTable,
const css::uno::Reference< css::util::XNumberFormatsSupplier > &  _rxNumberFormats,
const css::uno::Reference< css::container::XNameAccess > &  _rxColumnDefinitions 
)

constructs a wrapper supporting the com.sun.star.sdb.Table service.

Parameters
_rxConnthe connection the table belongs to. Must not be <NULL>
_rxTablethe table from the driver can be <NULL>
Exceptions
css::sdbc::SQLException

Definition at line 53 of file TableDeco.cxx.

References m_aMutex, Reference, and dbaccess::ODataSettings::registerPropertiesFor().

Referenced by createDataDescriptor().

Member Function Documentation

◆ acquire()

void SAL_CALL ODBTableDecorator::acquire ( )
overridevirtualnoexcept

Definition at line 619 of file TableDeco.cxx.

◆ alterColumnByIndex()

void SAL_CALL ODBTableDecorator::alterColumnByIndex ( sal_Int32  _nIndex,
const css::uno::Reference< css::beans::XPropertySet > &  _rxDescriptor 
)
overridevirtual

Definition at line 421 of file TableDeco.cxx.

References Any, DBA_RES, cppu::BaseMutex::m_aMutex, m_pColumns, m_xTable, and SQLSTATE_GENERAL.

◆ alterColumnByName()

void SAL_CALL ODBTableDecorator::alterColumnByName ( const OUString &  _rName,
const css::uno::Reference< css::beans::XPropertySet > &  _rxDescriptor 
)
overridevirtual

Definition at line 409 of file TableDeco.cxx.

References Any, DBA_RES, cppu::BaseMutex::m_aMutex, m_pColumns, m_xTable, and SQLSTATE_GENERAL.

◆ columnAppended()

void ODBTableDecorator::columnAppended ( const css::uno::Reference< css::beans::XPropertySet > &  _rxSourceDescriptor)
overrideprotectedvirtual

notifies that a column, created from a column descriptor, has been appended

Implements dbaccess::IColumnFactory.

Definition at line 596 of file TableDeco.cxx.

◆ columnDropped()

void ODBTableDecorator::columnDropped ( const OUString &  _sName)
overrideprotectedvirtual

notifies that a column with a given name has been dropped

Implements dbaccess::IColumnFactory.

Definition at line 601 of file TableDeco.cxx.

References m_xColumnDefinitions.

◆ construct()

void ODBTableDecorator::construct ( )

◆ convertFastPropertyValue()

sal_Bool SAL_CALL ODBTableDecorator::convertFastPropertyValue ( css::uno::Any &  rConvertedValue,
css::uno::Any &  rOldValue,
sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

◆ createArrayHelper()

cppu::IPropertyArrayHelper * ODBTableDecorator::createArrayHelper ( sal_Int32  _nId) const
overrideprotectedvirtual

◆ createColumn()

rtl::Reference< OColumn > ODBTableDecorator::createColumn ( const OUString &  _rName) const
overrideprotectedvirtual

creates an OColumn object which should represent the column with a given name

Implements dbaccess::IColumnFactory.

Definition at line 573 of file TableDeco.cxx.

References m_xColumnDefinitions, and m_xTable.

◆ createColumnDescriptor()

Reference< XPropertySet > ODBTableDecorator::createColumnDescriptor ( )
overrideprotectedvirtual

creates a column descriptor object.

A column descriptor object is used to append new columns to the collection. If such an append actually happened, columnAppended is called afterwards.

Implements dbaccess::IColumnFactory.

Definition at line 608 of file TableDeco.cxx.

References m_xTable.

◆ createDataDescriptor()

Reference< XPropertySet > SAL_CALL ODBTableDecorator::createDataDescriptor ( )
overridevirtual

◆ DECLARE_SERVICE_INFO()

dbaccess::ODBTableDecorator::DECLARE_SERVICE_INFO ( )

◆ disposing()

void SAL_CALL ODBTableDecorator::disposing ( )
overridevirtual

◆ fillPrivileges()

void ODBTableDecorator::fillPrivileges ( ) const
private

◆ getColumns()

Reference< XNameAccess > ODBTableDecorator::getColumns ( )
overridevirtual

Definition at line 448 of file TableDeco.cxx.

References cppu::BaseMutex::m_aMutex, m_pColumns, and refreshColumns().

◆ getFastPropertyValue()

void ODBTableDecorator::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overrideprotectedvirtual

◆ getImplementationId()

Sequence< sal_Int8 > ODBTableDecorator::getImplementationId ( )
overridevirtual

Definition at line 71 of file TableDeco.cxx.

◆ getIndexes()

Reference< XNameAccess > ODBTableDecorator::getIndexes ( )
overridevirtual

Definition at line 434 of file TableDeco.cxx.

References cppu::BaseMutex::m_aMutex, and m_xTable.

◆ getInfoHelper()

cppu::IPropertyArrayHelper &SAL_CALL ODBTableDecorator::getInfoHelper ( )
overrideprotected

◆ getKeys()

Reference< XIndexAccess > ODBTableDecorator::getKeys ( )
overridevirtual

Definition at line 441 of file TableDeco.cxx.

References cppu::BaseMutex::m_aMutex, and m_xTable.

◆ getName()

OUString SAL_CALL ODBTableDecorator::getName ( )
overridevirtual

Definition at line 459 of file TableDeco.cxx.

References cppu::BaseMutex::m_aMutex, and m_xTable.

◆ getPropertySetInfo()

Reference< css::beans::XPropertySetInfo > SAL_CALL ODBTableDecorator::getPropertySetInfo ( )
overridevirtual

Definition at line 534 of file TableDeco.cxx.

References getInfoHelper().

◆ getSomething()

sal_Int64 SAL_CALL ODBTableDecorator::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Definition at line 468 of file TableDeco.cxx.

References comphelper::getSomething_cast(), and m_xTable.

◆ getTypes()

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

Definition at line 389 of file TableDeco.cxx.

References m_xTable.

◆ getUnoTunnelId()

const Sequence< sal_Int8 > & ODBTableDecorator::getUnoTunnelId ( )
static

Definition at line 480 of file TableDeco.cxx.

References comphelper::UnoIdInit::getSeq().

◆ queryInterface()

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

◆ refreshColumns()

void ODBTableDecorator::refreshColumns ( )
overrideprotectedvirtual

◆ release()

void SAL_CALL ODBTableDecorator::release ( )
overridevirtualnoexcept

Definition at line 624 of file TableDeco.cxx.

◆ rename()

void SAL_CALL ODBTableDecorator::rename ( const OUString &  _rNewName)
overridevirtual

Definition at line 397 of file TableDeco.cxx.

References Any, DBA_RES, cppu::BaseMutex::m_aMutex, m_xTable, and SQLSTATE_GENERAL.

◆ setFastPropertyValue_NoBroadcast()

void ODBTableDecorator::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

◆ setName()

void SAL_CALL ODBTableDecorator::setName ( const OUString &  aName)
overridevirtual

Definition at line 629 of file TableDeco.cxx.

References throwFunctionNotSupportedRuntimeException().

Member Data Documentation

◆ m_nPrivileges

sal_Int32 dbaccess::ODBTableDecorator::m_nPrivileges
mutableprivate

Definition at line 72 of file TableDeco.hxx.

Referenced by construct(), fillPrivileges(), and getFastPropertyValue().

◆ m_pColumns

std::unique_ptr<::connectivity::sdbcx::OCollection> dbaccess::ODBTableDecorator::m_pColumns
private

◆ m_xColumnDefinitions

css::uno::Reference< css::container::XNameAccess > dbaccess::ODBTableDecorator::m_xColumnDefinitions
private

Definition at line 66 of file TableDeco.hxx.

Referenced by columnDropped(), createColumn(), disposing(), and refreshColumns().

◆ m_xColumnMediator

css::uno::Reference< css::container::XContainerListener > dbaccess::ODBTableDecorator::m_xColumnMediator
private

Definition at line 64 of file TableDeco.hxx.

Referenced by disposing(), and refreshColumns().

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection > dbaccess::ODBTableDecorator::m_xConnection
private

Definition at line 67 of file TableDeco.hxx.

Referenced by createDataDescriptor().

◆ m_xMetaData

css::uno::Reference< css::sdbc::XDatabaseMetaData > dbaccess::ODBTableDecorator::m_xMetaData
private

Definition at line 68 of file TableDeco.hxx.

Referenced by disposing(), fillPrivileges(), and refreshColumns().

◆ m_xNumberFormats

css::uno::Reference< css::util::XNumberFormatsSupplier > dbaccess::ODBTableDecorator::m_xNumberFormats
private

Definition at line 69 of file TableDeco.hxx.

Referenced by createDataDescriptor(), and disposing().

◆ m_xTable

css::uno::Reference< css::sdbcx::XColumnsSupplier > dbaccess::ODBTableDecorator::m_xTable
private

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