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.UseMatrixCursorinstead.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 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.-
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:
getPositionin interfaceCursor
-
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
-
isBeforeFirst
public boolean isBeforeFirst()
Deprecated.- Specified by:
isBeforeFirstin interfaceCursor
-
isAfterLast
public boolean isAfterLast()
Deprecated.- Specified by:
isAfterLastin interfaceCursor
-
getColumnIndex
public int getColumnIndex(String columnName)
Deprecated.- Specified by:
getColumnIndexin interfaceCursor
-
getColumnIndexOrThrow
public int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException
Deprecated.- Specified by:
getColumnIndexOrThrowin interfaceCursor- Throws:
IllegalArgumentException
-
getColumnName
public String getColumnName(int columnIndex)
Deprecated.- Specified by:
getColumnNamein interfaceCursor
-
getColumnNames
public String[] getColumnNames()
Deprecated.- Specified by:
getColumnNamesin interfaceCursor
-
getColumnCount
public int getColumnCount()
Deprecated.- Specified by:
getColumnCountin 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:
copyStringToBufferin 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:
deactivatein interfaceCursor
-
close
public void close()
Deprecated.
-
registerContentObserver
public void registerContentObserver(ContentObserver observer)
Deprecated.- Specified by:
registerContentObserverin interfaceCursor
-
unregisterContentObserver
public void unregisterContentObserver(ContentObserver observer)
Deprecated.- Specified by:
unregisterContentObserverin interfaceCursor
-
registerDataSetObserver
public void registerDataSetObserver(DataSetObserver observer)
Deprecated.- Specified by:
registerDataSetObserverin interfaceCursor
-
unregisterDataSetObserver
public void unregisterDataSetObserver(DataSetObserver observer)
Deprecated.- Specified by:
unregisterDataSetObserverin interfaceCursor
-
setNotificationUri
public void setNotificationUri(ContentResolver cr, Uri uri)
Deprecated.- Specified by:
setNotificationUriin interfaceCursor
-
getNotificationUri
public Uri getNotificationUri()
Deprecated.- Specified by:
getNotificationUriin interfaceCursor
-
getWantsAllOnMoveCalls
public boolean getWantsAllOnMoveCalls()
Deprecated.- Specified by:
getWantsAllOnMoveCallsin interfaceCursor
-
setExtras
public void setExtras(Bundle extras)
Deprecated.
-
-