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.UseMatrixCursor
instead.Robolectric implementation ofCursor
.
-
-
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 Constructor Description BaseCursor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods 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.-
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
-
-
-
-
Method Detail
-
getPosition
public int getPosition()
Deprecated.- Specified by:
getPosition
in interfaceCursor
-
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
-
isBeforeFirst
public boolean isBeforeFirst()
Deprecated.- Specified by:
isBeforeFirst
in interfaceCursor
-
isAfterLast
public boolean isAfterLast()
Deprecated.- Specified by:
isAfterLast
in interfaceCursor
-
getColumnIndex
public int getColumnIndex(String columnName)
Deprecated.- Specified by:
getColumnIndex
in interfaceCursor
-
getColumnIndexOrThrow
public int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException
Deprecated.- Specified by:
getColumnIndexOrThrow
in interfaceCursor
- Throws:
IllegalArgumentException
-
getColumnName
public String getColumnName(int columnIndex)
Deprecated.- Specified by:
getColumnName
in interfaceCursor
-
getColumnNames
public String[] 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
public String getString(int columnIndex)
Deprecated.
-
copyStringToBuffer
public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
Deprecated.- Specified by:
copyStringToBuffer
in interfaceCursor
-
getShort
public short getShort(int columnIndex)
Deprecated.
-
getFloat
public float getFloat(int columnIndex)
Deprecated.
-
getDouble
public double getDouble(int columnIndex)
Deprecated.
-
deactivate
public void deactivate()
Deprecated.- Specified by:
deactivate
in interfaceCursor
-
close
public void close()
Deprecated.
-
registerContentObserver
public void registerContentObserver(ContentObserver observer)
Deprecated.- Specified by:
registerContentObserver
in interfaceCursor
-
unregisterContentObserver
public void unregisterContentObserver(ContentObserver observer)
Deprecated.- Specified by:
unregisterContentObserver
in interfaceCursor
-
registerDataSetObserver
public void registerDataSetObserver(DataSetObserver observer)
Deprecated.- Specified by:
registerDataSetObserver
in interfaceCursor
-
unregisterDataSetObserver
public void unregisterDataSetObserver(DataSetObserver observer)
Deprecated.- Specified by:
unregisterDataSetObserver
in interfaceCursor
-
setNotificationUri
public void setNotificationUri(ContentResolver cr, Uri uri)
Deprecated.- Specified by:
setNotificationUri
in interfaceCursor
-
getNotificationUri
public Uri getNotificationUri()
Deprecated.- Specified by:
getNotificationUri
in interfaceCursor
-
getWantsAllOnMoveCalls
public boolean getWantsAllOnMoveCalls()
Deprecated.- Specified by:
getWantsAllOnMoveCalls
in interfaceCursor
-
setExtras
public void setExtras(Bundle extras)
Deprecated.
-
-