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

the class OSkipDeletedSet supports a general method to skip deleted rows More...

#include <TSkipDeletedSet.hxx>

Collaboration diagram for connectivity::OSkipDeletedSet:
[legend]

Public Member Functions

 OSkipDeletedSet (IResultSetHelper *_pHelper)
 
 ~OSkipDeletedSet ()
 
bool skipDeleted (IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData)
 skipDeleted moves the resultset to the position defined by the parameters it guarantees that the row isn't deleted More...
 
void clear ()
 clear the map and the vector used in this class More...
 
sal_Int32 getMappedPosition (sal_Int32 _nBookmark) const
 getMappedPosition returns the mapped position of a logical position More...
 
void insertNewPosition (sal_Int32 _nPos)
 insertNewPosition adds a new position to the map More...
 
void deletePosition (sal_Int32 _nPos)
 deletePosition deletes this position from the map and decrement all following positions More...
 
void SetDeletedVisible (bool _bDeletedVisible)
 

Private Member Functions

bool moveAbsolute (sal_Int32 _nOffset, bool _bRetrieveData)
 

Private Attributes

std::vector< sal_Int32 > m_aBookmarksPositions
 
IResultSetHelperm_pHelper
 
bool m_bDeletedVisible
 

Detailed Description

the class OSkipDeletedSet supports a general method to skip deleted rows

Definition at line 30 of file TSkipDeletedSet.hxx.

Constructor & Destructor Documentation

◆ OSkipDeletedSet()

OSkipDeletedSet::OSkipDeletedSet ( IResultSetHelper _pHelper)

Definition at line 27 of file TSkipDeletedSet.cxx.

References m_aBookmarksPositions.

◆ ~OSkipDeletedSet()

OSkipDeletedSet::~OSkipDeletedSet ( )

Definition at line 34 of file TSkipDeletedSet.cxx.

References m_aBookmarksPositions.

Member Function Documentation

◆ clear()

void OSkipDeletedSet::clear ( )

clear the map and the vector used in this class

Definition at line 226 of file TSkipDeletedSet.cxx.

References m_aBookmarksPositions.

Referenced by connectivity::file::OResultSet::disposing().

◆ deletePosition()

void OSkipDeletedSet::deletePosition ( sal_Int32  _nPos)

deletePosition deletes this position from the map and decrement all following positions

Parameters
sal_Int32_nPos the logical position

Definition at line 245 of file TSkipDeletedSet.cxx.

References m_aBookmarksPositions.

Referenced by connectivity::file::OResultSet::deleteRow().

◆ getMappedPosition()

sal_Int32 OSkipDeletedSet::getMappedPosition ( sal_Int32  _nBookmark) const

getMappedPosition returns the mapped position of a logical position

Parameters
sal_Int32_nBookmark the logical position
Returns
the mapped position

Definition at line 231 of file TSkipDeletedSet.cxx.

References _nPos, and m_aBookmarksPositions.

Referenced by connectivity::file::OResultSet::getRow().

◆ insertNewPosition()

void OSkipDeletedSet::insertNewPosition ( sal_Int32  _nPos)

insertNewPosition adds a new position to the map

Parameters
sal_Int32_nPos the logical position

Definition at line 240 of file TSkipDeletedSet.cxx.

References _nPos, and m_aBookmarksPositions.

Referenced by connectivity::file::OResultSet::insertRow().

◆ moveAbsolute()

bool OSkipDeletedSet::moveAbsolute ( sal_Int32  _nOffset,
bool  _bRetrieveData 
)
private

◆ SetDeletedVisible()

void connectivity::OSkipDeletedSet::SetDeletedVisible ( bool  _bDeletedVisible)
inline

Definition at line 76 of file TSkipDeletedSet.hxx.

Referenced by connectivity::file::OResultSet::OResultSet().

◆ skipDeleted()

bool OSkipDeletedSet::skipDeleted ( IResultSetHelper::Movement  _eCursorPosition,
sal_Int32  _nOffset,
bool  _bRetrieveData 
)

Member Data Documentation

◆ m_aBookmarksPositions

std::vector<sal_Int32> connectivity::OSkipDeletedSet::m_aBookmarksPositions
private

◆ m_bDeletedVisible

bool connectivity::OSkipDeletedSet::m_bDeletedVisible
private

Definition at line 34 of file TSkipDeletedSet.hxx.

Referenced by moveAbsolute(), and skipDeleted().

◆ m_pHelper

IResultSetHelper* connectivity::OSkipDeletedSet::m_pHelper
private

Definition at line 33 of file TSkipDeletedSet.hxx.

Referenced by moveAbsolute(), and skipDeleted().


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