Package org.robolectric.fakes
Class BaseCursor
java.lang.Object
org.robolectric.fakes.BaseCursor
- All Implemented Interfaces:
Cursor
,Closeable
,AutoCloseable
- Direct Known Subclasses:
RoboCursor
@Deprecated public class BaseCursor extends Object implements Cursor
Deprecated.
Use
MatrixCursor
instead.Robolectric implementation of
Cursor
.-
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 Constructor Description BaseCursor()
Deprecated. -
Method Summary
Modifier and Type Method Description void
close()
Deprecated.void
copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
Deprecated.void
deactivate()
Deprecated.byte[]
getBlob(int columnIndex)
Deprecated.int
getColumnCount()
Deprecated.int
getColumnIndex(String columnName)
Deprecated.int
getColumnIndexOrThrow(String columnName)
Deprecated.String
getColumnName(int columnIndex)
Deprecated.String[]
getColumnNames()
Deprecated.int
getCount()
Deprecated.double
getDouble(int columnIndex)
Deprecated.Bundle
getExtras()
Deprecated.float
getFloat(int columnIndex)
Deprecated.int
getInt(int columnIndex)
Deprecated.long
getLong(int columnIndex)
Deprecated.Uri
getNotificationUri()
Deprecated.int
getPosition()
Deprecated.short
getShort(int columnIndex)
Deprecated.String
getString(int columnIndex)
Deprecated.int
getType(int columnIndex)
Deprecated.boolean
getWantsAllOnMoveCalls()
Deprecated.boolean
isAfterLast()
Deprecated.boolean
isBeforeFirst()
Deprecated.boolean
isClosed()
Deprecated.boolean
isFirst()
Deprecated.boolean
isLast()
Deprecated.boolean
isNull(int columnIndex)
Deprecated.boolean
move(int offset)
Deprecated.boolean
moveToFirst()
Deprecated.boolean
moveToLast()
Deprecated.boolean
moveToNext()
Deprecated.boolean
moveToPosition(int position)
Deprecated.boolean
moveToPrevious()
Deprecated.void
registerContentObserver(ContentObserver observer)
Deprecated.void
registerDataSetObserver(DataSetObserver observer)
Deprecated.boolean
requery()
Deprecated.Bundle
respond(Bundle extras)
Deprecated.void
setExtras(Bundle extras)
Deprecated.void
setNotificationUri(ContentResolver cr, Uri uri)
Deprecated.void
setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
Deprecated.void
unregisterContentObserver(ContentObserver observer)
Deprecated.void
unregisterDataSetObserver(DataSetObserver observer)
Deprecated.
-
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.
-