|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.healthmarketscience.jackcess.CursorBuilder
public class CursorBuilder
Builder style class for constructing a Cursor. By default, a cursor is created at the beginning of the table, and any start/end rows are inclusive.
Constructor Summary | |
---|---|
CursorBuilder(Table table)
|
Method Summary | |
---|---|
CursorBuilder |
afterLast()
Sets the cursor so that it will start at the end (unless a savepoint is given). |
CursorBuilder |
beforeFirst()
Sets the cursor so that it will start at the beginning (unless a savepoint is given). |
CursorBuilder |
restoreSavepoint(Cursor.Savepoint savepoint)
Sets a savepoint to restore for the initial position of the cursor. |
CursorBuilder |
setEndEntry(java.lang.Object... endEntry)
Sets the ending row for a range based index cursor to the given entry (where the given values correspond to the index's columns). |
CursorBuilder |
setEndRow(java.lang.Object[] endRow)
Sets the ending row for a range based index cursor. |
CursorBuilder |
setEndRowInclusive(boolean inclusive)
Sets whether the ending row for a range based index cursor is inclusive or exclusive. |
CursorBuilder |
setIndex(Index index)
Sets an index to use for the cursor. |
CursorBuilder |
setIndexByColumns(Column... columns)
Sets an index to use for the cursor by searching the table for an index with exactly the given columns. |
CursorBuilder |
setIndexByName(java.lang.String indexName)
Sets an index to use for the cursor by searching the table for an index with the given name. |
CursorBuilder |
setSpecificEntry(java.lang.Object... specificEntry)
Sets the starting and ending row for a range based index cursor to the given entry (where the given values correspond to the index's columns). |
CursorBuilder |
setSpecificRow(java.lang.Object[] specificRow)
Sets the starting and ending row for a range based index cursor. |
CursorBuilder |
setStartEntry(java.lang.Object... startEntry)
Sets the starting row for a range based index cursor to the given entry (where the given values correspond to the index's columns). |
CursorBuilder |
setStartRow(java.lang.Object[] startRow)
Sets the starting row for a range based index cursor. |
CursorBuilder |
setStartRowInclusive(boolean inclusive)
Sets whether the starting row for a range based index cursor is inclusive or exclusive. |
Cursor |
toCursor()
Returns a new cursor for the table, constructed to the given specifications. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CursorBuilder(Table table)
Method Detail |
---|
public CursorBuilder beforeFirst()
public CursorBuilder afterLast()
public CursorBuilder restoreSavepoint(Cursor.Savepoint savepoint)
public CursorBuilder setIndex(Index index)
public CursorBuilder setIndexByName(java.lang.String indexName)
java.lang.IllegalArgumentException
- if no index can be found on the table with the given namepublic CursorBuilder setIndexByColumns(Column... columns)
java.lang.IllegalArgumentException
- if no index can be found on the table with the given namepublic CursorBuilder setSpecificRow(java.lang.Object[] specificRow)
A valid index must be specified before calling this method.
public CursorBuilder setSpecificEntry(java.lang.Object... specificEntry)
A valid index must be specified before calling this method.
public CursorBuilder setStartRow(java.lang.Object[] startRow)
A valid index must be specified before calling this method.
public CursorBuilder setStartEntry(java.lang.Object... startEntry)
A valid index must be specified before calling this method.
public CursorBuilder setStartRowInclusive(boolean inclusive)
public CursorBuilder setEndRow(java.lang.Object[] endRow)
A valid index must be specified before calling this method.
public CursorBuilder setEndEntry(java.lang.Object... endEntry)
A valid index must be specified before calling this method.
public CursorBuilder setEndRowInclusive(boolean inclusive)
public Cursor toCursor() throws java.io.IOException
java.io.IOException
|
Elexis API documentationVersion 2.1.6 as of January 22 2012 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |