Interface Cursor
public interface Cursor
A cursor that reads progressively rows from the database, it is useful for reading very large result sets.
-
Method Summary
Modifier and TypeMethodDescriptionclose()Release the cursor.booleanhasMore()Returnstruewhen the cursor has results in progress and theread(int)should be called to retrieve them.booleanisClosed()read(int count) Read rows from the cursor, the result is provided asynchronously to thehandler.default RowDescriptorDescribes rows loaded withread(int).
-
Method Details
-
rowDescriptor
Describes rows loaded withread(int).This returns
nulluntil the first set of rows is fetched from the database. -
read
-
hasMore
boolean hasMore()Returnstruewhen the cursor has results in progress and theread(int)should be called to retrieve them.- Returns:
- whether the cursor has more results,
-
close
-
isClosed
boolean isClosed()- Returns:
- whether the cursor is closed
-