public abstract class AbstractWindowedCursor extends AbstractCursor
CursorWindow
s.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, mUpdatedRows
FIELD_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, updateToNull
protected 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 AbstractCursor
public java.lang.String getString(int columnIndex)
getString
in class AbstractCursor
public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
copyStringToBuffer
in class AbstractCursor
public short getShort(int columnIndex)
getShort
in class AbstractCursor
public int getInt(int columnIndex)
getInt
in class AbstractCursor
public long getLong(int columnIndex)
getLong
in class AbstractCursor
public float getFloat(int columnIndex)
getFloat
in class AbstractCursor
public double getDouble(int columnIndex)
getDouble
in class AbstractCursor
public boolean isNull(int columnIndex)
isNull
in class AbstractCursor
public 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 Cursor
getType
in class AbstractCursor
columnIndex
- the zero-based index of the target column.protected void checkPosition()
AbstractCursor
checkPosition
in class AbstractCursor
public CursorWindow getWindow()
AbstractCursor
getWindow
in class AbstractCursor
public void setWindow(CursorWindow window)
window
- cursor windowpublic boolean hasWindow()