android.database
Interface Cursor

All Known Subinterfaces:
CrossProcessCursor
All Known Implementing Classes:
AbstractCursor, AbstractWindowedCursor, CursorWrapper, MatrixCursor, MergeCursor, SQLiteCursor

public interface Cursor


Field Summary
static int FIELD_TYPE_BLOB
           
static int FIELD_TYPE_FLOAT
           
static int FIELD_TYPE_INTEGER
           
static int FIELD_TYPE_NULL
           
static int FIELD_TYPE_STRING
           
 
Method Summary
 void close()
           
 void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
           
 void deactivate()
           
 byte[] getBlob(int columnIndex)
           
 int getColumnCount()
           
 int getColumnIndex(String columnName)
           
 int getColumnIndexOrThrow(String columnName)
           
 String getColumnName(int columnIndex)
           
 String[] getColumnNames()
           
 int getCount()
           
 double getDouble(int columnIndex)
           
 Bundle getExtras()
           
 float getFloat(int columnIndex)
           
 int getInt(int columnIndex)
           
 long getLong(int columnIndex)
           
 int getPosition()
           
 short getShort(int columnIndex)
           
 String getString(int columnIndex)
           
 int getType(int columnIndex)
           
 boolean getWantsAllOnMoveCalls()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isClosed()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean isNull(int columnIndex)
           
 boolean move(int offset)
           
 boolean moveToFirst()
           
 boolean moveToLast()
           
 boolean moveToNext()
           
 boolean moveToPosition(int position)
           
 boolean moveToPrevious()
           
 void registerContentObserver(ContentObserver observer)
           
 void registerDataSetObserver(DataSetObserver observer)
           
 boolean requery()
           
 Bundle respond(Bundle extras)
           
 void setNotificationUri(ContentResolver cr, Uri uri)
           
 void unregisterContentObserver(ContentObserver observer)
           
 void unregisterDataSetObserver(DataSetObserver observer)
           
 

Field Detail

FIELD_TYPE_NULL

static final int FIELD_TYPE_NULL
See Also:
Constant Field Values

FIELD_TYPE_INTEGER

static final int FIELD_TYPE_INTEGER
See Also:
Constant Field Values

FIELD_TYPE_FLOAT

static final int FIELD_TYPE_FLOAT
See Also:
Constant Field Values

FIELD_TYPE_STRING

static final int FIELD_TYPE_STRING
See Also:
Constant Field Values

FIELD_TYPE_BLOB

static final int FIELD_TYPE_BLOB
See Also:
Constant Field Values
Method Detail

getCount

int getCount()

getPosition

int getPosition()

move

boolean move(int offset)

moveToPosition

boolean moveToPosition(int position)

moveToFirst

boolean moveToFirst()

moveToLast

boolean moveToLast()

moveToNext

boolean moveToNext()

moveToPrevious

boolean moveToPrevious()

isFirst

boolean isFirst()

isLast

boolean isLast()

isBeforeFirst

boolean isBeforeFirst()

isAfterLast

boolean isAfterLast()

getColumnIndex

int getColumnIndex(String columnName)

getColumnIndexOrThrow

int getColumnIndexOrThrow(String columnName)
                          throws IllegalArgumentException
Throws:
IllegalArgumentException

getColumnName

String getColumnName(int columnIndex)

getColumnNames

String[] getColumnNames()

getColumnCount

int getColumnCount()

getBlob

byte[] getBlob(int columnIndex)

getString

String getString(int columnIndex)

copyStringToBuffer

void copyStringToBuffer(int columnIndex,
                        CharArrayBuffer buffer)

getShort

short getShort(int columnIndex)

getInt

int getInt(int columnIndex)

getLong

long getLong(int columnIndex)

getFloat

float getFloat(int columnIndex)

getDouble

double getDouble(int columnIndex)

getType

int getType(int columnIndex)

isNull

boolean isNull(int columnIndex)

deactivate

void deactivate()

requery

boolean requery()

close

void close()

isClosed

boolean isClosed()

registerContentObserver

void registerContentObserver(ContentObserver observer)

unregisterContentObserver

void unregisterContentObserver(ContentObserver observer)

registerDataSetObserver

void registerDataSetObserver(DataSetObserver observer)

unregisterDataSetObserver

void unregisterDataSetObserver(DataSetObserver observer)

setNotificationUri

void setNotificationUri(ContentResolver cr,
                        Uri uri)

getWantsAllOnMoveCalls

boolean getWantsAllOnMoveCalls()

getExtras

Bundle getExtras()

respond

Bundle respond(Bundle extras)


Copyright © 2008-2012. All Rights Reserved.