public final class BulkCursorToCursorAdaptor extends AbstractWindowedCursor
IBulkCursor
to a Cursor
for use in the local
process.
AbstractCursor.SelfContentObserver
mWindow
mClosed, mContentResolver, mCurrentRowID, mPos, mRowIdColumnIndex, mUpdatedRows
FIELD_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, setWindow
abortUpdates, 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, setNotificationUri, supportsUpdates, update, updateBlob, updateDouble, updateFloat, updateInt, updateLong, updateShort, updateString, updateToNull
public 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 AbstractCursor
public boolean onMove(int oldPosition, int newPosition)
AbstractCursor
onMove
in class AbstractCursor
oldPosition
- the position that we're moving fromnewPosition
- the position that we're moving topublic void deactivate()
deactivate
in class AbstractCursor
public void close()
close
in class AbstractCursor
public boolean requery()
requery
in class AbstractCursor
public boolean deleteRow()
deleteRow
in class AbstractCursor
public java.lang.String[] getColumnNames()
getColumnNames
in class AbstractCursor
public boolean commitUpdates(java.util.Map<? extends java.lang.Long,? extends java.util.Map<java.lang.String,java.lang.Object>> additionalValues)
commitUpdates
in class AbstractCursor
public Bundle getExtras()
getExtras
in class AbstractCursor
public Bundle respond(Bundle extras)
respond
in class AbstractCursor
public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
copyStringToBuffer
in class AbstractWindowedCursor
public void registerContentObserver(ContentObserver observer)
registerContentObserver
in class AbstractCursor
public void registerDataSetObserver(DataSetObserver observer)
registerDataSetObserver
in class AbstractCursor
public void unregisterContentObserver(ContentObserver observer)
unregisterContentObserver
in class AbstractCursor
public void unregisterDataSetObserver(DataSetObserver observer)
unregisterDataSetObserver
in class AbstractCursor