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