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.
Use
MatrixCursor instead.Robolectric implementation of
Cursor.-
Nested Class Summary
-
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
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
-
Field Details
-
uri
Deprecated. -
projection
Deprecated. -
selection
Deprecated. -
selectionArgs
Deprecated. -
sortOrder
Deprecated. -
results
Deprecated. -
columnNames
Deprecated.
-
-
Constructor Details
-
RoboCursor
public RoboCursor()Deprecated.
-
-
Method Details
-
setQuery
public void setQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)Deprecated.- Overrides:
setQueryin classBaseCursor
-
getColumnIndexOrThrow
Deprecated.- Specified by:
getColumnIndexOrThrowin interfaceCursor- Overrides:
getColumnIndexOrThrowin classBaseCursor- Throws:
IllegalArgumentException
-
getColumnIndex
Deprecated.- Specified by:
getColumnIndexin interfaceCursor- Overrides:
getColumnIndexin classBaseCursor
-
getString
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
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
Deprecated.- Specified by:
getColumnNamesin interfaceCursor- Overrides:
getColumnNamesin classBaseCursor
-
isClosed
public boolean isClosed()Deprecated.- Specified by:
isClosedin interfaceCursor- Overrides:
isClosedin classBaseCursor
-
getExtras
Deprecated.- Specified by:
getExtrasin interfaceCursor- Overrides:
getExtrasin classBaseCursor
-
setExtras
Deprecated.- Specified by:
setExtrasin interfaceCursor- Overrides:
setExtrasin classBaseCursor
-
setColumnNames
Deprecated. -
setResults
Deprecated. -
getCloseWasCalled
public boolean getCloseWasCalled()Deprecated.
-