LibreOffice Module dbaccess (master) 1
|
#include <TableDeco.hxx>
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< OColumn > | createColumn (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::XPropertySet > | createColumnDescriptor ()=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::IPropertyArrayHelper * | getArrayHelper (sal_Int32 nId) |
Static Public Member Functions | |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Protected Member Functions | |
virtual rtl::Reference< OColumn > | createColumn (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::XPropertySet > | createColumnDescriptor () 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::IPropertyArrayHelper * | createArrayHelper (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::IPropertyArrayHelper * | createArrayHelper (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::OCollection > | m_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 |
Definition at line 56 of file TableDeco.hxx.
|
overrideprotectedvirtual |
Definition at line 67 of file TableDeco.cxx.
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.
_rxConn | the connection the table belongs to. Must not be <NULL> |
_rxTable | the table from the driver can be <NULL> |
css::sdbc::SQLException |
Definition at line 53 of file TableDeco.cxx.
References m_aMutex, Reference, and dbaccess::ODataSettings::registerPropertiesFor().
Referenced by createDataDescriptor().
|
overridevirtualnoexcept |
Definition at line 619 of file TableDeco.cxx.
|
overridevirtual |
Definition at line 421 of file TableDeco.cxx.
References Any, DBA_RES, cppu::BaseMutex::m_aMutex, m_pColumns, m_xTable, and SQLSTATE_GENERAL.
|
overridevirtual |
Definition at line 409 of file TableDeco.cxx.
References Any, DBA_RES, cppu::BaseMutex::m_aMutex, m_pColumns, m_xTable, and SQLSTATE_GENERAL.
|
overrideprotectedvirtual |
notifies that a column, created from a column descriptor, has been appended
Implements dbaccess::IColumnFactory.
Definition at line 596 of file TableDeco.cxx.
|
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.
void ODBTableDecorator::construct | ( | ) |
Definition at line 293 of file TableDeco.cxx.
References m_nPrivileges, m_xTable, PROPERTY_ID_PRIVILEGES, PROPERTY_PRIVILEGES(), and comphelper::OPropertyContainerHelper::registerProperty().
|
overrideprotectedvirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 92 of file TableDeco.cxx.
References Any, comphelper::OPropertyContainer::convertFastPropertyValue(), getFastPropertyValue(), nHandle, PROPERTY_ID_APPLYFILTER, PROPERTY_ID_AUTOGROW, PROPERTY_ID_FILTER, PROPERTY_ID_FONT, PROPERTY_ID_FONTCHARSET, PROPERTY_ID_FONTCHARWIDTH, PROPERTY_ID_FONTFAMILY, PROPERTY_ID_FONTHEIGHT, PROPERTY_ID_FONTKERNING, PROPERTY_ID_FONTNAME, PROPERTY_ID_FONTORIENTATION, PROPERTY_ID_FONTPITCH, PROPERTY_ID_FONTSLANT, PROPERTY_ID_FONTSTRIKEOUT, PROPERTY_ID_FONTSTYLENAME, PROPERTY_ID_FONTTYPE, PROPERTY_ID_FONTUNDERLINE, PROPERTY_ID_FONTWEIGHT, PROPERTY_ID_FONTWIDTH, PROPERTY_ID_FONTWORDLINEMODE, PROPERTY_ID_ORDER, PROPERTY_ID_PRIVILEGES, PROPERTY_ID_ROW_HEIGHT, PROPERTY_ID_TEXTCOLOR, PROPERTY_ID_TEXTEMPHASIS, PROPERTY_ID_TEXTLINECOLOR, and PROPERTY_ID_TEXTRELIEF.
|
overrideprotectedvirtual |
Implements comphelper::OIdPropertyArrayUsageHelper< class TYPE >.
Definition at line 307 of file TableDeco.cxx.
References comphelper::OPropertyContainerHelper::describeProperties(), m_xTable, Property, PROPERTY_CATALOGNAME(), PROPERTY_DESCRIPTION(), PROPERTY_ID_CATALOGNAME, PROPERTY_ID_DESCRIPTION, PROPERTY_ID_NAME, PROPERTY_ID_PRIVILEGES, PROPERTY_ID_SCHEMANAME, PROPERTY_ID_TYPE, PROPERTY_NAME(), PROPERTY_PRIVILEGES(), PROPERTY_SCHEMANAME(), and PROPERTY_TYPE().
|
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.
|
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.
|
overridevirtual |
Definition at line 515 of file TableDeco.cxx.
References cppu::BaseMutex::m_aMutex, m_xConnection, m_xNumberFormats, m_xTable, ODBTableDecorator(), and xFactory.
dbaccess::ODBTableDecorator::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Definition at line 77 of file TableDeco.cxx.
References comphelper::OPropertySetHelper::disposing(), cppu::BaseMutex::m_aMutex, m_pColumns, m_xColumnDefinitions, m_xColumnMediator, m_xMetaData, m_xNumberFormats, and m_xTable.
|
private |
Definition at line 486 of file TableDeco.cxx.
References m_nPrivileges, m_xMetaData, m_xTable, PROPERTY_CATALOGNAME(), PROPERTY_NAME(), PROPERTY_PRIVILEGES(), PROPERTY_SCHEMANAME(), SAL_WARN, sCatalog, sName, and sSchema.
Referenced by getFastPropertyValue().
|
overridevirtual |
Definition at line 448 of file TableDeco.cxx.
References cppu::BaseMutex::m_aMutex, m_pColumns, and refreshColumns().
|
overrideprotectedvirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 211 of file TableDeco.cxx.
References fillPrivileges(), comphelper::OPropertyContainer::getFastPropertyValue(), m_nPrivileges, m_xTable, PROPERTY_CATALOGNAME(), PROPERTY_DESCRIPTION(), PROPERTY_ID_APPLYFILTER, PROPERTY_ID_AUTOGROW, PROPERTY_ID_CATALOGNAME, PROPERTY_ID_DESCRIPTION, PROPERTY_ID_FILTER, PROPERTY_ID_FONT, PROPERTY_ID_FONTCHARSET, PROPERTY_ID_FONTCHARWIDTH, PROPERTY_ID_FONTFAMILY, PROPERTY_ID_FONTHEIGHT, PROPERTY_ID_FONTKERNING, PROPERTY_ID_FONTNAME, PROPERTY_ID_FONTORIENTATION, PROPERTY_ID_FONTPITCH, PROPERTY_ID_FONTSLANT, PROPERTY_ID_FONTSTRIKEOUT, PROPERTY_ID_FONTSTYLENAME, PROPERTY_ID_FONTTYPE, PROPERTY_ID_FONTUNDERLINE, PROPERTY_ID_FONTWEIGHT, PROPERTY_ID_FONTWIDTH, PROPERTY_ID_FONTWORDLINEMODE, PROPERTY_ID_NAME, PROPERTY_ID_ORDER, PROPERTY_ID_PRIVILEGES, PROPERTY_ID_ROW_HEIGHT, PROPERTY_ID_SCHEMANAME, PROPERTY_ID_TEXTCOLOR, PROPERTY_ID_TEXTEMPHASIS, PROPERTY_ID_TEXTLINECOLOR, PROPERTY_ID_TEXTRELIEF, PROPERTY_ID_TYPE, PROPERTY_NAME(), PROPERTY_PRIVILEGES(), PROPERTY_SCHEMANAME(), PROPERTY_TYPE(), and SAL_WARN.
Referenced by convertFastPropertyValue().
|
overridevirtual |
Definition at line 71 of file TableDeco.cxx.
|
overridevirtual |
Definition at line 434 of file TableDeco.cxx.
References cppu::BaseMutex::m_aMutex, and m_xTable.
|
overrideprotected |
Definition at line 334 of file TableDeco.cxx.
References comphelper::OIdPropertyArrayUsageHelper< class TYPE >::getArrayHelper(), m_xTable, and PROPERTY_NAME().
Referenced by getPropertySetInfo().
|
overridevirtual |
Definition at line 441 of file TableDeco.cxx.
References cppu::BaseMutex::m_aMutex, and m_xTable.
|
overridevirtual |
Definition at line 459 of file TableDeco.cxx.
References cppu::BaseMutex::m_aMutex, and m_xTable.
|
overridevirtual |
Definition at line 534 of file TableDeco.cxx.
References getInfoHelper().
|
overridevirtual |
Definition at line 468 of file TableDeco.cxx.
References comphelper::getSomething_cast(), and m_xTable.
|
overridevirtual |
Definition at line 389 of file TableDeco.cxx.
References m_xTable.
|
static |
Definition at line 480 of file TableDeco.cxx.
References comphelper::UnoIdInit::getSeq().
|
overridevirtual |
Reimplemented from comphelper::OPropertyStateContainer.
Definition at line 372 of file TableDeco.cxx.
References Any, m_xTable, and comphelper::OPropertyStateContainer::queryInterface().
|
overrideprotectedvirtual |
Implements connectivity::sdbcx::IRefreshableColumns.
Definition at line 539 of file TableDeco.cxx.
References cppu::BaseMutex::m_aMutex, m_pColumns, m_xColumnDefinitions, m_xColumnMediator, m_xMetaData, m_xTable, dbaccess::OColumns::setMediator(), and dbaccess::OColumns::setParent().
Referenced by getColumns().
|
overridevirtualnoexcept |
Definition at line 624 of file TableDeco.cxx.
|
overridevirtual |
Definition at line 397 of file TableDeco.cxx.
References Any, DBA_RES, cppu::BaseMutex::m_aMutex, m_xTable, and SQLSTATE_GENERAL.
|
overrideprotectedvirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 142 of file TableDeco.cxx.
References m_xTable, PROPERTY_CATALOGNAME(), PROPERTY_DESCRIPTION(), PROPERTY_ID_APPLYFILTER, PROPERTY_ID_AUTOGROW, PROPERTY_ID_CATALOGNAME, PROPERTY_ID_DESCRIPTION, PROPERTY_ID_FILTER, PROPERTY_ID_FONT, PROPERTY_ID_FONTCHARSET, PROPERTY_ID_FONTCHARWIDTH, PROPERTY_ID_FONTFAMILY, PROPERTY_ID_FONTHEIGHT, PROPERTY_ID_FONTKERNING, PROPERTY_ID_FONTNAME, PROPERTY_ID_FONTORIENTATION, PROPERTY_ID_FONTPITCH, PROPERTY_ID_FONTSLANT, PROPERTY_ID_FONTSTRIKEOUT, PROPERTY_ID_FONTSTYLENAME, PROPERTY_ID_FONTTYPE, PROPERTY_ID_FONTUNDERLINE, PROPERTY_ID_FONTWEIGHT, PROPERTY_ID_FONTWIDTH, PROPERTY_ID_FONTWORDLINEMODE, PROPERTY_ID_NAME, PROPERTY_ID_ORDER, PROPERTY_ID_PRIVILEGES, PROPERTY_ID_ROW_HEIGHT, PROPERTY_ID_SCHEMANAME, PROPERTY_ID_TEXTCOLOR, PROPERTY_ID_TEXTEMPHASIS, PROPERTY_ID_TEXTLINECOLOR, PROPERTY_ID_TEXTRELIEF, PROPERTY_ID_TYPE, PROPERTY_NAME(), PROPERTY_SCHEMANAME(), PROPERTY_TYPE(), SAL_WARN, and comphelper::OPropertyContainer::setFastPropertyValue_NoBroadcast().
|
overridevirtual |
Definition at line 629 of file TableDeco.cxx.
References throwFunctionNotSupportedRuntimeException().
|
mutableprivate |
Definition at line 72 of file TableDeco.hxx.
Referenced by construct(), fillPrivileges(), and getFastPropertyValue().
|
private |
Definition at line 75 of file TableDeco.hxx.
Referenced by alterColumnByIndex(), alterColumnByName(), disposing(), getColumns(), and refreshColumns().
|
private |
Definition at line 66 of file TableDeco.hxx.
Referenced by columnDropped(), createColumn(), disposing(), and refreshColumns().
|
private |
Definition at line 64 of file TableDeco.hxx.
Referenced by disposing(), and refreshColumns().
|
private |
Definition at line 67 of file TableDeco.hxx.
Referenced by createDataDescriptor().
|
private |
Definition at line 68 of file TableDeco.hxx.
Referenced by disposing(), fillPrivileges(), and refreshColumns().
|
private |
Definition at line 69 of file TableDeco.hxx.
Referenced by createDataDescriptor(), and disposing().
|
private |
Definition at line 65 of file TableDeco.hxx.
Referenced by alterColumnByIndex(), alterColumnByName(), construct(), createArrayHelper(), createColumn(), createColumnDescriptor(), createDataDescriptor(), disposing(), fillPrivileges(), getFastPropertyValue(), getIndexes(), getInfoHelper(), getKeys(), getName(), getSomething(), getTypes(), queryInterface(), refreshColumns(), rename(), and setFastPropertyValue_NoBroadcast().