|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.database.AbstractCursor
android.database.AbstractWindowedCursor
org.h2.android.H2Cursor
public class H2Cursor
A cursor implementation.
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void close()
android.database.Cursor
public void deactivate()
android.database.Cursor
public int getColumnIndex(java.lang.String columnName)
android.database.Cursor
columnName
- the name of the column
public java.lang.String[] getColumnNames()
android.database.Cursor
public int getCount()
android.database.Cursor
public H2Database getDatabase()
public boolean onMove(int oldPosition, int newPosition)
oldPosition
- the previous positionnewPosition
- the new position
public void registerDataSetObserver(android.database.DataSetObserver observer)
android.database.Cursor
observer
- the observerpublic boolean requery()
android.database.Cursor
public 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.Cursor
offset
- the row offset
public void copyStringToBuffer(int columnIndex, android.database.CharArrayBuffer buffer)
android.database.Cursor
public byte[] getBlob(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public int getColumnCount()
android.database.Cursor
public int getColumnIndexOrThrow(java.lang.String columnName)
android.database.Cursor
columnName
- the column name
public java.lang.String getColumnName(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public double getDouble(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public android.os.Bundle getExtras()
android.database.Cursor
public float getFloat(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public int getInt(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public long getLong(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public int getPosition()
android.database.Cursor
public short getShort(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public java.lang.String getString(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public boolean getWantsAllOnMoveCalls()
android.database.Cursor
public boolean isAfterLast()
android.database.Cursor
public boolean isBeforeFirst()
android.database.Cursor
public boolean isClosed()
android.database.Cursor
public boolean isFirst()
android.database.Cursor
public boolean isLast()
android.database.Cursor
public boolean isNull(int columnIndex)
android.database.Cursor
columnIndex
- the column index (0, 1,...)
public boolean moveToFirst()
android.database.Cursor
public boolean moveToLast()
android.database.Cursor
public boolean moveToNext()
android.database.Cursor
public boolean moveToPosition(int position)
android.database.Cursor
position
- TODO
public boolean moveToPrevious()
android.database.Cursor
public void registerContentObserver(android.database.ContentObserver observer)
android.database.Cursor
observer
- TODOpublic android.os.Bundle respond(android.os.Bundle extras)
android.database.Cursor
extras
- TODO
public void setNotificationUri(android.content.ContentResolver cr, android.net.Uri uri)
android.database.Cursor
cr
- TODOuri
- TODOpublic void unregisterContentObserver(android.database.ContentObserver observer)
android.database.Cursor
observer
- TODOpublic void unregisterDataSetObserver(android.database.DataSetObserver observer)
android.database.Cursor
observer
- TODO
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |