Package org.robolectric.fakes
Class RoboCursor
- java.lang.Object
-
- org.robolectric.fakes.BaseCursor
-
- org.robolectric.fakes.RoboCursor
-
- All Implemented Interfaces:
Cursor,Closeable,AutoCloseable
@Deprecated public class RoboCursor extends BaseCursor
Deprecated.UseMatrixCursorinstead.Robolectric implementation ofCursor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.database.Cursor
Cursor.FieldType
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>columnNamesDeprecated.String[]projectionDeprecated.protected Object[][]resultsDeprecated.StringselectionDeprecated.String[]selectionArgsDeprecated.StringsortOrderDeprecated.UriuriDeprecated.-
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 RoboCursor()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.byte[]getBlob(int columnIndex)Deprecated.booleangetCloseWasCalled()Deprecated.intgetColumnCount()Deprecated.intgetColumnIndex(String columnName)Deprecated.intgetColumnIndexOrThrow(String columnName)Deprecated.StringgetColumnName(int index)Deprecated.String[]getColumnNames()Deprecated.intgetCount()Deprecated.doublegetDouble(int columnIndex)Deprecated.BundlegetExtras()Deprecated.floatgetFloat(int columnIndex)Deprecated.intgetInt(int columnIndex)Deprecated.longgetLong(int columnIndex)Deprecated.intgetPosition()Deprecated.shortgetShort(int columnIndex)Deprecated.StringgetString(int columnIndex)Deprecated.intgetType(int columnIndex)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.voidsetColumnNames(List<String> columnNames)Deprecated.voidsetExtras(Bundle extras)Deprecated.voidsetQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)Deprecated.voidsetResults(Object[][] results)Deprecated.-
Methods inherited from class org.robolectric.fakes.BaseCursor
copyStringToBuffer, deactivate, getNotificationUri, getWantsAllOnMoveCalls, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, unregisterContentObserver, unregisterDataSetObserver
-
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
-
setQuery
public void setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
Deprecated.- Overrides:
setQueryin classBaseCursor
-
getColumnIndexOrThrow
public int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException
Deprecated.- Specified by:
getColumnIndexOrThrowin interfaceCursor- Overrides:
getColumnIndexOrThrowin classBaseCursor- Throws:
IllegalArgumentException
-
getColumnIndex
public int getColumnIndex(String columnName)
Deprecated.- Specified by:
getColumnIndexin interfaceCursor- Overrides:
getColumnIndexin classBaseCursor
-
getString
public String getString(int columnIndex)
Deprecated.- Specified by:
getStringin interfaceCursor- Overrides:
getStringin classBaseCursor
-
getShort
public short getShort(int columnIndex)
Deprecated.- Specified by:
getShortin interfaceCursor- Overrides:
getShortin classBaseCursor
-
getInt
public int getInt(int columnIndex)
Deprecated.- Specified by:
getIntin interfaceCursor- Overrides:
getIntin classBaseCursor
-
getLong
public long getLong(int columnIndex)
Deprecated.- Specified by:
getLongin interfaceCursor- Overrides:
getLongin classBaseCursor
-
getFloat
public float getFloat(int columnIndex)
Deprecated.- Specified by:
getFloatin interfaceCursor- Overrides:
getFloatin classBaseCursor
-
getDouble
public double getDouble(int columnIndex)
Deprecated.- Specified by:
getDoublein interfaceCursor- Overrides:
getDoublein classBaseCursor
-
getBlob
public byte[] getBlob(int columnIndex)
Deprecated.- Specified by:
getBlobin interfaceCursor- Overrides:
getBlobin classBaseCursor
-
getType
public int getType(int columnIndex)
Deprecated.- Specified by:
getTypein interfaceCursor- Overrides:
getTypein classBaseCursor
-
isNull
public boolean isNull(int columnIndex)
Deprecated.- Specified by:
isNullin interfaceCursor- Overrides:
isNullin classBaseCursor
-
getCount
public int getCount()
Deprecated.- Specified by:
getCountin interfaceCursor- Overrides:
getCountin classBaseCursor
-
moveToNext
public boolean moveToNext()
Deprecated.- Specified by:
moveToNextin interfaceCursor- Overrides:
moveToNextin classBaseCursor
-
moveToFirst
public boolean moveToFirst()
Deprecated.- Specified by:
moveToFirstin interfaceCursor- Overrides:
moveToFirstin classBaseCursor
-
moveToPosition
public boolean moveToPosition(int position)
Deprecated.- Specified by:
moveToPositionin interfaceCursor- Overrides:
moveToPositionin classBaseCursor
-
close
public void close()
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCursor- Overrides:
closein classBaseCursor
-
getColumnCount
public int getColumnCount()
Deprecated.- Specified by:
getColumnCountin interfaceCursor- Overrides:
getColumnCountin classBaseCursor
-
getColumnName
public String getColumnName(int index)
Deprecated.- Specified by:
getColumnNamein interfaceCursor- Overrides:
getColumnNamein classBaseCursor
-
isBeforeFirst
public boolean isBeforeFirst()
Deprecated.- Specified by:
isBeforeFirstin interfaceCursor- Overrides:
isBeforeFirstin classBaseCursor
-
isAfterLast
public boolean isAfterLast()
Deprecated.- Specified by:
isAfterLastin interfaceCursor- Overrides:
isAfterLastin classBaseCursor
-
isFirst
public boolean isFirst()
Deprecated.- Specified by:
isFirstin interfaceCursor- Overrides:
isFirstin classBaseCursor
-
isLast
public boolean isLast()
Deprecated.- Specified by:
isLastin interfaceCursor- Overrides:
isLastin classBaseCursor
-
getPosition
public int getPosition()
Deprecated.- Specified by:
getPositionin interfaceCursor- Overrides:
getPositionin classBaseCursor
-
move
public boolean move(int offset)
Deprecated.- Specified by:
movein interfaceCursor- Overrides:
movein classBaseCursor
-
moveToLast
public boolean moveToLast()
Deprecated.- Specified by:
moveToLastin interfaceCursor- Overrides:
moveToLastin classBaseCursor
-
moveToPrevious
public boolean moveToPrevious()
Deprecated.- Specified by:
moveToPreviousin interfaceCursor- Overrides:
moveToPreviousin classBaseCursor
-
getColumnNames
public String[] getColumnNames()
Deprecated.- Specified by:
getColumnNamesin interfaceCursor- Overrides:
getColumnNamesin classBaseCursor
-
isClosed
public boolean isClosed()
Deprecated.- Specified by:
isClosedin interfaceCursor- Overrides:
isClosedin classBaseCursor
-
getExtras
public Bundle getExtras()
Deprecated.- Specified by:
getExtrasin interfaceCursor- Overrides:
getExtrasin classBaseCursor
-
setExtras
public void setExtras(Bundle extras)
Deprecated.- Specified by:
setExtrasin interfaceCursor- Overrides:
setExtrasin classBaseCursor
-
setResults
public void setResults(Object[][] results)
Deprecated.
-
getCloseWasCalled
public boolean getCloseWasCalled()
Deprecated.
-
-