|
0.0.2
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.metagloss.db.AssistCursor<T>
T - The table to work on.public class AssistCursor<T extends java.lang.Enum<T> & ITable>
A partial wrapper for the Cursor class, offering annotation-based setter injection
and automatic translation of column ids for SQL SELECT queries. Additionally provides
convenience methods for retrieving relevant data from the supplied Cursor object.
CursorBind,
ITable| Constructor Summary | |
|---|---|
AssistCursor(java.lang.Class<T> table,
android.database.Cursor cursor)
Creates a new AssistCursor. |
|
| Method Summary | |
|---|---|
double |
getDouble(T column)
|
float |
getFloat(T column)
|
int |
getInt(T column)
|
long |
getLong(T column)
|
java.lang.String |
getString(T column)
|
void |
inject(java.lang.Object data)
Injects the setters of the object to which the cursor relates. |
boolean |
next()
Moves to the next row in the result set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssistCursor(java.lang.Class<T> table,
android.database.Cursor cursor)
AssistCursor. The database columns are matched against the
column layout within the Cursor object upon instantiation.
table - The database table to work on.cursor - Cursor associated with a query on the supplied table.| Method Detail |
|---|
public double getDouble(T column)
public float getFloat(T column)
public int getInt(T column)
public long getLong(T column)
public java.lang.String getString(T column)
public void inject(java.lang.Object data)
Field or Method annotated with CursorBindset.Note:
Even if the desired field is annotated with CursorBind,
the appropriate setter method is still required.
inject in interface Injectordata - Object to be injected.public boolean next()
InjectionException
if any subsequent calls are made this this method after returning false.
next in interface Injector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||