LibreOffice Module connectivity (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
connectivity::component::OComponentResultSet Class Reference

ResultSet implementation for Writer tables and Calc sheets. More...

#include <CResultSet.hxx>

Inheritance diagram for connectivity::component::OComponentResultSet:
[legend]
Collaboration diagram for connectivity::component::OComponentResultSet:
[legend]

Public Member Functions

 DECLARE_SERVICE_INFO ()
 
 OComponentResultSet (file::OStatement_Base *pStmt, connectivity::OSQLParseTreeIterator &_aSQLIterator)
 
- Public Member Functions inherited from connectivity::file::OResultSet
 DECLARE_SERVICE_INFO ()
 
 OResultSet (OStatement_Base *pStmt, connectivity::OSQLParseTreeIterator &_aSQLIterator)
 
virtual void SAL_CALL disposing () override final
 
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::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual sal_Bool SAL_CALL next () override
 
virtual sal_Bool SAL_CALL isBeforeFirst () override
 
virtual sal_Bool SAL_CALL isAfterLast () override
 
virtual sal_Bool SAL_CALL isFirst () override
 
virtual sal_Bool SAL_CALL isLast () override
 
virtual void SAL_CALL beforeFirst () override
 
virtual void SAL_CALL afterLast () override
 
virtual sal_Bool SAL_CALL first () override
 
virtual sal_Bool SAL_CALL last () override
 
virtual sal_Int32 SAL_CALL getRow () override
 
virtual sal_Bool SAL_CALL absolute (sal_Int32 row) override
 
virtual sal_Bool SAL_CALL relative (sal_Int32 rows) override
 
virtual sal_Bool SAL_CALL previous () override
 
virtual void SAL_CALL refreshRow () override
 
virtual sal_Bool SAL_CALL rowUpdated () override
 
virtual sal_Bool SAL_CALL rowInserted () override
 
virtual sal_Bool SAL_CALL rowDeleted () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement () override
 
virtual sal_Bool SAL_CALL wasNull () override
 
virtual OUString SAL_CALL getString (sal_Int32 columnIndex) override
 
virtual sal_Bool SAL_CALL getBoolean (sal_Int32 columnIndex) override
 
virtual sal_Int8 SAL_CALL getByte (sal_Int32 columnIndex) override
 
virtual sal_Int16 SAL_CALL getShort (sal_Int32 columnIndex) override
 
virtual sal_Int32 SAL_CALL getInt (sal_Int32 columnIndex) override
 
virtual sal_Int64 SAL_CALL getLong (sal_Int32 columnIndex) override
 
virtual float SAL_CALL getFloat (sal_Int32 columnIndex) override
 
virtual double SAL_CALL getDouble (sal_Int32 columnIndex) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes (sal_Int32 columnIndex) override
 
virtual css::util::Date SAL_CALL getDate (sal_Int32 columnIndex) override
 
virtual css::util::Time SAL_CALL getTime (sal_Int32 columnIndex) override
 
virtual css::util::DateTime SAL_CALL getTimestamp (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream (sal_Int32 columnIndex) override
 
virtual css::uno::Any SAL_CALL getObject (sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
 
virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray (sal_Int32 columnIndex) override
 
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
virtual void SAL_CALL cancel () override
 
virtual void SAL_CALL close () override
 
virtual css::uno::Any SAL_CALL getWarnings () override
 
virtual void SAL_CALL clearWarnings () override
 
virtual void SAL_CALL insertRow () override
 
virtual void SAL_CALL updateRow () override
 
virtual void SAL_CALL deleteRow () override
 
virtual void SAL_CALL cancelRowUpdates () override
 
virtual void SAL_CALL moveToInsertRow () override
 
virtual void SAL_CALL moveToCurrentRow () override
 
virtual void SAL_CALL updateNull (sal_Int32 columnIndex) override
 
virtual void SAL_CALL updateBoolean (sal_Int32 columnIndex, sal_Bool x) override
 
virtual void SAL_CALL updateByte (sal_Int32 columnIndex, sal_Int8 x) override
 
virtual void SAL_CALL updateShort (sal_Int32 columnIndex, sal_Int16 x) override
 
virtual void SAL_CALL updateInt (sal_Int32 columnIndex, sal_Int32 x) override
 
virtual void SAL_CALL updateLong (sal_Int32 columnIndex, sal_Int64 x) override
 
virtual void SAL_CALL updateFloat (sal_Int32 columnIndex, float x) override
 
virtual void SAL_CALL updateDouble (sal_Int32 columnIndex, double x) override
 
virtual void SAL_CALL updateString (sal_Int32 columnIndex, const OUString &x) override
 
virtual void SAL_CALL updateBytes (sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 > &x) override
 
virtual void SAL_CALL updateDate (sal_Int32 columnIndex, const css::util::Date &x) override
 
virtual void SAL_CALL updateTime (sal_Int32 columnIndex, const css::util::Time &x) override
 
virtual void SAL_CALL updateTimestamp (sal_Int32 columnIndex, const css::util::DateTime &x) override
 
virtual void SAL_CALL updateBinaryStream (sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
virtual void SAL_CALL updateCharacterStream (sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
 
virtual void SAL_CALL updateObject (sal_Int32 columnIndex, const css::uno::Any &x) override
 
virtual void SAL_CALL updateNumericObject (sal_Int32 columnIndex, const css::uno::Any &x, sal_Int32 scale) override
 
virtual sal_Int32 SAL_CALL findColumn (const OUString &columnName) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
sal_Int32 mapColumn (sal_Int32 column)
 
void OpenImpl ()
 
void doTableSpecials (const OSQLTable &_xTable)
 
sal_Int32 getRowCountResult () const
 
void setEvaluationRow (const OValueRefRow &_aRow)
 
void setAssignValues (const ORefAssignValues &_aAssignValues)
 
void setBindingRow (const OValueRefRow &_aRow)
 
void setSelectRow (const OValueRefRow &_rRow)
 
void setColumnMapping (std::vector< sal_Int32 > &&_aColumnMapping)
 
void setSqlAnalyzer (OSQLAnalyzer *_pSQLAnalyzer)
 
void setOrderByColumns (std::vector< sal_Int32 > &&_aColumnOrderBy)
 
void setOrderByAscending (std::vector< TAscendingOrder > &&_aOrderbyAsc)
 
void setMetaData (const css::uno::Reference< css::sdbc::XResultSetMetaData > &_xMetaData)
 
virtual bool move (IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData) override
 
virtual sal_Int32 getDriverPos () const override
 
virtual bool isRowDeleted () const override
 
virtual bool move (Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData)=0
 
virtual sal_Int32 getDriverPos () const =0
 
virtual bool isRowDeleted () const =0
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OResultSet >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 
- Public Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
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
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual bool fillIndexValues (const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_xIndex) override
 
- Protected Member Functions inherited from connectivity::file::OResultSet
void construct ()
 
bool ExecuteRow (IResultSetHelper::Movement eFirstCursorPosition, sal_Int32 nOffset=1, bool bEvaluate=true, bool bRetrieveData=true)
 
std::unique_ptr< OKeyValueGetOrderbyKeyValue (OValueRefRow const &_rRow)
 
bool IsSorted () const
 
bool isCount () const
 
void checkIndex (sal_Int32 columnIndex)
 
const ORowSetValuegetValue (sal_Int32 columnIndex)
 
void updateValue (sal_Int32 columnIndex, const ORowSetValue &x)
 
void clearInsertRow ()
 
void sortRows ()
 
bool Move (IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, bool bRetrieveData)
 
virtual bool fillIndexValues (const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_xIndex)
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual ~OResultSet () override
 
- Protected Member Functions inherited from connectivity::IResultSetHelper
 ~IResultSetHelper ()
 
- 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
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 
- Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 >
 ~ImplHelper2 () SAL_NOEXCEPT
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const=0
 

Private Member Functions

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::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual css::uno::Any SAL_CALL getBookmark () override
 
virtual sal_Bool SAL_CALL moveToBookmark (const css::uno::Any &bookmark) override
 
virtual sal_Bool SAL_CALL moveRelativeToBookmark (const css::uno::Any &bookmark, sal_Int32 rows) override
 
virtual sal_Int32 SAL_CALL compareBookmarks (const css::uno::Any &first, const css::uno::Any &second) override
 
virtual sal_Bool SAL_CALL hasOrderedBookmarks () override
 
virtual sal_Int32 SAL_CALL hashBookmark (const css::uno::Any &bookmark) override
 
virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows (const css::uno::Sequence< css::uno::Any > &rows) override
 
virtual bool isRowDeleted () const override
 

Private Attributes

bool m_bBookmarkable
 

Additional Inherited Members

- Public Types inherited from connectivity::IResultSetHelper
enum  Movement {
  NEXT = 0 ,
  PRIOR ,
  FIRST ,
  LAST ,
  RELATIVE1 ,
  ABSOLUTE1 ,
  BOOKMARK
}
 
- Static Public Member Functions inherited from connectivity::file::OResultSet
static void setBoundedColumns (const OValueRefRow &_rRow, const OValueRefRow &_rSelectRow, const ::rtl::Reference< connectivity::OSQLColumns > &_rxColumns, const css::uno::Reference< css::container::XIndexAccess > &_xNames, bool _bSetColumnMapping, const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_xMetaData, std::vector< sal_Int32 > &_rColMapping)
 
- Static Protected Member Functions inherited from connectivity::file::OResultSet
static void initializeRow (OValueRefRow &_rRow, sal_Int32 _nColumnCount)
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OResultSet >
static std::mutextheMutex ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
static std::mutextheMutex ()
 
- Protected Attributes inherited from connectivity::file::OResultSet
std::vector< sal_Int32 > m_aColMapping
 
std::vector< sal_Int32 > m_aOrderbyColumnNumber
 
std::vector< TAscendingOrderm_aOrderbyAscending
 
OValueRefRow m_aSelectRow
 
OValueRefRow m_aRow
 
OValueRefRow m_aEvaluateRow
 
OValueRefRow m_aInsertRow
 
ORefAssignValues m_aAssignValues
 
OSkipDeletedSet m_aSkipDeletedSet
 
::rtl::Reference< OKeySetm_pFileSet
 
OKeySet::iterator m_aFileSetIter
 
std::unique_ptr< OSortIndexm_pSortIndex
 
::rtl::Reference< connectivity::OSQLColumnsm_xColumns
 
rtl::Reference< OFileTablem_pTable
 
connectivity::OSQLParseNodem_pParseTree
 
OSQLAnalyzerm_pSQLAnalyzer
 
connectivity::OSQLParseTreeIteratorm_aSQLIterator
 
sal_Int32 m_nFetchSize
 
sal_Int32 m_nResultSetType
 
sal_Int32 m_nFetchDirection
 
sal_Int32 m_nResultSetConcurrency
 
css::uno::Reference< css::uno::XInterface > m_xStatement
 
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData
 
css::uno::Reference< css::container::XNameAccess > m_xColNames
 
css::uno::Reference< css::container::XIndexAccess > m_xColsIdx
 
sal_Int32 m_nRowPos
 
sal_Int32 m_nFilePos
 
sal_Int32 m_nLastVisitedPos
 
sal_Int32 m_nRowCountResult
 
sal_Int32 m_nColumnCount
 
bool m_bWasNull
 
bool m_bInserted
 
bool m_bRowUpdated
 
bool m_bRowInserted
 
bool m_bRowDeleted
 
bool m_bShowDeleted
 
bool m_bIsCount
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OResultSet >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< class TYPE >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

ResultSet implementation for Writer tables and Calc sheets.

Definition at line 37 of file CResultSet.hxx.

Constructor & Destructor Documentation

◆ OComponentResultSet()

OComponentResultSet::OComponentResultSet ( file::OStatement_Base pStmt,
connectivity::OSQLParseTreeIterator _aSQLIterator 
)

Member Function Documentation

◆ acquire()

void SAL_CALL OComponentResultSet::acquire ( )
overrideprivatevirtualnoexcept

Reimplemented from connectivity::file::OResultSet.

Definition at line 156 of file CResultSet.cxx.

References connectivity::file::OResultSet::acquire().

◆ compareBookmarks()

sal_Int32 SAL_CALL OComponentResultSet::compareBookmarks ( const css::uno::Any &  first,
const css::uno::Any &  second 
)
overrideprivatevirtual

Definition at line 108 of file CResultSet.cxx.

◆ createArrayHelper()

cppu::IPropertyArrayHelper * OComponentResultSet::createArrayHelper ( ) const
overrideprotectedvirtual

◆ DECLARE_SERVICE_INFO()

connectivity::component::OComponentResultSet::DECLARE_SERVICE_INFO ( )

◆ deleteRows()

Sequence< sal_Int32 > SAL_CALL OComponentResultSet::deleteRows ( const css::uno::Sequence< css::uno::Any > &  rows)
overrideprivatevirtual

◆ fillIndexValues()

bool OComponentResultSet::fillIndexValues ( const css::uno::Reference< css::sdbcx::XColumnsSupplier > &  _xIndex)
overrideprotectedvirtual

Reimplemented from connectivity::file::OResultSet.

Definition at line 137 of file CResultSet.cxx.

◆ getBookmark()

Any SAL_CALL OComponentResultSet::getBookmark ( )
overrideprivatevirtual

◆ getInfoHelper()

cppu::IPropertyArrayHelper & OComponentResultSet::getInfoHelper ( )
overrideprotected

◆ getPropertySetInfo()

css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OComponentResultSet::getPropertySetInfo ( )
overrideprivatevirtual

Reimplemented from connectivity::file::OResultSet.

Definition at line 166 of file CResultSet.cxx.

References getInfoHelper().

◆ getTypes()

Sequence< Type > SAL_CALL OComponentResultSet::getTypes ( )
overrideprivatevirtual

◆ hashBookmark()

sal_Int32 SAL_CALL OComponentResultSet::hashBookmark ( const css::uno::Any &  bookmark)
overrideprivatevirtual

◆ hasOrderedBookmarks()

sal_Bool SAL_CALL OComponentResultSet::hasOrderedBookmarks ( )
overrideprivatevirtual

Definition at line 113 of file CResultSet.cxx.

◆ isRowDeleted()

virtual bool connectivity::component::OComponentResultSet::isRowDeleted ( ) const
inlineoverrideprivatevirtual

Reimplemented from connectivity::file::OResultSet.

Definition at line 73 of file CResultSet.hxx.

◆ moveRelativeToBookmark()

sal_Bool SAL_CALL OComponentResultSet::moveRelativeToBookmark ( const css::uno::Any &  bookmark,
sal_Int32  rows 
)
overrideprivatevirtual

◆ moveToBookmark()

sal_Bool SAL_CALL OComponentResultSet::moveToBookmark ( const css::uno::Any &  bookmark)
overrideprivatevirtual

◆ queryInterface()

Any SAL_CALL OComponentResultSet::queryInterface ( const css::uno::Type &  rType)
overrideprivatevirtual

◆ release()

void SAL_CALL OComponentResultSet::release ( )
overrideprivatevirtualnoexcept

Reimplemented from connectivity::file::OResultSet.

Definition at line 161 of file CResultSet.cxx.

References connectivity::file::OResultSet::release().

Member Data Documentation

◆ m_bBookmarkable

bool connectivity::component::OComponentResultSet::m_bBookmarkable
private

Definition at line 41 of file CResultSet.hxx.

Referenced by OComponentResultSet().


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