Package org.robolectric.shadows
Class ShadowCursorWrapper
java.lang.Object
org.robolectric.shadows.ShadowCursorWrapper
- All Implemented Interfaces:
Cursor
,Closeable
,AutoCloseable
@Implements(android.database.CursorWrapper.class)
public class ShadowCursorWrapper
extends Object
implements Cursor
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
close()
void
copyStringToBuffer
(int i, CharArrayBuffer charArrayBuffer) void
byte[]
getBlob
(int i) int
int
int
getColumnName
(int i) String[]
int
getCount()
double
getDouble
(int i) float
getFloat
(int i) int
getInt
(int i) long
getLong
(int i) int
short
getShort
(int i) getString
(int i) int
getType
(int columnIndex) boolean
protected Cursor
boolean
boolean
boolean
isClosed()
boolean
isFirst()
boolean
isLast()
boolean
isNull
(int i) boolean
move
(int i) boolean
boolean
boolean
boolean
moveToPosition
(int i) boolean
void
registerContentObserver
(ContentObserver contentObserver) void
registerDataSetObserver
(DataSetObserver dataSetObserver) boolean
requery()
void
void
setNotificationUri
(ContentResolver contentResolver, Uri uri) void
unregisterContentObserver
(ContentObserver contentObserver) void
unregisterDataSetObserver
(DataSetObserver dataSetObserver) 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
-
Constructor Details
-
ShadowCursorWrapper
public ShadowCursorWrapper()
-
-
Method Details
-
__constructor__
-
getCount
-
getPosition
- Specified by:
getPosition
in interfaceCursor
-
move
-
moveToPosition
- Specified by:
moveToPosition
in interfaceCursor
-
moveToFirst
- Specified by:
moveToFirst
in interfaceCursor
-
moveToLast
- Specified by:
moveToLast
in interfaceCursor
-
moveToNext
- Specified by:
moveToNext
in interfaceCursor
-
moveToPrevious
- Specified by:
moveToPrevious
in interfaceCursor
-
isFirst
-
isLast
-
isBeforeFirst
- Specified by:
isBeforeFirst
in interfaceCursor
-
isAfterLast
- Specified by:
isAfterLast
in interfaceCursor
-
getColumnIndex
- Specified by:
getColumnIndex
in interfaceCursor
-
getColumnIndexOrThrow
- Specified by:
getColumnIndexOrThrow
in interfaceCursor
- Throws:
IllegalArgumentException
-
getColumnName
- Specified by:
getColumnName
in interfaceCursor
-
getColumnNames
- Specified by:
getColumnNames
in interfaceCursor
-
getColumnCount
- Specified by:
getColumnCount
in interfaceCursor
-
getBlob
-
getString
-
copyStringToBuffer
- Specified by:
copyStringToBuffer
in interfaceCursor
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
isNull
-
deactivate
- Specified by:
deactivate
in interfaceCursor
-
requery
-
close
-
isClosed
-
registerContentObserver
- Specified by:
registerContentObserver
in interfaceCursor
-
unregisterContentObserver
- Specified by:
unregisterContentObserver
in interfaceCursor
-
registerDataSetObserver
- Specified by:
registerDataSetObserver
in interfaceCursor
-
unregisterDataSetObserver
- Specified by:
unregisterDataSetObserver
in interfaceCursor
-
setNotificationUri
- Specified by:
setNotificationUri
in interfaceCursor
-
getNotificationUri
- Specified by:
getNotificationUri
in interfaceCursor
-
getWantsAllOnMoveCalls
- Specified by:
getWantsAllOnMoveCalls
in interfaceCursor
-
setExtras
-
getExtras
-
respond
-
getType
-
getWrappedCursor
-