public class BaseCursor extends Object implements Cursor
Robolectric implementation of Cursor.
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING| Constructor and Description |
|---|
BaseCursor() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer) |
void |
deactivate() |
byte[] |
getBlob(int columnIndex) |
int |
getColumnCount() |
int |
getColumnIndex(String columnName) |
int |
getColumnIndexOrThrow(String columnName) |
String |
getColumnName(int columnIndex) |
String[] |
getColumnNames() |
int |
getCount() |
double |
getDouble(int columnIndex) |
Bundle |
getExtras() |
float |
getFloat(int columnIndex) |
int |
getInt(int columnIndex) |
long |
getLong(int columnIndex) |
Uri |
getNotificationUri() |
int |
getPosition() |
short |
getShort(int columnIndex) |
String |
getString(int columnIndex) |
int |
getType(int columnIndex) |
boolean |
getWantsAllOnMoveCalls() |
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isClosed() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
isNull(int columnIndex) |
boolean |
move(int offset) |
boolean |
moveToFirst() |
boolean |
moveToLast() |
boolean |
moveToNext() |
boolean |
moveToPosition(int position) |
boolean |
moveToPrevious() |
void |
registerContentObserver(ContentObserver observer) |
void |
registerDataSetObserver(DataSetObserver observer) |
boolean |
requery() |
Bundle |
respond(Bundle extras) |
void |
setExtras(Bundle extras) |
void |
setNotificationUri(ContentResolver cr,
Uri uri) |
void |
setQuery(Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder) |
void |
unregisterContentObserver(ContentObserver observer) |
void |
unregisterDataSetObserver(DataSetObserver observer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNotificationUris, setNotificationUrispublic int getPosition()
getPosition in interface Cursorpublic boolean moveToPosition(int position)
moveToPosition in interface Cursorpublic boolean moveToFirst()
moveToFirst in interface Cursorpublic boolean moveToLast()
moveToLast in interface Cursorpublic boolean moveToNext()
moveToNext in interface Cursorpublic boolean moveToPrevious()
moveToPrevious in interface Cursorpublic boolean isBeforeFirst()
isBeforeFirst in interface Cursorpublic boolean isAfterLast()
isAfterLast in interface Cursorpublic int getColumnIndex(String columnName)
getColumnIndex in interface Cursorpublic int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException
getColumnIndexOrThrow in interface CursorIllegalArgumentExceptionpublic String getColumnName(int columnIndex)
getColumnName in interface Cursorpublic String[] getColumnNames()
getColumnNames in interface Cursorpublic int getColumnCount()
getColumnCount in interface Cursorpublic void copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer)
copyStringToBuffer in interface Cursorpublic void deactivate()
deactivate in interface Cursorpublic void close()
public void registerContentObserver(ContentObserver observer)
registerContentObserver in interface Cursorpublic void unregisterContentObserver(ContentObserver observer)
unregisterContentObserver in interface Cursorpublic void registerDataSetObserver(DataSetObserver observer)
registerDataSetObserver in interface Cursorpublic void unregisterDataSetObserver(DataSetObserver observer)
unregisterDataSetObserver in interface Cursorpublic void setNotificationUri(ContentResolver cr, Uri uri)
setNotificationUri in interface Cursorpublic Uri getNotificationUri()
getNotificationUri in interface Cursorpublic boolean getWantsAllOnMoveCalls()
getWantsAllOnMoveCalls in interface Cursor