Example usage for Java android.database Cursor fields, constructors, methods, implement or subclass
The text is from its open source code.
int | FIELD_TYPE_NULL Value returned by #getType(int) if the specified column is null |
int | FIELD_TYPE_INTEGER Value returned by #getType(int) if the specified column type is integer |
int | FIELD_TYPE_FLOAT Value returned by #getType(int) if the specified column type is float |
int | FIELD_TYPE_STRING Value returned by #getType(int) if the specified column type is string |
int | FIELD_TYPE_BLOB Value returned by #getType(int) if the specified column type is blob |
void | close() Closes the Cursor, releasing all of its resources and making it completely invalid. |
void | copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) Retrieves the requested column text and stores it in the buffer provided. |
void | deactivate() Deactivates the Cursor, making all calls on it fail until #requery is called. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
byte[] | getBlob(int columnIndex) Returns the value of the requested column as a byte array. |
Class> | getClass() Returns the runtime class of this Object . |
int | getColumnCount() Return total number of columns |
int | getColumnIndex(String columnName) Returns the zero-based index for the given column name, or -1 if the column doesn't exist. |
int | getColumnIndexOrThrow(String columnName) Returns the zero-based index for the given column name, or throws IllegalArgumentException if the column doesn't exist. |
String | getColumnName(int columnIndex) Returns the column name at the given zero-based column index. |
String[] | getColumnNames() Returns a string array holding the names of all of the columns in the result set in the order in which they were listed in the result. |
int | getCount() Returns the numbers of rows in the cursor. |
double | getDouble(int columnIndex) Returns the value of the requested column as a double. |
Bundle | getExtras() Returns a bundle of extra values. |
float | getFloat(int columnIndex) Returns the value of the requested column as a float. |
int | getInt(int columnIndex) Returns the value of the requested column as an int. |
long | getLong(int columnIndex) Returns the value of the requested column as a long. |
Uri | getNotificationUri() Return the URI at which notifications of changes in this Cursor's data will be delivered, as previously set by #setNotificationUri . |
int | getPosition() Returns the current position of the cursor in the row set. |
short | getShort(int columnIndex) Returns the value of the requested column as a short. |
String | getString(int columnIndex) Returns the value of the requested column as a String. |
int | getType(int columnIndex) Returns data type of the given column's value. |
boolean | isAfterLast() Returns whether the cursor is pointing to the position after the last row. |
boolean | isBeforeFirst() Returns whether the cursor is pointing to the position before the first row. |
boolean | isClosed() return true if the cursor is closed |
boolean | isFirst() Returns whether the cursor is pointing to the first row. |
boolean | isLast() Returns whether the cursor is pointing to the last row. |
boolean | isNull(int columnIndex) Returns true if the value in the indicated column is null. |
boolean | move(int offset) Move the cursor by a relative amount, forward or backward, from the current position. |
boolean | moveToFirst() Move the cursor to the first row. |
boolean | moveToLast() Move the cursor to the last row. |
boolean | moveToNext() Move the cursor to the next row. |
boolean | moveToPosition(int position) Move the cursor to an absolute position. |
boolean | moveToPrevious() Move the cursor to the previous row. |
void | registerContentObserver(ContentObserver observer) Register an observer that is called when changes happen to the content backing this cursor. |
void | registerDataSetObserver(DataSetObserver observer) Register an observer that is called when changes happen to the contents of the this cursors data set, for example, when the data set is changed via #requery() , #deactivate() , or #close() . |
boolean | requery() Performs the query that created the cursor again, refreshing its contents. |
void | setNotificationUri(ContentResolver cr, Uri uri) Register to watch a content URI for changes. |
String | toString() Returns a string representation of the object. |
void | unregisterContentObserver(ContentObserver observer) Unregister an observer that has previously been registered with this cursor via #registerContentObserver . |
void | unregisterDataSetObserver(DataSetObserver observer) Unregister an observer that has previously been registered with this cursor via #registerContentObserver . |