public final class BulkCursorToCursorAdaptor extends AbstractWindowedCursor
IBulkCursor to a Cursor for use in the local
process.
AbstractCursor.SelfContentObservermWindowmClosed, mContentResolver, mCurrentRowID, mPos, mRowIdColumnIndex, mUpdatedRowsFIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING| Constructor and Description |
|---|
BulkCursorToCursorAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
commitUpdates(java.util.Map<? extends java.lang.Long,? extends java.util.Map<java.lang.String,java.lang.Object>> additionalValues)
Deprecated.
|
void |
copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer) |
void |
deactivate() |
boolean |
deleteRow()
Deprecated.
|
static int |
findRowIdColumnIndex(java.lang.String[] columnNames)
Returns column index of "_id" column, or -1 if not found.
|
java.lang.String[] |
getColumnNames() |
int |
getCount() |
Bundle |
getExtras() |
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.
|
void |
registerContentObserver(ContentObserver observer) |
void |
registerDataSetObserver(DataSetObserver observer) |
boolean |
requery() |
Bundle |
respond(Bundle extras) |
void |
set(IBulkCursor bulkCursor) |
void |
set(IBulkCursor bulkCursor,
int count,
int idIndex)
Version of set() that does fewer Binder calls if the caller
already knows BulkCursorToCursorAdaptor's properties.
|
void |
unregisterContentObserver(ContentObserver observer) |
void |
unregisterDataSetObserver(DataSetObserver observer) |
checkPosition, getBlob, getDouble, getFloat, getInt, getLong, getShort, getString, getType, getWindow, hasWindow, isBlob, isFloat, isLong, isNull, isString, setWindowabortUpdates, commitUpdates, deactivateInternal, fillWindow, finalize, getColumnCount, getColumnIndex, getColumnIndexOrThrow, getColumnName, getDataSetObservable, getNotificationUri, getPosition, getUpdatedField, getWantsAllOnMoveCalls, hasUpdates, isAfterLast, isBeforeFirst, isClosed, isFieldUpdated, isFirst, isLast, move, moveToFirst, moveToLast, moveToNext, moveToPosition, moveToPrevious, notifyDataSetChange, onChange, setExtras, setNotificationUri, supportsUpdates, update, updateBlob, updateDouble, updateFloat, updateInt, updateLong, updateShort, updateString, updateToNullpublic void set(IBulkCursor bulkCursor)
public void set(IBulkCursor bulkCursor, int count, int idIndex)
public static int findRowIdColumnIndex(java.lang.String[] columnNames)
public IContentObserver getObserver()
public int getCount()
getCount in class AbstractCursorpublic boolean onMove(int oldPosition,
int newPosition)
AbstractCursoronMove in class AbstractCursoroldPosition - the position that we're moving fromnewPosition - the position that we're moving topublic void deactivate()
deactivate in class AbstractCursorpublic void close()
close in class AbstractCursorpublic boolean requery()
requery in class AbstractCursorpublic boolean deleteRow()
deleteRow in class AbstractCursorpublic java.lang.String[] getColumnNames()
getColumnNames in class AbstractCursorpublic boolean commitUpdates(java.util.Map<? extends java.lang.Long,? extends java.util.Map<java.lang.String,java.lang.Object>> additionalValues)
commitUpdates in class AbstractCursorpublic Bundle getExtras()
getExtras in class AbstractCursorpublic Bundle respond(Bundle extras)
respond in class AbstractCursorpublic void copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer)
copyStringToBuffer in class AbstractWindowedCursorpublic void registerContentObserver(ContentObserver observer)
registerContentObserver in class AbstractCursorpublic void registerDataSetObserver(DataSetObserver observer)
registerDataSetObserver in class AbstractCursorpublic void unregisterContentObserver(ContentObserver observer)
unregisterContentObserver in class AbstractCursorpublic void unregisterDataSetObserver(DataSetObserver observer)
unregisterDataSetObserver in class AbstractCursor