| java.lang.Object | |||
| android.database.AbstractCursor | Cursor | ||
| android.database.MergeCursor | |||
A convience class that lets you present an array of Cursors as a single linear Cursor. The schema of the cursors presented is entirely up to the creator of the MergeCursor, and may be different if that is desired. Calls to getColumns, getColumnIndex, etc will return the value for the row that the MergeCursor is currently pointing at.
Fields inherited
from class
android.database.AbstractCursor
| MergeCursor(Cursor[] cursors) |
| int | count() | ||||
| Returns the numbers of rows in the cursor. | |||||
| void | deactivate() | ||||
| Deactivates the Cursor, making all calls on it fail until requery() is called. | |||||
| boolean | deleteRow() | ||||
| Removes the row at the current cursor position from the underlying data store. | |||||
| 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. | |||||
| double | getDouble(int column) | ||||
| Returns the value of the requested column as a double. | |||||
| float | getFloat(int column) | ||||
| Returns the value of the requested column as a float. | |||||
| int | getInt(int column) | ||||
| Returns the value of the requested column as an int. | |||||
| long | getLong(int column) | ||||
| Returns the value of the requested column as a long. | |||||
| short | getShort(int column) | ||||
| Returns the value of the requested column as a short. | |||||
| String | getString(int column) | ||||
| Returns the value of the requested column as a String. | |||||
| boolean | isNull(int column) | ||||
Returns true if the value in the indicated column is null. |
|||||
| void | registerContentObserver(ContentObserver observer) | ||||
| Register an observer that is called when changes happen to the content backing this cursor. | |||||
| boolean | requery() | ||||
| Performs the query that created the cursor again, refreshing its contents. | |||||
| void | unregisterContentObserver(ContentObserver observer) | ||||
| Unregister an observer that has previously been registered with this cursor via registerContentObserver(ContentObserver). | |||||
| boolean | onMove(int oldPosition, int newPosition) | ||||
| This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have. | |||||
Methods inherited
from class
android.database.AbstractCursor
Methods inherited
from class
java.lang.Object
Methods inherited
from interface
android.database.Cursor
If the native content of that column is not numeric the result will be the result of passing the column value to Double.valueOf(x).
If the native content of that column is not numeric the result will be the result of passing the column value to Float.valueOf(x).
If the native content of that column is not numeric the result will be the result of passing the column value to Integer.valueOf(x).
If the native content of that column is not numeric the result will be the result of passing the column value to Long.valueOf(x).
If the native content of that column is not numeric the result will be the result of passing the column value to Short.valueOf(x).
If the native content of that column is not text the result will be the result of passing the column value to String.valueOf(x).
true if the value in the indicated column is null.
| oldPosition | the position that we're moving from |
|---|---|
| newPosition | the position that we're moving to |