LibreOffice Module connectivity (master) 1
|
#include <ATable.hxx>
Public Member Functions | |
virtual void | refreshColumns () override |
virtual void | refreshKeys () override |
virtual void | refreshIndexes () override |
virtual void SAL_CALL | disposing () override |
OAdoTable (sdbcx::OCollection *_pTables, bool _bCase, OCatalog *_pCatalog, _ADOTable *_pTable) | |
OAdoTable (sdbcx::OCollection *_pTables, bool _bCase, OCatalog *_pCatalog) | |
virtual OUString SAL_CALL | getName () override |
OUString | getSchema () const |
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > | getMetaData () const override |
virtual void SAL_CALL | rename (const OUString &newName) override |
virtual void SAL_CALL | alterColumnByName (const OUString &colName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
virtual void SAL_CALL | alterColumnByIndex (sal_Int32 index, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
WpADOTable | getImpl () const |
OCatalog * | getCatalog () const |
Public Member Functions inherited from connectivity::sdbcx::OTable | |
OTable (OCollection *_pTables, bool _bCase) | |
OTable (OCollection *_pTables, bool _bCase, const OUString &Name, OUString Type, OUString Description=OUString(), OUString SchemaName=OUString(), OUString CatalogName=OUString()) | |
virtual | ~OTable () override |
DECLARE_SERVICE_INFO () | |
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 void | construct () override |
virtual void | refreshColumns () override |
virtual void | refreshKeys () |
virtual void | refreshIndexes () |
virtual void SAL_CALL | disposing () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getColumns () override |
virtual css::uno::Reference< css::container::XIndexAccess > SAL_CALL | getKeys () override |
virtual OUString SAL_CALL | getName () override |
virtual void SAL_CALL | setName (const OUString &aName) override |
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL | createDataDescriptor () override |
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL | getIndexes () override |
virtual void SAL_CALL | rename (const OUString &newName) override |
virtual void SAL_CALL | alterColumnByName (const OUString &colName, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
virtual void SAL_CALL | alterColumnByIndex (sal_Int32 index, const css::uno::Reference< css::beans::XPropertySet > &descriptor) override |
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > | getMetaData () const |
Public Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
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 |
virtual void | refreshColumns ()=0 |
Public Member Functions inherited from comphelper::OIdPropertyArrayUsageHelper< class TYPE > | |
OIdPropertyArrayUsageHelper () | |
virtual | ~OIdPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper (sal_Int32 nId) |
Public Member Functions inherited from connectivity::sdbcx::ODescriptor | |
ODescriptor (::cppu::OBroadcastHelper &_rBHelper, bool _bCase, bool _bNew=false) | |
virtual | ~ODescriptor () override |
bool | isNew () const |
void | setNew (bool _bNew) |
bool | isCaseSensitive () const |
virtual void | construct () |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Protected Member Functions | |
void | fillPropertyValues () |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
Protected Member Functions inherited from connectivity::sdbcx::OTable | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper (sal_Int32 _nId) const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
Protected Member Functions inherited from cppu::ImplHelper4< class Ifc1, class Ifc2, class Ifc3, class Ifc4 > | |
~ImplHelper4 () SAL_NOEXCEPT | |
Protected Member Functions inherited from connectivity::sdbcx::IRefreshableColumns | |
~IRefreshableColumns () | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper (sal_Int32 nId) const=0 |
Protected Member Functions inherited from connectivity::sdbcx::ODescriptor | |
::cppu::IPropertyArrayHelper * | doCreateArrayHelper () const |
helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper More... | |
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 |
Private Attributes | |
WpADOTable | m_aTable |
OCatalog * | m_pCatalog |
Additional Inherited Members | |
Static Public Member Functions inherited from connectivity::sdbcx::ODescriptor | |
static bool | isNew (const css::uno::Reference< css::uno::XInterface > &_rxDescriptor) |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Protected Attributes inherited from connectivity::sdbcx::OTable | |
OUString | m_CatalogName |
OUString | m_SchemaName |
OUString | m_Description |
OUString | m_Type |
std::unique_ptr< OCollection > | m_xKeys |
std::unique_ptr< OCollection > | m_xColumns |
std::unique_ptr< OCollection > | m_xIndexes |
OCollection * | m_pTables |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Protected Attributes inherited from connectivity::sdbcx::ODescriptor | |
OUString | m_Name |
Definition at line 31 of file ATable.hxx.
OAdoTable::OAdoTable | ( | sdbcx::OCollection * | _pTables, |
bool | _bCase, | ||
OCatalog * | _pCatalog, | ||
_ADOTable * | _pTable | ||
) |
Definition at line 52 of file ATable.cxx.
References connectivity::sdbcx::OTable::construct(), fillPropertyValues(), m_aTable, and connectivity::ado::WpOLEBase< T >::set().
OAdoTable::OAdoTable | ( | sdbcx::OCollection * | _pTables, |
bool | _bCase, | ||
OCatalog * | _pCatalog | ||
) |
Definition at line 63 of file ATable.cxx.
References connectivity::sdbcx::OTable::construct(), connectivity::ado::WpADOTable::Create(), connectivity::ado::OCatalog::getCatalog(), m_aTable, and connectivity::ado::WpADOTable::putref_ParentCatalog().
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 168 of file ATable.cxx.
References alterColumnByName(), connectivity::checkDisposed(), dbtools::OPropertyMap::getNameByIndex(), connectivity::OMetaConnection::getPropMap(), getString(), index, cppu::BaseMutex::m_aMutex, connectivity::sdbcx::OTable::m_xColumns, and PROPERTY_ID_NAME.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 148 of file ATable.cxx.
References connectivity::ado::WpOLEAppendCollection< Ts, WrapT >::Append(), connectivity::checkDisposed(), connectivity::ado::WpOLEAppendCollection< Ts, WrapT >::Delete(), connectivity::ado::WpADOTable::get_Columns(), connectivity::ado::OAdoColumn::getColumnImpl(), connectivity::ado::OConnection::getConnection(), connectivity::ado::OCatalog::getConnection(), cppu::BaseMutex::m_aMutex, m_aTable, m_pCatalog, connectivity::sdbcx::OTable::m_xColumns, refreshColumns(), and connectivity::ado::ADOS::ThrowException().
Referenced by alterColumnByIndex().
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 73 of file ATable.cxx.
References connectivity::ado::WpOLEBase< T >::clear(), connectivity::sdbcx::OTable::disposing(), and m_aTable.
|
protected |
Definition at line 517 of file ADatabaseMetaDataImpl.cxx.
References connectivity::ado::WpADOTable::get_Name(), connectivity::ado::WpADOTable::get_ParentCatalog(), connectivity::ado::WpADOTable::get_Properties(), connectivity::ado::WpADOTable::get_Type(), connectivity::ado::WpADOCatalog::GetObjectOwner(), connectivity::ado::OLEVariant::getString(), connectivity::ado::OTools::getValue(), connectivity::ado::WpOLEBase< T >::IsValid(), m_aTable, connectivity::sdbcx::OTable::m_CatalogName, connectivity::sdbcx::OTable::m_Description, connectivity::sdbcx::ODescriptor::m_Name, connectivity::sdbcx::OTable::m_Type, and u.
Referenced by OAdoTable().
|
inline |
Definition at line 65 of file ATable.hxx.
References m_pCatalog.
|
inline |
Definition at line 64 of file ATable.hxx.
References m_aTable.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 142 of file ATable.cxx.
References connectivity::ado::OCatalog::getConnection(), connectivity::ado::OConnection::getMetaData(), and m_pCatalog.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 211 of file ATable.cxx.
References connectivity::ado::WpADOTable::get_Name(), and m_aTable.
|
inline |
Definition at line 54 of file ATable.hxx.
References connectivity::sdbcx::OTable::m_SchemaName.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 79 of file ATable.cxx.
References connectivity::ado::WpOLECollection< Ts, WrapT >::fillElementNames(), connectivity::ado::WpADOTable::get_Columns(), connectivity::ado::OCatalog::getConnection(), connectivity::sdbcx::ODescriptor::isCaseSensitive(), connectivity::ado::WpOLEBase< T >::IsValid(), cppu::BaseMutex::m_aMutex, m_aTable, m_pCatalog, and connectivity::sdbcx::OTable::m_xColumns.
Referenced by alterColumnByName().
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 113 of file ATable.cxx.
References connectivity::ado::WpOLECollection< Ts, WrapT >::fillElementNames(), connectivity::ado::WpADOTable::get_Indexes(), connectivity::ado::OCatalog::getConnection(), connectivity::sdbcx::ODescriptor::isCaseSensitive(), connectivity::ado::WpOLEBase< T >::IsValid(), cppu::BaseMutex::m_aMutex, m_aTable, m_pCatalog, and connectivity::sdbcx::OTable::m_xIndexes.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 96 of file ATable.cxx.
References connectivity::ado::WpOLECollection< Ts, WrapT >::fillElementNames(), connectivity::ado::WpADOTable::get_Keys(), connectivity::ado::OCatalog::getConnection(), connectivity::sdbcx::ODescriptor::isCaseSensitive(), connectivity::ado::WpOLEBase< T >::IsValid(), cppu::BaseMutex::m_aMutex, m_aTable, m_pCatalog, and connectivity::sdbcx::OTable::m_xKeys.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 131 of file ATable.cxx.
References connectivity::checkDisposed(), connectivity::ado::OConnection::getConnection(), connectivity::ado::OCatalog::getConnection(), cppu::BaseMutex::m_aMutex, m_aTable, m_pCatalog, newName(), connectivity::ado::WpADOTable::put_Name(), connectivity::sdbcx::OTable::rename(), and connectivity::ado::ADOS::ThrowException().
|
overrideprotectedvirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 179 of file ATable.cxx.
References Exception, connectivity::ado::WpADOTable::get_Properties(), dbtools::OPropertyMap::getNameByIndex(), connectivity::OMetaConnection::getPropMap(), getString(), connectivity::ado::WpOLEBase< T >::IsValid(), m_aTable, nHandle, PROPERTY_ID_DESCRIPTION, PROPERTY_ID_NAME, PROPERTY_ID_SCHEMANAME, PROPERTY_ID_TYPE, connectivity::ado::WpADOTable::put_Name(), connectivity::ado::OTools::putValue(), comphelper::OPropertyContainer::setFastPropertyValue_NoBroadcast(), and u.
|
private |
Definition at line 33 of file ATable.hxx.
Referenced by alterColumnByName(), disposing(), fillPropertyValues(), getImpl(), getName(), OAdoTable(), refreshColumns(), refreshIndexes(), refreshKeys(), rename(), and setFastPropertyValue_NoBroadcast().
|
private |
Definition at line 34 of file ATable.hxx.
Referenced by alterColumnByName(), getCatalog(), getMetaData(), refreshColumns(), refreshIndexes(), refreshKeys(), and rename().