Package org.robolectric.fakes
Class BaseCursor
java.lang.Object
org.robolectric.fakes.BaseCursor
- All Implemented Interfaces:
Cursor,Closeable,AutoCloseable
- Direct Known Subclasses:
RoboCursor
Deprecated.
Robolectric implementation of
Cursor.-
Nested Class Summary
Nested classes/interfaces inherited from interface android.database.Cursor
Cursor.FieldType -
Field Summary
Fields inherited from interface android.database.Cursor
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidcopyStringToBuffer(int columnIndex, CharArrayBuffer buffer) Deprecated.voidDeprecated.byte[]getBlob(int columnIndex) Deprecated.intDeprecated.intgetColumnIndex(String columnName) Deprecated.intgetColumnIndexOrThrow(String columnName) Deprecated.getColumnName(int columnIndex) Deprecated.String[]Deprecated.intgetCount()Deprecated.doublegetDouble(int columnIndex) Deprecated.Deprecated.floatgetFloat(int columnIndex) Deprecated.intgetInt(int columnIndex) Deprecated.longgetLong(int columnIndex) Deprecated.Deprecated.intDeprecated.shortgetShort(int columnIndex) Deprecated.getString(int columnIndex) Deprecated.intgetType(int columnIndex) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanisClosed()Deprecated.booleanisFirst()Deprecated.booleanisLast()Deprecated.booleanisNull(int columnIndex) Deprecated.booleanmove(int offset) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanmoveToPosition(int position) Deprecated.booleanDeprecated.voidregisterContentObserver(ContentObserver observer) Deprecated.voidregisterDataSetObserver(DataSetObserver observer) Deprecated.booleanrequery()Deprecated.Deprecated.voidDeprecated.voidsetNotificationUri(ContentResolver cr, Uri uri) Deprecated.voidDeprecated.voidunregisterContentObserver(ContentObserver observer) Deprecated.voidunregisterDataSetObserver(DataSetObserver observer) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface android.database.Cursor
getNotificationUris, setNotificationUris
-
Constructor Details
-
BaseCursor
public BaseCursor()Deprecated.
-
-
Method Details
-
getCount
public int getCount()Deprecated. -
getPosition
public int getPosition()Deprecated.- Specified by:
getPositionin interfaceCursor
-
move
public boolean move(int offset) Deprecated. -
moveToPosition
public boolean moveToPosition(int position) Deprecated.- Specified by:
moveToPositionin interfaceCursor
-
moveToFirst
public boolean moveToFirst()Deprecated.- Specified by:
moveToFirstin interfaceCursor
-
moveToLast
public boolean moveToLast()Deprecated.- Specified by:
moveToLastin interfaceCursor
-
moveToNext
public boolean moveToNext()Deprecated.- Specified by:
moveToNextin interfaceCursor
-
moveToPrevious
public boolean moveToPrevious()Deprecated.- Specified by:
moveToPreviousin interfaceCursor
-
isFirst
public boolean isFirst()Deprecated. -
isLast
public boolean isLast()Deprecated. -
isBeforeFirst
public boolean isBeforeFirst()Deprecated.- Specified by:
isBeforeFirstin interfaceCursor
-
isAfterLast
public boolean isAfterLast()Deprecated.- Specified by:
isAfterLastin interfaceCursor
-
getColumnIndex
Deprecated.- Specified by:
getColumnIndexin interfaceCursor
-
getColumnIndexOrThrow
Deprecated.- Specified by:
getColumnIndexOrThrowin interfaceCursor- Throws:
IllegalArgumentException
-
getColumnName
Deprecated.- Specified by:
getColumnNamein interfaceCursor
-
getColumnNames
Deprecated.- Specified by:
getColumnNamesin interfaceCursor
-
getColumnCount
public int getColumnCount()Deprecated.- Specified by:
getColumnCountin interfaceCursor
-
getBlob
public byte[] getBlob(int columnIndex) Deprecated. -
getString
Deprecated. -
copyStringToBuffer
Deprecated.- Specified by:
copyStringToBufferin interfaceCursor
-
getShort
public short getShort(int columnIndex) Deprecated. -
getInt
public int getInt(int columnIndex) Deprecated. -
getLong
public long getLong(int columnIndex) Deprecated. -
getFloat
public float getFloat(int columnIndex) Deprecated. -
getDouble
public double getDouble(int columnIndex) Deprecated. -
isNull
public boolean isNull(int columnIndex) Deprecated. -
deactivate
public void deactivate()Deprecated.- Specified by:
deactivatein interfaceCursor
-
requery
public boolean requery()Deprecated. -
close
public void close()Deprecated. -
isClosed
public boolean isClosed()Deprecated. -
registerContentObserver
Deprecated.- Specified by:
registerContentObserverin interfaceCursor
-
unregisterContentObserver
Deprecated.- Specified by:
unregisterContentObserverin interfaceCursor
-
registerDataSetObserver
Deprecated.- Specified by:
registerDataSetObserverin interfaceCursor
-
unregisterDataSetObserver
Deprecated.- Specified by:
unregisterDataSetObserverin interfaceCursor
-
setNotificationUri
Deprecated.- Specified by:
setNotificationUriin interfaceCursor
-
getNotificationUri
Deprecated.- Specified by:
getNotificationUriin interfaceCursor
-
getWantsAllOnMoveCalls
public boolean getWantsAllOnMoveCalls()Deprecated.- Specified by:
getWantsAllOnMoveCallsin interfaceCursor
-
setExtras
Deprecated. -
getExtras
Deprecated. -
respond
Deprecated. -
getType
public int getType(int columnIndex) Deprecated. -
setQuery
public void setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) Deprecated.
-
MatrixCursorinstead.