|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.healthmarketscience.jackcess.impl.CursorImpl
com.healthmarketscience.jackcess.impl.TableScanCursor
public class TableScanCursor
Simple un-indexed cursor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.healthmarketscience.jackcess.impl.CursorImpl |
|---|
CursorImpl.BaseIterator, CursorImpl.DirHandler, CursorImpl.IdImpl, CursorImpl.PositionImpl, CursorImpl.SavepointImpl |
| Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.Cursor |
|---|
Cursor.Id, Cursor.Position, Cursor.Savepoint |
| Field Summary |
|---|
| Fields inherited from class com.healthmarketscience.jackcess.impl.CursorImpl |
|---|
_columnMatcher, _curPos, _prevPos, MOVE_FORWARD, MOVE_REVERSE |
| Constructor Summary | |
|---|---|
TableScanCursor(TableImpl table)
|
|
| Method Summary | |
|---|---|
protected CursorImpl.PositionImpl |
findAnotherPosition(TableImpl.RowState rowState,
CursorImpl.PositionImpl curPos,
boolean moveForward)
Finds the next non-deleted row after the given row (as defined by this cursor) and returns the id of the row, where "next" may be backwards if moveForward is false. |
protected com.healthmarketscience.jackcess.impl.TableScanCursor.ScanDirHandler |
getDirHandler(boolean moveForward)
Returns the DirHandler for the given movement direction. |
protected CursorImpl.PositionImpl |
getRowPosition(RowIdImpl rowId)
Returns the appropriate position information for the given row (which is the current row and is valid). |
protected boolean |
isUpToDate()
Returns true if this cursor is up-to-date with respect to the
relevant table and related table objects, false otherwise. |
protected void |
reset(boolean moveForward)
Resets this cursor for traversing the given direction. |
protected void |
restorePositionImpl(CursorImpl.PositionImpl curPos,
CursorImpl.PositionImpl prevPos)
Restores a current and previous position for the cursor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableScanCursor(TableImpl table)
| Method Detail |
|---|
protected com.healthmarketscience.jackcess.impl.TableScanCursor.ScanDirHandler getDirHandler(boolean moveForward)
CursorImpl
getDirHandler in class CursorImplprotected boolean isUpToDate()
CursorImpltrue if this cursor is up-to-date with respect to the
relevant table and related table objects, false otherwise.
isUpToDate in class CursorImplprotected void reset(boolean moveForward)
CursorImpl
reset in class CursorImpl
protected void restorePositionImpl(CursorImpl.PositionImpl curPos,
CursorImpl.PositionImpl prevPos)
throws IOException
CursorImpl
restorePositionImpl in class CursorImplIOException
protected CursorImpl.PositionImpl getRowPosition(RowIdImpl rowId)
throws IOException
CursorImpl
getRowPosition in class CursorImplIOException
protected CursorImpl.PositionImpl findAnotherPosition(TableImpl.RowState rowState,
CursorImpl.PositionImpl curPos,
boolean moveForward)
throws IOException
CursorImplfalse. If there are no more rows, the returned
rowId should equal the value returned by CursorImpl.getLastPosition() if
moving forward and CursorImpl.getFirstPosition() if moving backward.
findAnotherPosition in class CursorImplIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||