|
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
public abstract class AbstractWindowedCursor
A base class for Cursors that store their data in CursorWindows.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.database.AbstractCursor |
|---|
AbstractCursor.SelfContentObserver |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class android.database.AbstractCursor |
|---|
mClosed, mContentObservable, mContentResolver, mCurrentRowID, mDataSetObservable, mPos, mRowIdColumnIndex, mUpdatedRows |
| Constructor Summary | |
|---|---|
AbstractWindowedCursor()
|
|
| Method Summary | |
|---|---|
protected void |
checkPosition()
This function throws CursorIndexOutOfBoundsException if the cursor position is out of bounds. |
void |
copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer)
Retrieves the requested column text and stores it in the buffer provided. |
byte[] |
getBlob(int columnIndex)
Returns the value of the requested column as a byte array. |
double |
getDouble(int columnIndex)
Returns the value of the requested column as a double. |
float |
getFloat(int columnIndex)
Returns the value of the requested column as a float. |
int |
getInt(int columnIndex)
Returns the value of the requested column as an int. |
long |
getLong(int columnIndex)
Returns the value of the requested column as a long. |
short |
getShort(int columnIndex)
Returns the value of the requested column as a short. |
String |
getString(int columnIndex)
Returns the value of the requested column as a String. |
CursorWindow |
getWindow()
returns a pre-filled window, return NULL if no such window |
boolean |
hasWindow()
|
boolean |
isBlob(int columnIndex)
|
boolean |
isNull(int columnIndex)
Returns true if the value in the indicated column is null. |
void |
setWindow(CursorWindow window)
Set a new cursor window to cursor, usually set a remote cursor window |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CursorWindow mWindow
AbstractCursor.onMove(int, int) by subclasses, and
needs to be set to NULL when the contents of the cursor change.
| Constructor Detail |
|---|
public AbstractWindowedCursor()
| Method Detail |
|---|
public byte[] getBlob(int columnIndex)
CursorIf the native content of that column is not blob exception may throw
getBlob in interface CursorgetBlob in class AbstractCursorcolumnIndex - the zero-based index of the target column.
public String getString(int columnIndex)
CursorIf the native content of that column is not text the result will be the result of passing the column value to String.valueOf(x).
getString in interface CursorgetString in class AbstractCursorcolumnIndex - the zero-based index of the target column.
public void copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer)
Cursor
copyStringToBuffer in interface CursorcopyStringToBuffer in class AbstractCursorcolumnIndex - the zero-based index of the target column.
if the target column is null, return bufferbuffer - the buffer to copy the text into.public short getShort(int columnIndex)
CursorIf the native content of that column is not numeric the result will be the result of passing the column value to Short.valueOf(x).
getShort in interface CursorgetShort in class AbstractCursorcolumnIndex - the zero-based index of the target column.
public int getInt(int columnIndex)
CursorIf the native content of that column is not numeric the result will be the result of passing the column value to Integer.valueOf(x).
getInt in interface CursorgetInt in class AbstractCursorcolumnIndex - the zero-based index of the target column.
public long getLong(int columnIndex)
CursorIf the native content of that column is not numeric the result will be the result of passing the column value to Long.valueOf(x).
getLong in interface CursorgetLong in class AbstractCursorcolumnIndex - the zero-based index of the target column.
public float getFloat(int columnIndex)
CursorIf the native content of that column is not numeric the result will be the result of passing the column value to Float.valueOf(x).
getFloat in interface CursorgetFloat in class AbstractCursorcolumnIndex - the zero-based index of the target column.
public double getDouble(int columnIndex)
CursorIf the native content of that column is not numeric the result will be the result of passing the column value to Double.valueOf(x).
getDouble in interface CursorgetDouble in class AbstractCursorcolumnIndex - the zero-based index of the target column.
public boolean isNull(int columnIndex)
Cursortrue if the value in the indicated column is null.
isNull in interface CursorisNull in class AbstractCursorcolumnIndex - the zero-based index of the target column.
public boolean isBlob(int columnIndex)
protected void checkPosition()
AbstractCursor
checkPosition in class AbstractCursorpublic CursorWindow getWindow()
AbstractCursor
getWindow in interface CrossProcessCursorgetWindow in class AbstractCursorpublic void setWindow(CursorWindow window)
window - cursor windowpublic boolean hasWindow()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||