LibreOffice Module connectivity (master) 1
|
#include <FTable.hxx>
Public Member Functions | |
virtual void | refreshColumns () override |
virtual void | refreshKeys () override |
virtual void | refreshIndexes () override |
OFileTable (sdbcx::OCollection *_pTables, OConnection *_pConnection) | |
OFileTable (sdbcx::OCollection *_pTables, OConnection *_pConnection, const OUString &Name, const OUString &Type, const OUString &Description, const OUString &SchemaName, const OUString &CatalogName) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | disposing () override |
OConnection * | getConnection () const |
virtual sal_Int32 | getCurrentLastPos () const |
virtual bool | seekRow (IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Int32 &nCurPos)=0 |
virtual bool | fetchRow (OValueRefRow &_rRow, const OSQLColumns &_rCols, bool bRetrieveData)=0 |
const ::rtl::Reference< OSQLColumns > & | getTableColumns () const |
virtual bool | InsertRow (OValueRefVector &rRow, const css::uno::Reference< css::container::XIndexAccess > &_xCols) |
virtual bool | DeleteRow (const OSQLColumns &_rCols) |
virtual bool | UpdateRow (OValueRefVector &rRow, OValueRefRow &pOrgRow, const css::uno::Reference< css::container::XIndexAccess > &_xCols) |
virtual void | addColumn (const css::uno::Reference< css::beans::XPropertySet > &descriptor) |
virtual void | dropColumn (sal_Int32 _nPos) |
virtual void | refreshHeader () |
OUString SAL_CALL | getName () override |
const OUString & | getSchema () const |
bool | isReadOnly () const |
sal_Int32 | getFilePos () 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 () |
Static Public Member Functions | |
static std::unique_ptr< SvStream > | createStream_simpleError (const OUString &_rFileName, StreamMode _eOpenMode) |
Static Public Member Functions inherited from connectivity::sdbcx::ODescriptor | |
static bool | isNew (const css::uno::Reference< css::uno::XInterface > &_rxDescriptor) |
Protected Member Functions | |
virtual void | FileClose () |
virtual | ~OFileTable () 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 |
Protected Attributes | |
OConnection * | m_pConnection |
std::unique_ptr< SvStream > | m_pFileStream |
::rtl::Reference< OSQLColumns > | m_aColumns |
sal_Int32 | m_nFilePos |
std::unique_ptr< sal_uInt8[]> | m_pBuffer |
sal_uInt16 | m_nBufferSize |
bool | m_bWriteable |
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 |
Additional Inherited Members | |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Definition at line 33 of file FTable.hxx.
|
overrideprotectedvirtual |
Definition at line 69 of file FTable.cxx.
OFileTable::OFileTable | ( | sdbcx::OCollection * | _pTables, |
OConnection * | _pConnection | ||
) |
Definition at line 36 of file FTable.cxx.
References connectivity::sdbcx::OTable::construct(), and m_aColumns.
OFileTable::OFileTable | ( | sdbcx::OCollection * | _pTables, |
OConnection * | _pConnection, | ||
const OUString & | Name, | ||
const OUString & | Type, | ||
const OUString & | Description, | ||
const OUString & | SchemaName, | ||
const OUString & | CatalogName | ||
) |
Definition at line 47 of file FTable.cxx.
References connectivity::sdbcx::OTable::construct(), m_aColumns, and Name.
|
virtual |
Reimplemented in connectivity::dbase::ODbaseTable.
Definition at line 144 of file FTable.cxx.
Referenced by connectivity::dbase::ODbaseColumns::appendObject().
|
static |
Definition at line 155 of file FTable.cxx.
References utl::UcbStreamHelper::CreateStream(), and ERRCODE_NONE.
Referenced by connectivity::dbase::ODbaseTable::construct(), connectivity::flat::OFlatTable::construct(), and connectivity::dbase::ODbaseIndexes::createObject().
|
virtual |
Reimplemented in connectivity::dbase::ODbaseTable.
Definition at line 134 of file FTable.cxx.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Reimplemented in connectivity::calc::OCalcTable, connectivity::dbase::ODbaseTable, connectivity::flat::OFlatTable, and connectivity::writer::OWriterTable.
Definition at line 112 of file FTable.cxx.
References connectivity::sdbcx::OTable::disposing(), FileClose(), and cppu::BaseMutex::m_aMutex.
|
virtual |
Reimplemented in connectivity::dbase::ODbaseTable.
Definition at line 149 of file FTable.cxx.
Referenced by connectivity::dbase::ODbaseColumns::dropObject().
|
pure virtual |
|
protectedvirtual |
Reimplemented in connectivity::component::OComponentTable, and connectivity::dbase::ODbaseTable.
Definition at line 121 of file FTable.cxx.
References cppu::BaseMutex::m_aMutex, m_pBuffer, and m_pFileStream.
Referenced by disposing(), and connectivity::component::OComponentTable::FileClose().
|
inline |
Definition at line 66 of file FTable.hxx.
Referenced by connectivity::dbase::ODbaseIndexColumns::createDescriptor(), connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::dbase::ODbaseIndex::createINFEntry(), connectivity::dbase::ODbaseIndexColumns::createObject(), connectivity::file::OColumns::createObject(), connectivity::dbase::ODbaseIndex::DropImpl(), connectivity::calc::OCalcTable::fillColumns(), connectivity::dbase::ODbaseTable::fillColumns(), connectivity::writer::OWriterTable::fillColumns(), connectivity::dbase::ODbaseIndex::getCompletePath(), connectivity::dbase::ODbaseIndex::impl_killFileAndthrowError_throw(), connectivity::dbase::ODbaseTable::ODbaseTable(), connectivity::dbase::ODbaseIndex::openIndexFile(), connectivity::dbase::ONDXNode::Read(), connectivity::dbase::ODbaseTable::readHeader(), and connectivity::dbase::ONDXNode::Write().
|
inlinevirtual |
Reimplemented in connectivity::component::OComponentTable, and connectivity::dbase::ODbaseTable.
Definition at line 67 of file FTable.hxx.
|
inline |
Definition at line 87 of file FTable.hxx.
|
inlineoverridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 81 of file FTable.hxx.
References m_Name.
Referenced by connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::dbase::ODbaseIndex::createINFEntry(), connectivity::file::OColumns::createObject(), connectivity::dbase::ODbaseIndex::DropImpl(), connectivity::calc::OCalcTable::fillColumns(), connectivity::dbase::ODbaseTable::fillColumns(), connectivity::writer::OWriterTable::fillColumns(), connectivity::flat::OFlatTable::fillColumns(), connectivity::component::OComponentTable::refreshColumns(), connectivity::dbase::ODbaseTable::refreshColumns(), and connectivity::flat::OFlatTable::refreshColumns().
|
inline |
|
inline |
Definition at line 72 of file FTable.hxx.
Referenced by connectivity::dbase::ODbaseIndex::CreateImpl(), connectivity::component::OComponentColumns::createObject(), connectivity::dbase::ODbaseColumns::createObject(), connectivity::dbase::ODbaseIndexColumns::createObject(), and connectivity::flat::OFlatColumns::createObject().
|
virtual |
Reimplemented in connectivity::dbase::ODbaseTable.
Definition at line 129 of file FTable.cxx.
|
inline |
Definition at line 84 of file FTable.hxx.
Referenced by connectivity::file::OResultSetMetaData::isReadOnly().
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Reimplemented in connectivity::component::OComponentTable, connectivity::dbase::ODbaseTable, and connectivity::flat::OFlatTable.
Definition at line 100 of file FTable.cxx.
References Any, and connectivity::sdbcx::OTable::queryInterface().
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Reimplemented in connectivity::component::OComponentTable, connectivity::dbase::ODbaseTable, and connectivity::flat::OFlatTable.
Definition at line 73 of file FTable.cxx.
References Any, connectivity::file::OConnection::getMetaData(), cppu::BaseMutex::m_aMutex, connectivity::sdbcx::ODescriptor::m_Name, m_pConnection, connectivity::sdbcx::OTable::m_SchemaName, and connectivity::sdbcx::OTable::m_xColumns.
Referenced by connectivity::dbase::ODbaseColumns::impl_refresh(), and connectivity::file::OColumns::impl_refresh().
|
virtual |
Reimplemented in connectivity::dbase::ODbaseTable, and connectivity::flat::OFlatTable.
Definition at line 166 of file FTable.cxx.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Reimplemented in connectivity::component::OComponentTable, and connectivity::dbase::ODbaseTable.
Definition at line 96 of file FTable.cxx.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 92 of file FTable.cxx.
|
pure virtual |
|
virtual |
Reimplemented in connectivity::dbase::ODbaseTable.
Definition at line 139 of file FTable.cxx.
|
protected |
Definition at line 38 of file FTable.hxx.
Referenced by connectivity::calc::OCalcTable::disposing(), connectivity::dbase::ODbaseTable::disposing(), connectivity::flat::OFlatTable::disposing(), connectivity::writer::OWriterTable::disposing(), connectivity::calc::OCalcTable::fillColumns(), connectivity::dbase::ODbaseTable::fillColumns(), connectivity::writer::OWriterTable::fillColumns(), connectivity::flat::OFlatTable::fillColumns(), OFileTable(), connectivity::component::OComponentTable::refreshColumns(), connectivity::dbase::ODbaseTable::refreshColumns(), and connectivity::flat::OFlatTable::refreshColumns().
|
protected |
Definition at line 42 of file FTable.hxx.
Referenced by connectivity::dbase::ODbaseTable::construct().
|
protected |
Definition at line 41 of file FTable.hxx.
Referenced by connectivity::dbase::ODbaseTable::fetchRow().
|
protected |
Definition at line 39 of file FTable.hxx.
Referenced by connectivity::calc::OCalcTable::fetchRow(), connectivity::dbase::ODbaseTable::fetchRow(), connectivity::flat::OFlatTable::fetchRow(), connectivity::writer::OWriterTable::fetchRow(), connectivity::component::OComponentTable::seekRow(), and connectivity::flat::OFlatTable::seekRow().
|
protected |
Definition at line 40 of file FTable.hxx.
Referenced by connectivity::dbase::ODbaseTable::fetchRow(), and FileClose().
|
protected |
Definition at line 36 of file FTable.hxx.
Referenced by connectivity::dbase::ODbaseTable::construct(), connectivity::flat::OFlatTable::construct(), connectivity::calc::OCalcTable::fillColumns(), connectivity::writer::OWriterTable::fillColumns(), connectivity::flat::OFlatTable::fillColumns(), connectivity::flat::OFlatTable::getEntry(), connectivity::flat::OFlatTable::getFlatConnection(), connectivity::flat::OFlatTable::readLine(), refreshColumns(), and connectivity::dbase::ODbaseTable::refreshIndexes().
|
protected |
Definition at line 37 of file FTable.hxx.
Referenced by connectivity::dbase::ODbaseTable::construct(), connectivity::flat::OFlatTable::construct(), connectivity::flat::OFlatTable::fetchRow(), FileClose(), connectivity::dbase::ODbaseTable::fillColumns(), connectivity::flat::OFlatTable::fillColumns(), connectivity::dbase::ODbaseTable::readHeader(), connectivity::flat::OFlatTable::readLine(), connectivity::dbase::ODbaseTable::refreshIndexes(), and connectivity::flat::OFlatTable::seekRow().