LibreOffice Module connectivity (master) 1
|
the class OSkipDeletedSet supports a general method to skip deleted rows More...
#include <TSkipDeletedSet.hxx>
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 |
IResultSetHelper * | m_pHelper |
bool | m_bDeletedVisible |
the class OSkipDeletedSet supports a general method to skip deleted rows
Definition at line 30 of file TSkipDeletedSet.hxx.
OSkipDeletedSet::OSkipDeletedSet | ( | IResultSetHelper * | _pHelper | ) |
Definition at line 27 of file TSkipDeletedSet.cxx.
References m_aBookmarksPositions.
OSkipDeletedSet::~OSkipDeletedSet | ( | ) |
Definition at line 34 of file TSkipDeletedSet.cxx.
References m_aBookmarksPositions.
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().
void OSkipDeletedSet::deletePosition | ( | sal_Int32 | _nPos | ) |
deletePosition deletes this position from the map and decrement all following positions
sal_Int32 | _nPos the logical position |
Definition at line 245 of file TSkipDeletedSet.cxx.
References m_aBookmarksPositions.
Referenced by connectivity::file::OResultSet::deleteRow().
sal_Int32 OSkipDeletedSet::getMappedPosition | ( | sal_Int32 | _nBookmark | ) | const |
getMappedPosition returns the mapped position of a logical position
sal_Int32 | _nBookmark the logical position |
Definition at line 231 of file TSkipDeletedSet.cxx.
References _nPos, and m_aBookmarksPositions.
Referenced by connectivity::file::OResultSet::getRow().
void OSkipDeletedSet::insertNewPosition | ( | sal_Int32 | _nPos | ) |
insertNewPosition adds a new position to the map
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().
|
private |
Definition at line 164 of file TSkipDeletedSet.cxx.
References _nPos, connectivity::IResultSetHelper::BOOKMARK, connectivity::IResultSetHelper::FIRST, connectivity::IResultSetHelper::getDriverPos(), i, connectivity::IResultSetHelper::isRowDeleted(), connectivity::IResultSetHelper::LAST, m_aBookmarksPositions, m_bDeletedVisible, m_pHelper, connectivity::IResultSetHelper::move(), connectivity::IResultSetHelper::NEXT, connectivity::IResultSetHelper::PRIOR, and skipDeleted().
Referenced by skipDeleted().
|
inline |
Definition at line 76 of file TSkipDeletedSet.hxx.
Referenced by connectivity::file::OResultSet::OResultSet().
bool OSkipDeletedSet::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
IResultSetHelper::Movement | _eCursorPosition in which direction the resultset should be moved sal_Int32 _nOffset the position relative to the movement sal_Bool _bRetrieveData is true when the current row should be filled which data |
Definition at line 40 of file TSkipDeletedSet.cxx.
References _nOffset, abs(), connectivity::IResultSetHelper::ABSOLUTE1, connectivity::IResultSetHelper::BOOKMARK, connectivity::IResultSetHelper::FIRST, connectivity::IResultSetHelper::getDriverPos(), connectivity::IResultSetHelper::isRowDeleted(), connectivity::IResultSetHelper::LAST, m_aBookmarksPositions, m_bDeletedVisible, m_pHelper, connectivity::IResultSetHelper::move(), moveAbsolute(), connectivity::IResultSetHelper::NEXT, connectivity::IResultSetHelper::PRIOR, connectivity::IResultSetHelper::RELATIVE1, and SAL_INFO.
Referenced by connectivity::file::OResultSet::absolute(), connectivity::file::OResultSet::first(), connectivity::file::OResultSet::insertRow(), connectivity::file::OResultSet::last(), moveAbsolute(), connectivity::file::OResultSet::next(), connectivity::file::OResultSet::previous(), and connectivity::file::OResultSet::relative().
|
private |
Definition at line 32 of file TSkipDeletedSet.hxx.
Referenced by clear(), deletePosition(), getMappedPosition(), insertNewPosition(), moveAbsolute(), OSkipDeletedSet(), skipDeleted(), and ~OSkipDeletedSet().
|
private |
Definition at line 34 of file TSkipDeletedSet.hxx.
Referenced by moveAbsolute(), and skipDeleted().
|
private |
Definition at line 33 of file TSkipDeletedSet.hxx.
Referenced by moveAbsolute(), and skipDeleted().