public abstract class AbstractCursor extends Object implements CrossProcessCursor
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractCursor.SelfContentObserver |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mClosed |
protected ContentResolver |
mContentResolver |
protected Long |
mCurrentRowID
Deprecated.
|
protected int |
mPos |
protected int |
mRowIdColumnIndex
Deprecated.
|
protected HashMap<Long,Map<String,Object>> |
mUpdatedRows
Deprecated.
|
FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING| Constructor and Description |
|---|
AbstractCursor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkPosition() |
void |
close() |
void |
copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer) |
void |
deactivate() |
void |
fillWindow(int position,
CursorWindow window) |
protected void |
finalize() |
byte[] |
getBlob(int column) |
int |
getColumnCount() |
int |
getColumnIndex(String columnName) |
int |
getColumnIndexOrThrow(String columnName) |
String |
getColumnName(int columnIndex) |
abstract String[] |
getColumnNames() |
abstract int |
getCount() |
abstract double |
getDouble(int column) |
Bundle |
getExtras() |
abstract float |
getFloat(int column) |
abstract int |
getInt(int column) |
abstract long |
getLong(int column) |
Uri |
getNotificationUri() |
int |
getPosition() |
abstract short |
getShort(int column) |
abstract String |
getString(int column) |
int |
getType(int column) |
protected Object |
getUpdatedField(int columnIndex)
Deprecated.
|
boolean |
getWantsAllOnMoveCalls() |
CursorWindow |
getWindow() |
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isClosed() |
protected boolean |
isFieldUpdated(int columnIndex)
Deprecated.
|
boolean |
isFirst() |
boolean |
isLast() |
abstract boolean |
isNull(int column) |
boolean |
move(int offset) |
boolean |
moveToFirst() |
boolean |
moveToLast() |
boolean |
moveToNext() |
boolean |
moveToPosition(int position) |
boolean |
moveToPrevious() |
protected void |
onChange(boolean selfChange) |
boolean |
onMove(int oldPosition,
int newPosition) |
void |
registerContentObserver(ContentObserver observer) |
void |
registerDataSetObserver(DataSetObserver observer) |
boolean |
requery() |
Bundle |
respond(Bundle extras) |
void |
setNotificationUri(ContentResolver cr,
Uri notifyUri) |
void |
unregisterContentObserver(ContentObserver observer) |
void |
unregisterDataSetObserver(DataSetObserver observer) |
protected int mPos
@Deprecated protected int mRowIdColumnIndex
@Deprecated protected Long mCurrentRowID
protected boolean mClosed
protected ContentResolver mContentResolver
public abstract String[] getColumnNames()
getColumnNames in interface Cursorpublic CursorWindow getWindow()
getWindow in interface CrossProcessCursorpublic int getColumnCount()
getColumnCount in interface Cursorpublic void deactivate()
deactivate in interface Cursorpublic void close()
public boolean onMove(int oldPosition,
int newPosition)
onMove in interface CrossProcessCursorpublic void copyStringToBuffer(int columnIndex,
CharArrayBuffer buffer)
copyStringToBuffer in interface Cursorpublic final int getPosition()
getPosition in interface Cursorpublic final boolean moveToPosition(int position)
moveToPosition in interface Cursorpublic void fillWindow(int position,
CursorWindow window)
fillWindow in interface CrossProcessCursorpublic final boolean moveToFirst()
moveToFirst in interface Cursorpublic final boolean moveToLast()
moveToLast in interface Cursorpublic final boolean moveToNext()
moveToNext in interface Cursorpublic final boolean moveToPrevious()
moveToPrevious in interface Cursorpublic final boolean isBeforeFirst()
isBeforeFirst in interface Cursorpublic final boolean isAfterLast()
isAfterLast in interface Cursorpublic int getColumnIndex(String columnName)
getColumnIndex in interface Cursorpublic int getColumnIndexOrThrow(String columnName)
getColumnIndexOrThrow in interface Cursorpublic String getColumnName(int columnIndex)
getColumnName in interface Cursorpublic void registerContentObserver(ContentObserver observer)
registerContentObserver in interface Cursorpublic void unregisterContentObserver(ContentObserver observer)
unregisterContentObserver in interface Cursorpublic void registerDataSetObserver(DataSetObserver observer)
registerDataSetObserver in interface Cursorpublic void unregisterDataSetObserver(DataSetObserver observer)
unregisterDataSetObserver in interface Cursorprotected void onChange(boolean selfChange)
public void setNotificationUri(ContentResolver cr, Uri notifyUri)
setNotificationUri in interface Cursorpublic Uri getNotificationUri()
public boolean getWantsAllOnMoveCalls()
getWantsAllOnMoveCalls in interface Cursor@Deprecated protected boolean isFieldUpdated(int columnIndex)
@Deprecated protected Object getUpdatedField(int columnIndex)
protected void checkPosition()
Copyright © 2008-2013. All Rights Reserved.