|
LibreOffice Module connectivity (master) 1
|
#include <ETable.hxx>
Public Member Functions | |
| virtual void | refreshColumns () override |
| OFlatTable (sdbcx::OCollection *_pTables, OFlatConnection *_pConnection, const OUString &Name, const OUString &Type, const OUString &Description=OUString(), const OUString &SchemaName=OUString(), const OUString &CatalogName=OUString()) | |
| void | construct () override |
| virtual bool | seekRow (IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Int32 &nCurPos) override |
| virtual bool | fetchRow (OValueRefRow &_rRow, const OSQLColumns &_rCols, bool bRetrieveData) override |
| virtual void | refreshHeader () 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 SAL_CALL | disposing () override |
| OUString | getEntry () const |
Public Member Functions inherited from connectivity::file::OFileTable | |
| 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 () |
Private Member Functions | |
| void | fillColumns (const css::lang::Locale &_aLocale) |
| bool | readLine (sal_Int32 *pEndPos, sal_Int32 *pStartPos, bool nonEmpty=false) |
| void | setRowPos (std::vector< TRowPositionInFile >::size_type rowNum, const TRowPositionInFile &rowPos) |
| void | impl_fillColumnInfo_nothrow (QuotedTokenizedString const &aFirstLine, sal_Int32 &nStartPosFirstLine, sal_Int32 &nStartPosFirstLine2, sal_Int32 &io_nType, sal_Int32 &io_nPrecisions, sal_Int32 &io_nScales, OUString &o_sTypeName, const sal_Unicode cDecimalDelimiter, const sal_Unicode cThousandDelimiter, const CharClass &aCharClass) |
| OFlatConnection * | getFlatConnection () |
Private Attributes | |
| std::vector< TRowPositionInFile > | m_aRowPosToFilePos |
| std::vector< sal_Int32 > | m_aTypes |
| std::vector< sal_Int32 > | m_aPrecisions |
| std::vector< sal_Int32 > | m_aScales |
| QuotedTokenizedString | m_aCurrentLine |
| css::uno::Reference< css::util::XNumberFormatter > | m_xNumberFormatter |
| css::util::Date | m_aNullDate |
| sal_Int32 | m_nRowPos |
| sal_Int32 | m_nMaxRowCount |
| sal_Unicode | m_cStringDelimiter |
| sal_Unicode | m_cFieldDelimiter |
| bool | m_bNeedToReadLine |
Additional Inherited Members | |
Static Public Member Functions inherited from connectivity::file::OFileTable | |
| 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 inherited from connectivity::file::OFileTable | |
| 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 |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
| static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Protected Attributes inherited from connectivity::file::OFileTable | |
| 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 |
Definition at line 36 of file ETable.hxx.
| OFlatTable::OFlatTable | ( | sdbcx::OCollection * | _pTables, |
| OFlatConnection * | _pConnection, | ||
| const OUString & | Name, | ||
| const OUString & | Type, | ||
| const OUString & | Description = OUString(), |
||
| const OUString & | SchemaName = OUString(), |
||
| const OUString & | CatalogName = OUString() |
||
| ) |
Definition at line 389 of file ETable.cxx.
References Name.
|
overridevirtual |
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 409 of file ETable.cxx.
References aURL, connectivity::file::OFileTable::createStream_simpleError(), fillColumns(), connectivity::file::OFileDriver::getComponentContext(), connectivity::file::OConnection::getDriver(), getEntry(), connectivity::file::OConnection::getExtension(), SvtSysLocale::GetLanguageTag(), LanguageTag::getLocale(), m_aNullDate, connectivity::file::OFileTable::m_pConnection, connectivity::file::OFileTable::m_pFileStream, m_xNumberFormatter, INetURLObject::NONE, and refreshColumns().
|
overridevirtual |
Reimplemented from connectivity::file::OFileTable.
Definition at line 509 of file ETable.cxx.
References connectivity::file::OFileTable::m_aColumns, and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Implements connectivity::file::OFileTable.
Definition at line 552 of file ETable.cxx.
References aBuf, aStr, Exception, connectivity::flat::OFlatConnection::getDecimalDelimiter(), getFlatConnection(), connectivity::flat::OFlatConnection::getThousandDelimiter(), connectivity::QuotedTokenizedString::GetTokenSpecial(), i, m_aCurrentLine, m_aNullDate, m_aTypes, m_bNeedToReadLine, m_cFieldDelimiter, m_cStringDelimiter, connectivity::file::OFileTable::m_nFilePos, m_nRowPos, connectivity::file::OFileTable::m_pFileStream, m_xNumberFormatter, nCount, nType, readLine(), result, setRowPos(), dbtools::DBTypeConversion::toDate(), dbtools::DBTypeConversion::toDateTime(), toDouble(), and dbtools::DBTypeConversion::toTime().
|
private |
Definition at line 62 of file ETable.cxx.
References connectivity::find(), connectivity::file::OFileDriver::getComponentContext(), connectivity::flat::OFlatConnection::getDecimalDelimiter(), connectivity::file::OConnection::getDriver(), getFlatConnection(), connectivity::flat::OFlatConnection::getMaxRowsToScan(), connectivity::file::OConnection::getMetaData(), connectivity::file::OFileTable::getName(), connectivity::file::OFileTable::getSchema(), connectivity::flat::OFlatConnection::getThousandDelimiter(), connectivity::QuotedTokenizedString::GetTokenCount(), connectivity::QuotedTokenizedString::GetTokenSpecial(), i, impl_fillColumnInfo_nothrow(), connectivity::flat::OFlatConnection::isHeaderLine(), connectivity::QuotedTokenizedString::Len(), connectivity::file::OFileTable::m_aColumns, m_aCurrentLine, m_aPrecisions, m_aRowPosToFilePos, m_aScales, m_aTypes, m_bNeedToReadLine, connectivity::sdbcx::OTable::m_CatalogName, m_cFieldDelimiter, m_cStringDelimiter, connectivity::file::OFileTable::m_pConnection, connectivity::file::OFileTable::m_pFileStream, nPos, readLine(), and setRowPos().
Referenced by construct().
| OUString OFlatTable::getEntry | ( | ) | const |
Definition at line 448 of file ETable.cxx.
References aURL, Exception, connectivity::file::OConnection::getDir(), connectivity::OMetaConnection::getURL(), connectivity::sdbcx::ODescriptor::m_Name, connectivity::file::OFileTable::m_pConnection, connectivity::file::OConnection::matchesExtension(), sName, and u.
Referenced by construct().
|
inlineprivate |
Definition at line 61 of file ETable.hxx.
References connectivity::file::OFileTable::m_pConnection.
Referenced by fetchRow(), and fillColumns().
Reimplemented from connectivity::sdbcx::OTable.
Definition at line 516 of file ETable.cxx.
References aTypes, and connectivity::sdbcx::OTable::getTypes().
|
private |
Definition at line 196 of file ETable.cxx.
References Exception, comphelper::getNumberFormatType(), o3tl::getToken(), connectivity::QuotedTokenizedString::GetTokenSpecial(), CharClass::isDigit(), m_cFieldDelimiter, m_cStringDelimiter, m_xNumberFormatter, and nIndex.
Referenced by fillColumns().
|
overridevirtual |
Reimplemented from connectivity::file::OFileTable.
Definition at line 538 of file ETable.cxx.
References Any, and connectivity::sdbcx::OTable::queryInterface().
|
private |
Definition at line 851 of file ETable.cxx.
References aStr, connectivity::QuotedTokenizedString::GetString(), connectivity::OMetaConnection::getTextEncoding(), pq_sdbc_driver::isQuoted(), connectivity::QuotedTokenizedString::Len(), m_aCurrentLine, m_cFieldDelimiter, m_cStringDelimiter, connectivity::file::OFileTable::m_pConnection, connectivity::file::OFileTable::m_pFileStream, p, and connectivity::QuotedTokenizedString::SetString().
Referenced by fetchRow(), fillColumns(), and seekRow().
|
overridevirtual |
Reimplemented from connectivity::file::OFileTable.
Definition at line 492 of file ETable.cxx.
References connectivity::file::OFileTable::getName(), connectivity::file::OFileTable::m_aColumns, cppu::BaseMutex::m_aMutex, and connectivity::sdbcx::OTable::m_xColumns.
Referenced by construct().
|
overridevirtual |
Reimplemented from connectivity::file::OFileTable.
Definition at line 682 of file ETable.cxx.
References SAL_INFO.
|
overridevirtual |
Implements connectivity::file::OFileTable.
Definition at line 700 of file ETable.cxx.
References connectivity::IResultSetHelper::ABSOLUTE1, connectivity::IResultSetHelper::BOOKMARK, connectivity::IResultSetHelper::FIRST, connectivity::IResultSetHelper::LAST, m_aRowPosToFilePos, m_bNeedToReadLine, connectivity::file::OFileTable::m_nFilePos, m_nMaxRowCount, m_nRowPos, connectivity::file::OFileTable::m_pFileStream, o3tl::make_unsigned(), connectivity::IResultSetHelper::NEXT, connectivity::IResultSetHelper::PRIOR, readLine(), connectivity::IResultSetHelper::RELATIVE1, seekRow(), and setRowPos().
Referenced by seekRow().
|
private |
Definition at line 932 of file ETable.cxx.
References m_aRowPosToFilePos, and SAL_WARN_IF.
Referenced by fetchRow(), fillColumns(), and seekRow().
|
private |
Definition at line 46 of file ETable.hxx.
Referenced by fetchRow(), fillColumns(), and readLine().
|
private |
Definition at line 48 of file ETable.hxx.
Referenced by construct(), and fetchRow().
|
private |
Definition at line 44 of file ETable.hxx.
Referenced by fillColumns().
|
private |
Definition at line 42 of file ETable.hxx.
Referenced by fillColumns(), seekRow(), and setRowPos().
|
private |
Definition at line 45 of file ETable.hxx.
Referenced by fillColumns().
|
private |
Definition at line 43 of file ETable.hxx.
Referenced by fetchRow(), and fillColumns().
|
private |
Definition at line 53 of file ETable.hxx.
Referenced by fetchRow(), fillColumns(), and seekRow().
|
private |
Definition at line 52 of file ETable.hxx.
Referenced by fetchRow(), fillColumns(), impl_fillColumnInfo_nothrow(), and readLine().
|
private |
Definition at line 51 of file ETable.hxx.
Referenced by fetchRow(), fillColumns(), impl_fillColumnInfo_nothrow(), and readLine().
|
private |
Definition at line 50 of file ETable.hxx.
Referenced by seekRow().
|
private |
Definition at line 49 of file ETable.hxx.
Referenced by fetchRow(), and seekRow().
|
private |
Definition at line 47 of file ETable.hxx.
Referenced by construct(), fetchRow(), and impl_fillColumnInfo_nothrow().