java.lang.Object | ||
↳ | android.database.AbstractCursor | |
↳ | 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.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.database.AbstractCursor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes the Cursor, releasing all of its resources and making it completely invalid.
| |||||||||||
Deactivates the Cursor, making all calls on it fail until requery() is called.
| |||||||||||
Returns the value of the requested column as a byte array.
| |||||||||||
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.
| |||||||||||
Returns the numbers of rows in the cursor.
| |||||||||||
Returns the value of the requested column as a double.
| |||||||||||
Returns the value of the requested column as a float.
| |||||||||||
Returns the value of the requested column as an int.
| |||||||||||
Returns the value of the requested column as a long.
| |||||||||||
Returns the value of the requested column as a short.
| |||||||||||
Returns the value of the requested column as a String.
| |||||||||||
Returns
true if the value in the indicated column is null. | |||||||||||
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.
| |||||||||||
Register an observer that is called when changes happen to the content backing this cursor.
| |||||||||||
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().
| |||||||||||
Performs the query that created the cursor again, refreshing its
contents.
| |||||||||||
Unregister an observer that has previously been registered with this
cursor via registerContentObserver(ContentObserver).
| |||||||||||
Unregister an observer that has previously been registered with this
cursor via registerContentObserver(ContentObserver).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class android.database.AbstractCursor
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface android.database.CrossProcessCursor
| |||||||||||
From interface android.database.Cursor
|
Closes the Cursor, releasing all of its resources and making it completely invalid. Unlike deactivate() a call to requery() will not make the Cursor valid again.
Returns the value of the requested column as a byte array.
If the native content of that column is not blob exception may throw
column | the zero-based index of the target column. |
---|
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.
Returns the numbers of rows in the cursor.
Returns the value of the requested column as a double.
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).
column | the zero-based index of the target column. |
---|
Returns the value of the requested column as a float.
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).
column | the zero-based index of the target column. |
---|
Returns the value of the requested column as an int.
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).
column | the zero-based index of the target column. |
---|
Returns the value of the requested column as a long.
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).
column | the zero-based index of the target column. |
---|
Returns the value of the requested column as a short.
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).
column | the zero-based index of the target column. |
---|
Returns the value of the requested column as a String.
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).
column | the zero-based index of the target column. |
---|
Returns true
if the value in the indicated column is null.
column | the zero-based index of the target column. |
---|
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. If it returns false the move function will also do so and the cursor will scroll to the beforeFirst position.
oldPosition | the position that we're moving from |
---|---|
newPosition | the position that we're moving to |
Register an observer that is called when changes happen to the content backing this cursor. Typically the data set won't change until requery() is called.
observer | the object that gets notified when the content backing the cursor changes. |
---|
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().
observer | the object that gets notified when the cursors data set changes. |
---|
Performs the query that created the cursor again, refreshing its contents. This may be done at any time, including after a call to deactivate().
Unregister an observer that has previously been registered with this cursor via registerContentObserver(ContentObserver).
observer | the object to unregister. |
---|
Unregister an observer that has previously been registered with this cursor via registerContentObserver(ContentObserver).
observer | the object to unregister. |
---|