public abstract class AbstractWindowedCursor extends AbstractCursor
CursorWindows.AbstractCursor.SelfContentObserver| Modifier and Type | Field and Description |
|---|---|
protected CursorWindow |
mWindow
This needs be updated in
AbstractCursor.onMove(int, int) by subclasses, and
needs to be set to NULL when the contents of the cursor change. |
mClosed, mContentResolver, mCurrentRowID, mPos, mRowIdColumnIndex, mUpdatedRowsFIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING| Constructor and Description |
|---|
AbstractWindowedCursor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkPosition()
This function throws CursorIndexOutOfBoundsException if
the cursor position is out of bounds.
|
void |
copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer) |
byte[] |
getBlob(int columnIndex) |
double |
getDouble(int columnIndex) |
float |
getFloat(int columnIndex) |
int |
getInt(int columnIndex) |
long |
getLong(int columnIndex) |
short |
getShort(int columnIndex) |
java.lang.String |
getString(int columnIndex) |
int |
getType(int columnIndex)
Returns data type of the given column's value.
|
CursorWindow |
getWindow()
returns a pre-filled window, return NULL if no such window
|
boolean |
hasWindow() |
boolean |
isBlob(int columnIndex) |
boolean |
isFloat(int columnIndex) |
boolean |
isLong(int columnIndex) |
boolean |
isNull(int columnIndex) |
boolean |
isString(int columnIndex) |
void |
setWindow(CursorWindow window)
Set a new cursor window to cursor, usually set a remote cursor window
|
abortUpdates, close, commitUpdates, commitUpdates, deactivate, deactivateInternal, deleteRow, fillWindow, finalize, getColumnCount, getColumnIndex, getColumnIndexOrThrow, getColumnName, getColumnNames, getCount, getDataSetObservable, getExtras, getNotificationUri, getPosition, getUpdatedField, getWantsAllOnMoveCalls, hasUpdates, isAfterLast, isBeforeFirst, isClosed, isFieldUpdated, isFirst, isLast, move, moveToFirst, moveToLast, moveToNext, moveToPosition, moveToPrevious, notifyDataSetChange, onChange, onMove, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, supportsUpdates, unregisterContentObserver, unregisterDataSetObserver, update, updateBlob, updateDouble, updateFloat, updateInt, updateLong, updateShort, updateString, updateToNullprotected CursorWindow mWindow
AbstractCursor.onMove(int, int) by subclasses, and
needs to be set to NULL when the contents of the cursor change.public byte[] getBlob(int columnIndex)
getBlob in class AbstractCursorpublic java.lang.String getString(int columnIndex)
getString in class AbstractCursorpublic void copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer)
copyStringToBuffer in class AbstractCursorpublic short getShort(int columnIndex)
getShort in class AbstractCursorpublic int getInt(int columnIndex)
getInt in class AbstractCursorpublic long getLong(int columnIndex)
getLong in class AbstractCursorpublic float getFloat(int columnIndex)
getFloat in class AbstractCursorpublic double getDouble(int columnIndex)
getDouble in class AbstractCursorpublic boolean isNull(int columnIndex)
isNull in class AbstractCursorpublic boolean isBlob(int columnIndex)
public boolean isString(int columnIndex)
public boolean isLong(int columnIndex)
public boolean isFloat(int columnIndex)
public int getType(int columnIndex)
Cursor#getInt(int), #getFloat(int)
etc.
Returned column types are
getType in interface CursorgetType in class AbstractCursorcolumnIndex - the zero-based index of the target column.protected void checkPosition()
AbstractCursorcheckPosition in class AbstractCursorpublic CursorWindow getWindow()
AbstractCursorgetWindow in class AbstractCursorpublic void setWindow(CursorWindow window)
window - cursor windowpublic boolean hasWindow()