Class BaseCursor

  • All Implemented Interfaces:
    android.database.Cursor, java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    RoboCursor

    @Deprecated
    public class BaseCursor
    extends java.lang.Object
    implements android.database.Cursor
    Deprecated.
    Use MatrixCursor instead.
    Robolectric implementation of Cursor.
    • 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

      Constructors 
      Constructor Description
      BaseCursor()
      Deprecated.
       
    • Constructor Detail

      • BaseCursor

        public BaseCursor()
        Deprecated.
    • Method Detail

      • getCount

        public int getCount()
        Deprecated.
        Specified by:
        getCount in interface android.database.Cursor
      • getPosition

        public int getPosition()
        Deprecated.
        Specified by:
        getPosition in interface android.database.Cursor
      • move

        public boolean move​(int offset)
        Deprecated.
        Specified by:
        move in interface android.database.Cursor
      • moveToPosition

        public boolean moveToPosition​(int position)
        Deprecated.
        Specified by:
        moveToPosition in interface android.database.Cursor
      • moveToFirst

        public boolean moveToFirst()
        Deprecated.
        Specified by:
        moveToFirst in interface android.database.Cursor
      • moveToLast

        public boolean moveToLast()
        Deprecated.
        Specified by:
        moveToLast in interface android.database.Cursor
      • moveToNext

        public boolean moveToNext()
        Deprecated.
        Specified by:
        moveToNext in interface android.database.Cursor
      • moveToPrevious

        public boolean moveToPrevious()
        Deprecated.
        Specified by:
        moveToPrevious in interface android.database.Cursor
      • isFirst

        public boolean isFirst()
        Deprecated.
        Specified by:
        isFirst in interface android.database.Cursor
      • isLast

        public boolean isLast()
        Deprecated.
        Specified by:
        isLast in interface android.database.Cursor
      • isBeforeFirst

        public boolean isBeforeFirst()
        Deprecated.
        Specified by:
        isBeforeFirst in interface android.database.Cursor
      • isAfterLast

        public boolean isAfterLast()
        Deprecated.
        Specified by:
        isAfterLast in interface android.database.Cursor
      • getColumnIndex

        public int getColumnIndex​(java.lang.String columnName)
        Deprecated.
        Specified by:
        getColumnIndex in interface android.database.Cursor
      • getColumnIndexOrThrow

        public int getColumnIndexOrThrow​(java.lang.String columnName)
                                  throws java.lang.IllegalArgumentException
        Deprecated.
        Specified by:
        getColumnIndexOrThrow in interface android.database.Cursor
        Throws:
        java.lang.IllegalArgumentException
      • getColumnName

        public java.lang.String getColumnName​(int columnIndex)
        Deprecated.
        Specified by:
        getColumnName in interface android.database.Cursor
      • getColumnNames

        public java.lang.String[] getColumnNames()
        Deprecated.
        Specified by:
        getColumnNames in interface android.database.Cursor
      • getColumnCount

        public int getColumnCount()
        Deprecated.
        Specified by:
        getColumnCount in interface android.database.Cursor
      • getBlob

        public byte[] getBlob​(int columnIndex)
        Deprecated.
        Specified by:
        getBlob in interface android.database.Cursor
      • getString

        public java.lang.String getString​(int columnIndex)
        Deprecated.
        Specified by:
        getString in interface android.database.Cursor
      • copyStringToBuffer

        public void copyStringToBuffer​(int columnIndex,
                                       android.database.CharArrayBuffer buffer)
        Deprecated.
        Specified by:
        copyStringToBuffer in interface android.database.Cursor
      • getShort

        public short getShort​(int columnIndex)
        Deprecated.
        Specified by:
        getShort in interface android.database.Cursor
      • getInt

        public int getInt​(int columnIndex)
        Deprecated.
        Specified by:
        getInt in interface android.database.Cursor
      • getLong

        public long getLong​(int columnIndex)
        Deprecated.
        Specified by:
        getLong in interface android.database.Cursor
      • getFloat

        public float getFloat​(int columnIndex)
        Deprecated.
        Specified by:
        getFloat in interface android.database.Cursor
      • getDouble

        public double getDouble​(int columnIndex)
        Deprecated.
        Specified by:
        getDouble in interface android.database.Cursor
      • isNull

        public boolean isNull​(int columnIndex)
        Deprecated.
        Specified by:
        isNull in interface android.database.Cursor
      • deactivate

        public void deactivate()
        Deprecated.
        Specified by:
        deactivate in interface android.database.Cursor
      • requery

        public boolean requery()
        Deprecated.
        Specified by:
        requery in interface android.database.Cursor
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface android.database.Cursor
      • isClosed

        public boolean isClosed()
        Deprecated.
        Specified by:
        isClosed in interface android.database.Cursor
      • registerContentObserver

        public void registerContentObserver​(android.database.ContentObserver observer)
        Deprecated.
        Specified by:
        registerContentObserver in interface android.database.Cursor
      • unregisterContentObserver

        public void unregisterContentObserver​(android.database.ContentObserver observer)
        Deprecated.
        Specified by:
        unregisterContentObserver in interface android.database.Cursor
      • registerDataSetObserver

        public void registerDataSetObserver​(android.database.DataSetObserver observer)
        Deprecated.
        Specified by:
        registerDataSetObserver in interface android.database.Cursor
      • unregisterDataSetObserver

        public void unregisterDataSetObserver​(android.database.DataSetObserver observer)
        Deprecated.
        Specified by:
        unregisterDataSetObserver in interface android.database.Cursor
      • setNotificationUri

        public void setNotificationUri​(android.content.ContentResolver cr,
                                       android.net.Uri uri)
        Deprecated.
        Specified by:
        setNotificationUri in interface android.database.Cursor
      • getNotificationUri

        public android.net.Uri getNotificationUri()
        Deprecated.
        Specified by:
        getNotificationUri in interface android.database.Cursor
      • getWantsAllOnMoveCalls

        public boolean getWantsAllOnMoveCalls()
        Deprecated.
        Specified by:
        getWantsAllOnMoveCalls in interface android.database.Cursor
      • setExtras

        public void setExtras​(android.os.Bundle extras)
        Deprecated.
        Specified by:
        setExtras in interface android.database.Cursor
      • getExtras

        public android.os.Bundle getExtras()
        Deprecated.
        Specified by:
        getExtras in interface android.database.Cursor
      • respond

        public android.os.Bundle respond​(android.os.Bundle extras)
        Deprecated.
        Specified by:
        respond in interface android.database.Cursor
      • getType

        public int getType​(int columnIndex)
        Deprecated.
        Specified by:
        getType in interface android.database.Cursor
      • 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.