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, wait
getNotificationUris, setNotificationUris
public int getPosition()
getPosition
in interface Cursor
public boolean moveToPosition(int position)
moveToPosition
in interface Cursor
public boolean moveToFirst()
moveToFirst
in interface Cursor
public boolean moveToLast()
moveToLast
in interface Cursor
public boolean moveToNext()
moveToNext
in interface Cursor
public boolean moveToPrevious()
moveToPrevious
in interface Cursor
public boolean isBeforeFirst()
isBeforeFirst
in interface Cursor
public boolean isAfterLast()
isAfterLast
in interface Cursor
public int getColumnIndex(String columnName)
getColumnIndex
in interface Cursor
public int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException
getColumnIndexOrThrow
in interface Cursor
IllegalArgumentException
public String getColumnName(int columnIndex)
getColumnName
in interface Cursor
public String[] getColumnNames()
getColumnNames
in interface Cursor
public int getColumnCount()
getColumnCount
in interface Cursor
public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
copyStringToBuffer
in interface Cursor
public void deactivate()
deactivate
in interface Cursor
public void close()
public void registerContentObserver(ContentObserver observer)
registerContentObserver
in interface Cursor
public void unregisterContentObserver(ContentObserver observer)
unregisterContentObserver
in interface Cursor
public void registerDataSetObserver(DataSetObserver observer)
registerDataSetObserver
in interface Cursor
public void unregisterDataSetObserver(DataSetObserver observer)
unregisterDataSetObserver
in interface Cursor
public void setNotificationUri(ContentResolver cr, Uri uri)
setNotificationUri
in interface Cursor
public Uri getNotificationUri()
getNotificationUri
in interface Cursor
public boolean getWantsAllOnMoveCalls()
getWantsAllOnMoveCalls
in interface Cursor