android.database
public
interface
android.database.CrossProcessCursor
android.database.CrossProcessCursor |
Cursor
|
Known Indirect Subclasses
AbstractCursor |
This is an abstract cursor class that handles a lot of the common code
that all cursors need to deal with and is provided for convenience reasons. |
AbstractWindowedCursor |
A base class for Cursors that store their data in CursorWindows. |
MatrixCursor |
A mutable cursor implementation backed by an array of Object s. |
MergeCursor |
A convience class that lets you present an array of Cursors as a single linear Cursor. |
SQLiteCursor |
A Cursor implementation that exposes results from a query on a
SQLiteDatabase. |
Summary
Public Methods
close,
copyStringToBuffer,
deactivate,
getBlob,
getColumnCount,
getColumnIndex,
getColumnIndexOrThrow,
getColumnName,
getColumnNames,
getCount,
getDouble,
getExtras,
getFloat,
getInt,
getLong,
getPosition,
getShort,
getString,
getWantsAllOnMoveCalls,
isAfterLast,
isBeforeFirst,
isClosed,
isFirst,
isLast,
isNull,
move,
moveToFirst,
moveToLast,
moveToNext,
moveToPosition,
moveToPrevious,
registerContentObserver,
registerDataSetObserver,
requery,
respond,
setNotificationUri,
unregisterContentObserver,
unregisterDataSetObserver
Details
Public Methods
public
void
fillWindow(int pos, CursorWindow winow)
copies cursor data into the window start at pos
returns a pre-filled window, return NULL if no such window
public
boolean
onMove(int oldPosition, int newPosition)
This function is called every time the cursor is successfully scrolled
to a new position, giving the subclass a chance to update any state it
may have. If it returns false the move function will also do so and the
cursor will scroll to the beforeFirst position.
Parameters
oldPosition
| the position that we're moving from |
newPosition
| the position that we're moving to |
Returns
- true if the move is successful, false otherwise