|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.database.AbstractCursor
android.database.AbstractWindowedCursor
android.database.BulkCursorToCursorAdaptor
public final class BulkCursorToCursorAdaptor
Adapts an IBulkCursor to a Cursor for use in the local
process.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.database.AbstractCursor |
|---|
AbstractCursor.SelfContentObserver |
| Field Summary |
|---|
| Fields inherited from class android.database.AbstractWindowedCursor |
|---|
mWindow |
| Fields inherited from class android.database.AbstractCursor |
|---|
mClosed, mContentObservable, mContentResolver, mCurrentRowID, mDataSetObservable, mPos, mRowIdColumnIndex, mUpdatedRows |
| Constructor Summary | |
|---|---|
BulkCursorToCursorAdaptor()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the Cursor, releasing all of its resources and making it completely invalid. |
boolean |
commitUpdates(Map<? extends Long,? extends Map<String,Object>> additionalValues)
Deprecated. |
void |
deactivate()
Deactivates the Cursor, making all calls on it fail until Cursor.requery() is called. |
boolean |
deleteRow()
Deprecated. |
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. |
Bundle |
getExtras()
Returns a bundle of extra values. |
IContentObserver |
getObserver()
Gets a SelfDataChangeOberserver that can be sent to a remote process to receive change notifications over IPC. |
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. |
boolean |
requery()
Performs the query that created the cursor again, refreshing its contents. |
Bundle |
respond(Bundle extras)
This is an out-of-band way for the the user of a cursor to communicate with the cursor. |
void |
set(IBulkCursor bulkCursor)
|
| Methods inherited from class android.database.AbstractWindowedCursor |
|---|
checkPosition, copyStringToBuffer, getBlob, getDouble, getFloat, getInt, getLong, getShort, getString, getWindow, hasWindow, isBlob, isNull, setWindow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BulkCursorToCursorAdaptor()
| Method Detail |
|---|
public void set(IBulkCursor bulkCursor)
public IContentObserver getObserver()
public int getCount()
Cursor
getCount in interface CursorgetCount in class AbstractCursor
public boolean onMove(int oldPosition,
int newPosition)
AbstractCursor
onMove in interface CrossProcessCursoronMove in class AbstractCursoroldPosition - the position that we're moving fromnewPosition - the position that we're moving to
public void deactivate()
CursorCursor.requery() is called.
Inactive Cursors use fewer resources than active Cursors.
Calling Cursor.requery() will make the cursor active again.
deactivate in interface Cursordeactivate in class AbstractCursorpublic void close()
CursorCursor.deactivate() a call to Cursor.requery() will not make the Cursor valid
again.
close in interface Cursorclose in class AbstractCursorpublic boolean requery()
CursorCursor.deactivate().
requery in interface Cursorrequery in class AbstractCursorpublic boolean deleteRow()
CursorThe query must have the row ID column in its selection, otherwise this call will fail.
deleteRow in interface CursordeleteRow in class AbstractCursorpublic String[] getColumnNames()
Cursor
getColumnNames in interface CursorgetColumnNames in class AbstractCursorpublic boolean commitUpdates(Map<? extends Long,? extends Map<String,Object>> additionalValues)
CursorCursor.requery() before reading data from the cursor again.
commitUpdates in interface CursorcommitUpdates in class AbstractCursoradditionalValues - A map from row IDs to Maps associating column names with
updated values. A null value indicates the field should be
removed.
public Bundle getExtras()
CursorThese values may only change when requery is called.
getExtras in interface CursorgetExtras in class AbstractCursorpublic Bundle respond(Bundle extras)
CursorOne use of this is to tell a cursor that it should retry its network request after it reported an error.
respond in interface Cursorrespond in class AbstractCursorextras - extra values, or Bundle.EMTPY. Never null.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||