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.-
Nested Class Summary
-
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 voidclose()Deprecated.voidcopyStringToBuffer(int columnIndex, CharArrayBuffer buffer)Deprecated.voiddeactivate()Deprecated.byte[]getBlob(int columnIndex)Deprecated.intgetColumnCount()Deprecated.intgetColumnIndex(String columnName)Deprecated.intgetColumnIndexOrThrow(String columnName)Deprecated.StringgetColumnName(int columnIndex)Deprecated.String[]getColumnNames()Deprecated.intgetCount()Deprecated.doublegetDouble(int columnIndex)Deprecated.BundlegetExtras()Deprecated.floatgetFloat(int columnIndex)Deprecated.intgetInt(int columnIndex)Deprecated.longgetLong(int columnIndex)Deprecated.UrigetNotificationUri()Deprecated.intgetPosition()Deprecated.shortgetShort(int columnIndex)Deprecated.StringgetString(int columnIndex)Deprecated.intgetType(int columnIndex)Deprecated.booleangetWantsAllOnMoveCalls()Deprecated.booleanisAfterLast()Deprecated.booleanisBeforeFirst()Deprecated.booleanisClosed()Deprecated.booleanisFirst()Deprecated.booleanisLast()Deprecated.booleanisNull(int columnIndex)Deprecated.booleanmove(int offset)Deprecated.booleanmoveToFirst()Deprecated.booleanmoveToLast()Deprecated.booleanmoveToNext()Deprecated.booleanmoveToPosition(int position)Deprecated.booleanmoveToPrevious()Deprecated.voidregisterContentObserver(ContentObserver observer)Deprecated.voidregisterDataSetObserver(DataSetObserver observer)Deprecated.booleanrequery()Deprecated.Bundlerespond(Bundle extras)Deprecated.voidsetExtras(Bundle extras)Deprecated.voidsetNotificationUri(ContentResolver cr, Uri uri)Deprecated.voidsetQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)Deprecated.voidunregisterContentObserver(ContentObserver observer)Deprecated.voidunregisterDataSetObserver(DataSetObserver observer)Deprecated.
-
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.
-