public class BaseCursor
extends java.lang.Object
implements android.database.Cursor
Robolectric implementation of Cursor
.
Constructor and Description |
---|
BaseCursor() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
copyStringToBuffer(int columnIndex,
android.database.CharArrayBuffer buffer) |
void |
deactivate() |
byte[] |
getBlob(int columnIndex) |
int |
getColumnCount() |
int |
getColumnIndex(java.lang.String columnName) |
int |
getColumnIndexOrThrow(java.lang.String columnName) |
java.lang.String |
getColumnName(int columnIndex) |
java.lang.String[] |
getColumnNames() |
int |
getCount() |
double |
getDouble(int columnIndex) |
android.os.Bundle |
getExtras() |
float |
getFloat(int columnIndex) |
int |
getInt(int columnIndex) |
long |
getLong(int columnIndex) |
android.net.Uri |
getNotificationUri() |
int |
getPosition() |
short |
getShort(int columnIndex) |
java.lang.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(android.database.ContentObserver observer) |
void |
registerDataSetObserver(android.database.DataSetObserver observer) |
boolean |
requery() |
android.os.Bundle |
respond(android.os.Bundle extras) |
void |
setExtras(android.os.Bundle extras) |
void |
setNotificationUri(android.content.ContentResolver cr,
android.net.Uri uri) |
void |
setQuery(android.net.Uri uri,
java.lang.String[] projection,
java.lang.String selection,
java.lang.String[] selectionArgs,
java.lang.String sortOrder) |
void |
unregisterContentObserver(android.database.ContentObserver observer) |
void |
unregisterDataSetObserver(android.database.DataSetObserver observer) |
public int getCount()
getCount
in interface android.database.Cursor
public int getPosition()
getPosition
in interface android.database.Cursor
public boolean move(int offset)
move
in interface android.database.Cursor
public boolean moveToPosition(int position)
moveToPosition
in interface android.database.Cursor
public boolean moveToFirst()
moveToFirst
in interface android.database.Cursor
public boolean moveToLast()
moveToLast
in interface android.database.Cursor
public boolean moveToNext()
moveToNext
in interface android.database.Cursor
public boolean moveToPrevious()
moveToPrevious
in interface android.database.Cursor
public boolean isFirst()
isFirst
in interface android.database.Cursor
public boolean isLast()
isLast
in interface android.database.Cursor
public boolean isBeforeFirst()
isBeforeFirst
in interface android.database.Cursor
public boolean isAfterLast()
isAfterLast
in interface android.database.Cursor
public int getColumnIndex(java.lang.String columnName)
getColumnIndex
in interface android.database.Cursor
public int getColumnIndexOrThrow(java.lang.String columnName) throws java.lang.IllegalArgumentException
getColumnIndexOrThrow
in interface android.database.Cursor
java.lang.IllegalArgumentException
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface android.database.Cursor
public java.lang.String[] getColumnNames()
getColumnNames
in interface android.database.Cursor
public int getColumnCount()
getColumnCount
in interface android.database.Cursor
public byte[] getBlob(int columnIndex)
getBlob
in interface android.database.Cursor
public java.lang.String getString(int columnIndex)
getString
in interface android.database.Cursor
public void copyStringToBuffer(int columnIndex, android.database.CharArrayBuffer buffer)
copyStringToBuffer
in interface android.database.Cursor
public short getShort(int columnIndex)
getShort
in interface android.database.Cursor
public int getInt(int columnIndex)
getInt
in interface android.database.Cursor
public long getLong(int columnIndex)
getLong
in interface android.database.Cursor
public float getFloat(int columnIndex)
getFloat
in interface android.database.Cursor
public double getDouble(int columnIndex)
getDouble
in interface android.database.Cursor
public boolean isNull(int columnIndex)
isNull
in interface android.database.Cursor
public void deactivate()
deactivate
in interface android.database.Cursor
public boolean requery()
requery
in interface android.database.Cursor
public void close()
close
in interface android.database.Cursor
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public boolean isClosed()
isClosed
in interface android.database.Cursor
public void registerContentObserver(android.database.ContentObserver observer)
registerContentObserver
in interface android.database.Cursor
public void unregisterContentObserver(android.database.ContentObserver observer)
unregisterContentObserver
in interface android.database.Cursor
public void registerDataSetObserver(android.database.DataSetObserver observer)
registerDataSetObserver
in interface android.database.Cursor
public void unregisterDataSetObserver(android.database.DataSetObserver observer)
unregisterDataSetObserver
in interface android.database.Cursor
public void setNotificationUri(android.content.ContentResolver cr, android.net.Uri uri)
setNotificationUri
in interface android.database.Cursor
public android.net.Uri getNotificationUri()
getNotificationUri
in interface android.database.Cursor
public boolean getWantsAllOnMoveCalls()
getWantsAllOnMoveCalls
in interface android.database.Cursor
public void setExtras(android.os.Bundle extras)
setExtras
in interface android.database.Cursor
public android.os.Bundle getExtras()
getExtras
in interface android.database.Cursor
public android.os.Bundle respond(android.os.Bundle extras)
respond
in interface android.database.Cursor
public int getType(int columnIndex)
getType
in interface android.database.Cursor
public void setQuery(android.net.Uri uri, java.lang.String[] projection, java.lang.String selection, java.lang.String[] selectionArgs, java.lang.String sortOrder)