Package org.robolectric.fakes
Class RoboCursor
java.lang.Object
org.robolectric.fakes.BaseCursor
org.robolectric.fakes.RoboCursor
- All Implemented Interfaces:
Cursor,Closeable,AutoCloseable
Deprecated.
Robolectric implementation of
Cursor.-
Nested Class Summary
Nested classes/interfaces inherited from interface android.database.Cursor
Cursor.FieldType -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.String[]Deprecated.protected Object[][]Deprecated.Deprecated.String[]Deprecated.Deprecated.Deprecated.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.byte[]getBlob(int columnIndex) Deprecated.booleanDeprecated.intDeprecated.intgetColumnIndex(String columnName) Deprecated.intgetColumnIndexOrThrow(String columnName) Deprecated.getColumnName(int index) Deprecated.String[]Deprecated.intgetCount()Deprecated.doublegetDouble(int columnIndex) Deprecated.Deprecated.floatgetFloat(int columnIndex) Deprecated.intgetInt(int columnIndex) Deprecated.longgetLong(int columnIndex) Deprecated.intDeprecated.shortgetShort(int columnIndex) Deprecated.getString(int columnIndex) Deprecated.intgetType(int columnIndex) Deprecated.booleanDeprecated.booleanDeprecated.booleanisClosed()Deprecated.booleanisFirst()Deprecated.booleanisLast()Deprecated.booleanisNull(int columnIndex) Deprecated.booleanmove(int offset) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanmoveToPosition(int position) Deprecated.booleanDeprecated.voidsetColumnNames(List<String> columnNames) Deprecated.voidDeprecated.voidDeprecated.voidsetResults(Object[][] results) Deprecated.Methods inherited from class org.robolectric.fakes.BaseCursor
copyStringToBuffer, deactivate, getNotificationUri, getWantsAllOnMoveCalls, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, unregisterContentObserver, unregisterDataSetObserverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface android.database.Cursor
getNotificationUris, setNotificationUris
-
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.
-
MatrixCursorinstead.