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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.void
copyStringToBuffer
(int columnIndex, CharArrayBuffer buffer) Deprecated.void
Deprecated.byte[]
getBlob
(int columnIndex) Deprecated.int
Deprecated.int
getColumnIndex
(String columnName) Deprecated.int
getColumnIndexOrThrow
(String columnName) Deprecated.getColumnName
(int columnIndex) Deprecated.String[]
Deprecated.int
getCount()
Deprecated.double
getDouble
(int columnIndex) Deprecated.Deprecated.float
getFloat
(int columnIndex) Deprecated.int
getInt
(int columnIndex) Deprecated.long
getLong
(int columnIndex) Deprecated.Deprecated.int
Deprecated.short
getShort
(int columnIndex) Deprecated.getString
(int columnIndex) Deprecated.int
getType
(int columnIndex) Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
isClosed()
Deprecated.boolean
isFirst()
Deprecated.boolean
isLast()
Deprecated.boolean
isNull
(int columnIndex) Deprecated.boolean
move
(int offset) Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
moveToPosition
(int position) Deprecated.boolean
Deprecated.void
registerContentObserver
(ContentObserver observer) Deprecated.void
registerDataSetObserver
(DataSetObserver observer) Deprecated.boolean
requery()
Deprecated.Deprecated.void
Deprecated.void
setNotificationUri
(ContentResolver cr, Uri uri) Deprecated.void
Deprecated.void
unregisterContentObserver
(ContentObserver observer) Deprecated.void
unregisterDataSetObserver
(DataSetObserver observer) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getPosition
in interfaceCursor
-
move
public boolean move(int offset) Deprecated. -
moveToPosition
public boolean moveToPosition(int position) Deprecated.- Specified by:
moveToPosition
in interfaceCursor
-
moveToFirst
public boolean moveToFirst()Deprecated.- Specified by:
moveToFirst
in interfaceCursor
-
moveToLast
public boolean moveToLast()Deprecated.- Specified by:
moveToLast
in interfaceCursor
-
moveToNext
public boolean moveToNext()Deprecated.- Specified by:
moveToNext
in interfaceCursor
-
moveToPrevious
public boolean moveToPrevious()Deprecated.- Specified by:
moveToPrevious
in interfaceCursor
-
isFirst
public boolean isFirst()Deprecated. -
isLast
public boolean isLast()Deprecated. -
isBeforeFirst
public boolean isBeforeFirst()Deprecated.- Specified by:
isBeforeFirst
in interfaceCursor
-
isAfterLast
public boolean isAfterLast()Deprecated.- Specified by:
isAfterLast
in interfaceCursor
-
getColumnIndex
Deprecated.- Specified by:
getColumnIndex
in interfaceCursor
-
getColumnIndexOrThrow
Deprecated.- Specified by:
getColumnIndexOrThrow
in interfaceCursor
- Throws:
IllegalArgumentException
-
getColumnName
Deprecated.- Specified by:
getColumnName
in interfaceCursor
-
getColumnNames
Deprecated.- Specified by:
getColumnNames
in interfaceCursor
-
getColumnCount
public int getColumnCount()Deprecated.- Specified by:
getColumnCount
in interfaceCursor
-
getBlob
public byte[] getBlob(int columnIndex) Deprecated. -
getString
Deprecated. -
copyStringToBuffer
Deprecated.- Specified by:
copyStringToBuffer
in 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:
deactivate
in interfaceCursor
-
requery
public boolean requery()Deprecated. -
close
public void close()Deprecated. -
isClosed
public boolean isClosed()Deprecated. -
registerContentObserver
Deprecated.- Specified by:
registerContentObserver
in interfaceCursor
-
unregisterContentObserver
Deprecated.- Specified by:
unregisterContentObserver
in interfaceCursor
-
registerDataSetObserver
Deprecated.- Specified by:
registerDataSetObserver
in interfaceCursor
-
unregisterDataSetObserver
Deprecated.- Specified by:
unregisterDataSetObserver
in interfaceCursor
-
setNotificationUri
Deprecated.- Specified by:
setNotificationUri
in interfaceCursor
-
getNotificationUri
Deprecated.- Specified by:
getNotificationUri
in interfaceCursor
-
getWantsAllOnMoveCalls
public boolean getWantsAllOnMoveCalls()Deprecated.- Specified by:
getWantsAllOnMoveCalls
in 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.
-
MatrixCursor
instead.