public class H2Cursor
extends android.database.AbstractWindowedCursor
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the cursor.
|
void |
copyStringToBuffer(int columnIndex,
android.database.CharArrayBuffer buffer)
TODO
|
void |
deactivate()
Deactivate the cursor.
|
byte[] |
getBlob(int columnIndex)
Get the value from the current row.
|
int |
getColumnCount()
Get the number of columns in the result.
|
int |
getColumnIndex(java.lang.String columnName)
Get the column index.
|
int |
getColumnIndexOrThrow(java.lang.String columnName)
Get the column index for the given column name, or throw an exception if
not found.
|
java.lang.String |
getColumnName(int columnIndex)
Get the name of the given column.
|
java.lang.String[] |
getColumnNames()
Get the column names.
|
int |
getCount()
Get the row count.
|
H2Database |
getDatabase()
Get the database that created this cursor.
|
double |
getDouble(int columnIndex)
Get the value from the current row.
|
android.os.Bundle |
getExtras()
TODO
|
float |
getFloat(int columnIndex)
Get the value from the current row.
|
int |
getInt(int columnIndex)
Get the value from the current row.
|
long |
getLong(int columnIndex)
Get the value from the current row.
|
int |
getPosition()
Get the current row number
|
short |
getShort(int columnIndex)
Get the value from the current row.
|
java.lang.String |
getString(int columnIndex)
Get the value from the current row.
|
boolean |
getWantsAllOnMoveCalls()
The method onMove is only called if this method returns true.
|
boolean |
isAfterLast()
Check if the current position is past the last row.
|
boolean |
isBeforeFirst()
Check if the current position is before the first row.
|
boolean |
isClosed()
Check if the cursor is closed.
|
boolean |
isFirst()
Check if the current position is on the first row.
|
boolean |
isLast()
Check if the current position is on the last row.
|
boolean |
isNull(int columnIndex)
Check if the value of the current row is null.
|
boolean |
move(int offset)
Move the cursor by the given number of rows forward or backward.
|
boolean |
moveToFirst()
Move to the first row.
|
boolean |
moveToLast()
Move to the last row.
|
boolean |
moveToNext()
Move to the next row.
|
boolean |
moveToPosition(int position)
Move to the given row.
|
boolean |
moveToPrevious()
Move to the previous row.
|
boolean |
onMove(int oldPosition,
int newPosition)
The cursor moved to a new position.
|
void |
registerContentObserver(android.database.ContentObserver observer)
TODO
|
void |
registerDataSetObserver(android.database.DataSetObserver observer)
Register a data set observer.
|
boolean |
requery()
Re-run the query.
|
android.os.Bundle |
respond(android.os.Bundle extras)
TODO
|
void |
setNotificationUri(android.content.ContentResolver cr,
android.net.Uri uri)
TODO
|
void |
setSelectionArguments(java.lang.String[] selectionArgs)
Set the parameter values.
|
void |
setWindow(android.database.CursorWindow window)
TODO
|
void |
unregisterContentObserver(android.database.ContentObserver observer)
TODO
|
void |
unregisterDataSetObserver(android.database.DataSetObserver observer)
TODO
|
public void close()
android.database.Cursorpublic void deactivate()
android.database.Cursorpublic int getColumnIndex(java.lang.String columnName)
android.database.CursorcolumnName - the name of the columnpublic java.lang.String[] getColumnNames()
android.database.Cursorpublic int getCount()
android.database.Cursorpublic H2Database getDatabase()
public boolean onMove(int oldPosition,
int newPosition)
oldPosition - the previous positionnewPosition - the new positionpublic void registerDataSetObserver(android.database.DataSetObserver observer)
android.database.Cursorobserver - the observerpublic boolean requery()
android.database.Cursorpublic void setSelectionArguments(java.lang.String[] selectionArgs)
selectionArgs - the parameter valuespublic void setWindow(android.database.CursorWindow window)
window - the windowpublic boolean move(int offset)
android.database.Cursoroffset - the row offsetpublic void copyStringToBuffer(int columnIndex,
android.database.CharArrayBuffer buffer)
android.database.Cursorpublic byte[] getBlob(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public int getColumnCount()
android.database.Cursorpublic int getColumnIndexOrThrow(java.lang.String columnName)
android.database.CursorcolumnName - the column namepublic java.lang.String getColumnName(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public double getDouble(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public android.os.Bundle getExtras()
android.database.Cursorpublic float getFloat(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public int getInt(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public long getLong(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public int getPosition()
android.database.Cursorpublic short getShort(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public java.lang.String getString(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public boolean getWantsAllOnMoveCalls()
android.database.Cursorpublic boolean isAfterLast()
android.database.Cursorpublic boolean isBeforeFirst()
android.database.Cursorpublic boolean isClosed()
android.database.Cursorpublic boolean isFirst()
android.database.Cursorpublic boolean isLast()
android.database.Cursorpublic boolean isNull(int columnIndex)
android.database.CursorcolumnIndex - the column index (0, 1,...)public boolean moveToFirst()
android.database.Cursorpublic boolean moveToLast()
android.database.Cursorpublic boolean moveToNext()
android.database.Cursorpublic boolean moveToPosition(int position)
android.database.Cursorposition - TODOpublic boolean moveToPrevious()
android.database.Cursorpublic void registerContentObserver(android.database.ContentObserver observer)
android.database.Cursorobserver - TODOpublic android.os.Bundle respond(android.os.Bundle extras)
android.database.Cursorextras - TODOpublic void setNotificationUri(android.content.ContentResolver cr,
android.net.Uri uri)
android.database.Cursorcr - TODOuri - TODOpublic void unregisterContentObserver(android.database.ContentObserver observer)
android.database.Cursorobserver - TODOpublic void unregisterDataSetObserver(android.database.DataSetObserver observer)
android.database.Cursorobserver - TODO