|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.database.CursorWrapper
com.todoroo.andlib.data.TodorooCursor<TYPE>
TYPE - a model type that is returned by this cursorpublic class TodorooCursor<TYPE extends AbstractModel>
AstridCursor wraps a cursor and allows users to query for individual
Property types or read an entire AbstractModel from
a database row.
| Nested Class Summary | |
|---|---|
static class |
TodorooCursor.CursorReadingVisitor
Visitor that reads the given property from a cursor |
| Constructor Summary | |
|---|---|
TodorooCursor(android.database.Cursor cursor,
Property<?>[] properties)
Create an AstridCursor from the supplied Cursor
object. |
|
| Method Summary | ||
|---|---|---|
|
get(Property<PROPERTY_TYPE> property)
Get the value for the given property on the underlying Cursor |
|
int |
getColumnIndexFromCache(java.lang.String field)
Use cache to get the column index for the given field name |
|
Property<?>[] |
getProperties()
Gets entire property list |
|
| Methods inherited from class android.database.CursorWrapper |
|---|
close, copyStringToBuffer, deactivate, getBlob, getColumnCount, getColumnIndex, getColumnIndexOrThrow, getColumnName, getColumnNames, getCount, getDouble, getExtras, getFloat, getInt, getLong, getPosition, getShort, getString, getWantsAllOnMoveCalls, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isNull, move, moveToFirst, moveToLast, moveToNext, moveToPosition, moveToPrevious, registerContentObserver, registerDataSetObserver, requery, respond, setNotificationUri, unregisterContentObserver, unregisterDataSetObserver |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TodorooCursor(android.database.Cursor cursor,
Property<?>[] properties)
AstridCursor from the supplied Cursor
object.
cursor - properties - properties read from this cursor| Method Detail |
|---|
public <PROPERTY_TYPE> PROPERTY_TYPE get(Property<PROPERTY_TYPE> property)
Cursor
PROPERTY_TYPE - type to returnproperty - to retrieve
public Property<?>[] getProperties()
public int getColumnIndexFromCache(java.lang.String field)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||