LibreOffice Module ucb (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SortedResultSet Class Reference

#include <sortresult.hxx>

Inheritance diagram for SortedResultSet:
[legend]
Collaboration diagram for SortedResultSet:
[legend]

Public Member Functions

 SortedResultSet (css::uno::Reference< css::sdbc::XResultSet > const &aResult)
 
virtual ~SortedResultSet () override
 
sal_Int32 GetCount () const
 
void CopyData (SortedResultSet *pSource)
 
void Initialize (const css::uno::Sequence< css::ucb::NumberedSortingInfo > &xSortInfo, const css::uno::Reference< css::ucb::XAnyCompareFactory > &xCompFac)
 
void CheckProperties (sal_Int32 nOldCount, bool bWasFinal)
 
void InsertNew (sal_Int32 nPos, sal_Int32 nCount)
 
void SetChanged (sal_Int32 nPos, sal_Int32 nCount)
 
void Remove (sal_Int32 nPos, sal_Int32 nCount, EventList *pList)
 
void Move (sal_Int32 nPos, sal_Int32 nCount, sal_Int32 nOffset)
 
void ResortModified (EventList *pList)
 
void ResortNew (EventList *pList)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override
 
virtual OUString SAL_CALL queryContentIdentifierString () override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL queryContentIdentifier () override
 
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent () 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
 moves the cursor to the given row number in the result set. More...
 
virtual sal_Bool SAL_CALL relative (sal_Int32 rows) override
 moves the cursor a relative number of rows, either positive or negative. More...
 
virtual sal_Bool SAL_CALL previous () override
 moves the cursor to the previous row in the result set. More...
 
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 void SAL_CALL close () override
 
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &PropertyName, const css::uno::Any &Value) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &Listener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &Listener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &Listener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 

Private Member Functions

sal_Int32 FindPos (SortListData const *pEntry, sal_IntPtr nStart, sal_IntPtr nEnd)
 
sal_Int32 Compare (SortListData const *pOne, SortListData const *pTwo)
 
void BuildSortInfo (const css::uno::Reference< css::sdbc::XResultSet > &aResult, const css::uno::Sequence< css::ucb::NumberedSortingInfo > &xSortInfo, const css::uno::Reference< css::ucb::XAnyCompareFactory > &xCompFac)
 
sal_Int32 CompareImpl (const css::uno::Reference< css::sdbc::XResultSet > &xResultOne, const css::uno::Reference< css::sdbc::XResultSet > &xResultTwo, sal_Int32 nIndexOne, sal_Int32 nIndexTwo)
 
void PropertyChanged (const css::beans::PropertyChangeEvent &rEvt)
 

Static Private Member Functions

static sal_Int32 CompareImpl (const css::uno::Reference< css::sdbc::XResultSet > &xResultOne, const css::uno::Reference< css::sdbc::XResultSet > &xResultTwo, sal_Int32 nIndexOne, sal_Int32 nIndexTwo, SortInfo const *pSortInfo)
 

Private Attributes

comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maDisposeEventListeners
 
comphelper::OMultiTypeInterfaceContainerHelperVar4< OUString, css::beans::XPropertyChangeListener > maPropChangeListeners
 
comphelper::OMultiTypeInterfaceContainerHelperVar4< OUString, css::beans::XVetoableChangeListener > maVetoChangeListeners
 
css::uno::Reference< css::sdbc::XResultSet > mxOriginal
 
css::uno::Reference< css::sdbc::XResultSet > mxOther
 
rtl::Reference< SRSPropertySetInfompPropSetInfo
 
SortInfompSortInfo
 
std::mutex maMutex
 
SortedEntryList maS2O
 
std::deque< sal_IntPtr > m_O2S
 
std::deque< SortListData * > m_ModList
 maps the original Entries to the sorted ones More...
 
sal_Int32 mnLastSort
 keeps track of modified entries More...
 
sal_Int32 mnCurEntry
 
sal_Int32 mnCount
 
bool mbIsCopy
 

Detailed Description

Definition at line 88 of file sortresult.hxx.

Constructor & Destructor Documentation

◆ SortedResultSet()

SortedResultSet::SortedResultSet ( css::uno::Reference< css::sdbc::XResultSet > const &  aResult)

Definition at line 85 of file sortresult.cxx.

References mbIsCopy, mnCount, mnCurEntry, mnLastSort, mpSortInfo, and mxOriginal.

◆ ~SortedResultSet()

SortedResultSet::~SortedResultSet ( )
overridevirtual

Definition at line 96 of file sortresult.cxx.

References mbIsCopy, SortInfo::mpNext, mpPropSetInfo, mpSortInfo, mxOriginal, and mxOther.

Member Function Documentation

◆ absolute()

sal_Bool SAL_CALL SortedResultSet::absolute ( sal_Int32  row)
overridevirtual

moves the cursor to the given row number in the result set.

If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set. The first row is row 1, the second is row 2, and so on.

If the given row number is negative, the cursor moves to an absolute row position with respect to the end of the result set. For example, calling moveToPosition(-1) positions the cursor on the last row, moveToPosition(-2) indicates the next-to-last row, and so on.

An attempt to position the cursor beyond the first/last row in the result set leaves the cursor before/after the first/last row, respectively.

Note: Calling moveToPosition(1) is the same as calling moveToFirst(). Calling moveToPosition(-1) is the same as calling moveToLast().

Parameters
rowis the number of rows to move. Could be negative.
Returns
<TRUE> if the cursor is on a row; <FALSE> otherwise
Exceptions
SQLExceptionif a database access error occurs or if row is 0, or the result set type is FORWARD_ONLY.

Definition at line 356 of file sortresult.cxx.

References maMutex, maS2O, mnCount, mnCurEntry, mxOriginal, and nIndex.

◆ addEventListener()

void SAL_CALL SortedResultSet::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual

◆ addPropertyChangeListener()

void SAL_CALL SortedResultSet::addPropertyChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  Listener 
)
overridevirtual

◆ addVetoableChangeListener()

void SAL_CALL SortedResultSet::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  Listener 
)
overridevirtual

◆ afterLast()

void SAL_CALL SortedResultSet::afterLast ( )
overridevirtual

Definition at line 281 of file sortresult.cxx.

References maMutex, mnCount, mnCurEntry, and mxOriginal.

◆ beforeFirst()

void SAL_CALL SortedResultSet::beforeFirst ( )
overridevirtual

Definition at line 273 of file sortresult.cxx.

References maMutex, mnCurEntry, and mxOriginal.

◆ BuildSortInfo()

void SortedResultSet::BuildSortInfo ( const css::uno::Reference< css::sdbc::XResultSet > &  aResult,
const css::uno::Sequence< css::ucb::NumberedSortingInfo > &  xSortInfo,
const css::uno::Reference< css::ucb::XAnyCompareFactory > &  xCompFac 
)
private

◆ CheckProperties()

void SortedResultSet::CheckProperties ( sal_Int32  nOldCount,
bool  bWasFinal 
)

◆ close()

void SAL_CALL SortedResultSet::close ( )
overridevirtual

Definition at line 697 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ Compare()

sal_Int32 SortedResultSet::Compare ( SortListData const *  pOne,
SortListData const *  pTwo 
)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 1074 of file sortresult.cxx.

References CompareImpl(), SortListData::mbModified, SortListData::mnCurPos, SortListData::mnOldPos, mxOriginal, and mxOther.

Referenced by FindPos().

◆ CompareImpl() [1/2]

sal_Int32 SortedResultSet::CompareImpl ( const css::uno::Reference< css::sdbc::XResultSet > &  xResultOne,
const css::uno::Reference< css::sdbc::XResultSet > &  xResultTwo,
sal_Int32  nIndexOne,
sal_Int32  nIndexTwo 
)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

◆ CompareImpl() [2/2]

static sal_Int32 SortedResultSet::CompareImpl ( const css::uno::Reference< css::sdbc::XResultSet > &  xResultOne,
const css::uno::Reference< css::sdbc::XResultSet > &  xResultTwo,
sal_Int32  nIndexOne,
sal_Int32  nIndexTwo,
SortInfo const *  pSortInfo 
)
staticprivate
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Referenced by Compare(), and ResortModified().

◆ CopyData()

void SortedResultSet::CopyData ( SortedResultSet pSource)

◆ dispose()

void SAL_CALL SortedResultSet::dispose ( void  )
overridevirtual

◆ FindPos()

sal_Int32 SortedResultSet::FindPos ( SortListData const *  pEntry,
sal_IntPtr  nStart,
sal_IntPtr  nEnd 
)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 1112 of file sortresult.cxx.

References Compare(), SortedEntryList::GetData(), and maS2O.

Referenced by Initialize(), ResortModified(), and ResortNew().

◆ first()

sal_Bool SAL_CALL SortedResultSet::first ( )
overridevirtual

Definition at line 289 of file sortresult.cxx.

References maMutex, maS2O, mnCount, mnCurEntry, mxOriginal, and nIndex.

◆ getArray()

Reference< XArray > SAL_CALL SortedResultSet::getArray ( sal_Int32  columnIndex)
overridevirtual

Definition at line 687 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getBinaryStream()

Reference< XInputStream > SAL_CALL SortedResultSet::getBinaryStream ( sal_Int32  columnIndex)
overridevirtual

Definition at line 642 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getBlob()

Reference< XBlob > SAL_CALL SortedResultSet::getBlob ( sal_Int32  columnIndex)
overridevirtual

Definition at line 673 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getBoolean()

sal_Bool SAL_CALL SortedResultSet::getBoolean ( sal_Int32  columnIndex)
overridevirtual

Definition at line 565 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getByte()

sal_Int8 SAL_CALL SortedResultSet::getByte ( sal_Int32  columnIndex)
overridevirtual

Definition at line 572 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getBytes()

Sequence< sal_Int8 > SAL_CALL SortedResultSet::getBytes ( sal_Int32  columnIndex)
overridevirtual

Definition at line 613 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getCharacterStream()

Reference< XInputStream > SAL_CALL SortedResultSet::getCharacterStream ( sal_Int32  columnIndex)
overridevirtual

Definition at line 650 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getClob()

Reference< XClob > SAL_CALL SortedResultSet::getClob ( sal_Int32  columnIndex)
overridevirtual

Definition at line 680 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ GetCount()

sal_Int32 SortedResultSet::GetCount ( ) const
inline

Definition at line 145 of file sortresult.hxx.

References mnCount.

Referenced by CheckProperties(), and SortedDynamicResultSet::impl_notify().

◆ getDate()

Date SAL_CALL SortedResultSet::getDate ( sal_Int32  columnIndex)
overridevirtual

Definition at line 620 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getDouble()

double SAL_CALL SortedResultSet::getDouble ( sal_Int32  columnIndex)
overridevirtual

Definition at line 606 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getFloat()

float SAL_CALL SortedResultSet::getFloat ( sal_Int32  columnIndex)
overridevirtual

Definition at line 599 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getImplementationName()

OUString SAL_CALL SortedResultSet::getImplementationName ( )
overridevirtual

Definition at line 120 of file sortresult.cxx.

◆ getInt()

sal_Int32 SAL_CALL SortedResultSet::getInt ( sal_Int32  columnIndex)
overridevirtual

Definition at line 586 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getLong()

sal_Int64 SAL_CALL SortedResultSet::getLong ( sal_Int32  columnIndex)
overridevirtual

Definition at line 592 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getMetaData()

Reference< XResultSetMetaData > SAL_CALL SortedResultSet::getMetaData ( )
overridevirtual

Definition at line 707 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getObject()

Any SAL_CALL SortedResultSet::getObject ( sal_Int32  columnIndex,
const css::uno::Reference< css::container::XNameAccess > &  typeMap 
)
overridevirtual

Definition at line 657 of file sortresult.cxx.

References Any, maMutex, and mxOriginal.

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SAL_CALL SortedResultSet::getPropertySetInfo ( )
overridevirtual

Definition at line 718 of file sortresult.cxx.

References maMutex, and mpPropSetInfo.

◆ getPropertyValue()

Any SAL_CALL SortedResultSet::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getRef()

Reference< XRef > SAL_CALL SortedResultSet::getRef ( sal_Int32  columnIndex)
overridevirtual

Definition at line 666 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getRow()

sal_Int32 SAL_CALL SortedResultSet::getRow ( )
overridevirtual

Definition at line 325 of file sortresult.cxx.

References mnCurEntry.

◆ getShort()

sal_Int16 SAL_CALL SortedResultSet::getShort ( sal_Int32  columnIndex)
overridevirtual

Definition at line 579 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getStatement()

Reference< XInterface > SAL_CALL SortedResultSet::getStatement ( )
overridevirtual

Definition at line 535 of file sortresult.cxx.

References maMutex, mnCount, mnCurEntry, and mxOriginal.

◆ getString()

OUString SAL_CALL SortedResultSet::getString ( sal_Int32  columnIndex)
overridevirtual

Definition at line 558 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL SortedResultSet::getSupportedServiceNames ( )
overridevirtual

Definition at line 130 of file sortresult.cxx.

References RESULTSET_SERVICE_NAME.

◆ getTime()

Time SAL_CALL SortedResultSet::getTime ( sal_Int32  columnIndex)
overridevirtual

Definition at line 627 of file sortresult.cxx.

References maMutex, mxOriginal, and Time.

◆ getTimestamp()

DateTime SAL_CALL SortedResultSet::getTimestamp ( sal_Int32  columnIndex)
overridevirtual

Definition at line 634 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ Initialize()

void SortedResultSet::Initialize ( const css::uno::Sequence< css::ucb::NumberedSortingInfo > &  xSortInfo,
const css::uno::Reference< css::ucb::XAnyCompareFactory > &  xCompFac 
)

◆ InsertNew()

void SortedResultSet::InsertNew ( sal_Int32  nPos,
sal_Int32  nCount 
)

◆ isAfterLast()

sal_Bool SAL_CALL SortedResultSet::isAfterLast ( )
overridevirtual

Definition at line 246 of file sortresult.cxx.

References mnCount, and mnCurEntry.

◆ isBeforeFirst()

sal_Bool SAL_CALL SortedResultSet::isBeforeFirst ( )
overridevirtual

Definition at line 237 of file sortresult.cxx.

References mnCurEntry.

◆ isFirst()

sal_Bool SAL_CALL SortedResultSet::isFirst ( )
overridevirtual

Definition at line 255 of file sortresult.cxx.

References mnCurEntry.

◆ isLast()

sal_Bool SAL_CALL SortedResultSet::isLast ( )
overridevirtual

Definition at line 264 of file sortresult.cxx.

References mnCount, and mnCurEntry.

◆ last()

sal_Bool SAL_CALL SortedResultSet::last ( )
overridevirtual

Definition at line 307 of file sortresult.cxx.

References maMutex, maS2O, mnCount, mnCurEntry, mxOriginal, and nIndex.

◆ Move()

void SortedResultSet::Move ( sal_Int32  nPos,
sal_Int32  nCount,
sal_Int32  nOffset 
)

Definition at line 1369 of file sortresult.cxx.

References SortedEntryList::GetData(), i, m_O2S, maS2O, nCount, nPos, and pData.

Referenced by SortedDynamicResultSet::impl_notify().

◆ next()

sal_Bool SAL_CALL SortedResultSet::next ( )
overridevirtual

Definition at line 215 of file sortresult.cxx.

References maMutex, maS2O, mnCount, mnCurEntry, mxOriginal, and nIndex.

◆ previous()

sal_Bool SAL_CALL SortedResultSet::previous ( )
overridevirtual

moves the cursor to the previous row in the result set.

Note: previous() is not the same as relative(-1) because it makes sense to call previous() when there is no current row.

Returns
<TRUE> if the cursor is on a valid row; <FALSE> if it is off the result set.
Exceptions
SQLExceptionif a database access error occurs or the result set type is FORWARD_ONLY.

Definition at line 462 of file sortresult.cxx.

References maMutex, maS2O, mnCount, mnCurEntry, mxOriginal, and nIndex.

◆ PropertyChanged()

void SortedResultSet::PropertyChanged ( const css::beans::PropertyChangeEvent &  rEvt)
private

◆ queryContent()

Reference< XContent > SAL_CALL SortedResultSet::queryContent ( )
overridevirtual

Definition at line 206 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ queryContentIdentifier()

Reference< XContentIdentifier > SAL_CALL SortedResultSet::queryContentIdentifier ( )
overridevirtual

Definition at line 198 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ queryContentIdentifierString()

OUString SAL_CALL SortedResultSet::queryContentIdentifierString ( )
overridevirtual

Definition at line 190 of file sortresult.cxx.

References maMutex, and mxOriginal.

◆ refreshRow()

void SAL_CALL SortedResultSet::refreshRow ( )
overridevirtual

Definition at line 483 of file sortresult.cxx.

References maMutex, mnCount, mnCurEntry, and mxOriginal.

◆ relative()

sal_Bool SAL_CALL SortedResultSet::relative ( sal_Int32  rows)
overridevirtual

moves the cursor a relative number of rows, either positive or negative.

Attempting to move beyond the first/last row in the result set positions the cursor before/after the first/last row. Calling moveRelative(0) is valid, but does not change the cursor position.

Note: Calling moveRelative(1) is different from calling moveNext() because is makes sense to call moveNext() when there is no current row, for example, when the cursor is positioned before the first row or after the last row of the result set.

Parameters
rowsis the number of rows to move. Could be negative.
Returns
<TRUE> if the cursor is on a valid row; <FALSE> if it is off the result set.
Exceptions
SQLExceptionif a database access error occurs or if there is no current row, or the result set type is FORWARD_ONLY.

Definition at line 418 of file sortresult.cxx.

References maMutex, maS2O, mnCount, mnCurEntry, and mxOriginal.

◆ Remove()

void SortedResultSet::Remove ( sal_Int32  nPos,
sal_Int32  nCount,
EventList pList 
)

◆ removeEventListener()

void SAL_CALL SortedResultSet::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual

◆ removePropertyChangeListener()

void SAL_CALL SortedResultSet::removePropertyChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  Listener 
)
overridevirtual

◆ removeVetoableChangeListener()

void SAL_CALL SortedResultSet::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ ResortModified()

void SortedResultSet::ResortModified ( EventList pList)

◆ ResortNew()

void SortedResultSet::ResortNew ( EventList pList)

◆ rowDeleted()

sal_Bool SAL_CALL SortedResultSet::rowDeleted ( )
overridevirtual

Definition at line 522 of file sortresult.cxx.

References maMutex, mnCount, mnCurEntry, and mxOriginal.

◆ rowInserted()

sal_Bool SAL_CALL SortedResultSet::rowInserted ( )
overridevirtual

Definition at line 509 of file sortresult.cxx.

References maMutex, mnCount, mnCurEntry, and mxOriginal.

◆ rowUpdated()

sal_Bool SAL_CALL SortedResultSet::rowUpdated ( )
overridevirtual

Definition at line 496 of file sortresult.cxx.

References maMutex, mnCount, mnCurEntry, and mxOriginal.

◆ SetChanged()

void SortedResultSet::SetChanged ( sal_Int32  nPos,
sal_Int32  nCount 
)

◆ setPropertyValue()

void SAL_CALL SortedResultSet::setPropertyValue ( const OUString &  PropertyName,
const css::uno::Any &  Value 
)
overridevirtual

Definition at line 731 of file sortresult.cxx.

◆ supportsService()

sal_Bool SAL_CALL SortedResultSet::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 125 of file sortresult.cxx.

References ServiceName, and cppu::supportsService().

◆ wasNull()

sal_Bool SAL_CALL SortedResultSet::wasNull ( )
overridevirtual

Definition at line 551 of file sortresult.cxx.

References maMutex, and mxOriginal.

Member Data Documentation

◆ m_ModList

std::deque<SortListData*> SortedResultSet::m_ModList
private

maps the original Entries to the sorted ones

Definition at line 110 of file sortresult.hxx.

Referenced by CopyData(), Remove(), ResortModified(), ResortNew(), and SetChanged().

◆ m_O2S

std::deque<sal_IntPtr> SortedResultSet::m_O2S
private

◆ maDisposeEventListeners

comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> SortedResultSet::maDisposeEventListeners
private

Definition at line 98 of file sortresult.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ maMutex

std::mutex SortedResultSet::maMutex
private

◆ maPropChangeListeners

comphelper::OMultiTypeInterfaceContainerHelperVar4<OUString, css::beans::XPropertyChangeListener> SortedResultSet::maPropChangeListeners
private

◆ maS2O

SortedEntryList SortedResultSet::maS2O
private

◆ maVetoChangeListeners

comphelper::OMultiTypeInterfaceContainerHelperVar4<OUString, css::beans::XVetoableChangeListener> SortedResultSet::maVetoChangeListeners
private

◆ mbIsCopy

bool SortedResultSet::mbIsCopy
private

Definition at line 114 of file sortresult.hxx.

Referenced by CopyData(), SortedResultSet(), and ~SortedResultSet().

◆ mnCount

sal_Int32 SortedResultSet::mnCount
private

◆ mnCurEntry

sal_Int32 SortedResultSet::mnCurEntry
private

◆ mnLastSort

sal_Int32 SortedResultSet::mnLastSort
private

keeps track of modified entries

Definition at line 111 of file sortresult.hxx.

Referenced by CopyData(), Remove(), ResortModified(), ResortNew(), SetChanged(), and SortedResultSet().

◆ mpPropSetInfo

rtl::Reference<SRSPropertySetInfo> SortedResultSet::mpPropSetInfo
private

Definition at line 105 of file sortresult.hxx.

Referenced by getPropertySetInfo(), and ~SortedResultSet().

◆ mpSortInfo

SortInfo* SortedResultSet::mpSortInfo
private

Definition at line 106 of file sortresult.hxx.

Referenced by BuildSortInfo(), CopyData(), SortedResultSet(), and ~SortedResultSet().

◆ mxOriginal

css::uno::Reference< css::sdbc::XResultSet > SortedResultSet::mxOriginal
private

◆ mxOther

css::uno::Reference< css::sdbc::XResultSet > SortedResultSet::mxOther
private

Definition at line 103 of file sortresult.hxx.

Referenced by Compare(), CopyData(), dispose(), ResortModified(), and ~SortedResultSet().


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