public abstract class OrmLiteCursorAdapter<T,ViewType extends android.view.View>
extends android.widget.CursorAdapter
Modifier and Type | Field and Description |
---|---|
protected com.j256.ormlite.stmt.PreparedQuery<T> |
preparedQuery |
Constructor and Description |
---|
OrmLiteCursorAdapter(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
bindView(android.view.View itemView,
android.content.Context context,
android.database.Cursor cursor)
Final to prevent subclasses from accidentally overriding.
|
abstract void |
bindView(ViewType itemView,
android.content.Context context,
T item)
Bind the view to a particular item.
|
void |
changeCursor(android.database.Cursor cursor)
Show not be used.
|
void |
changeCursor(android.database.Cursor cursor,
com.j256.ormlite.stmt.PreparedQuery<T> preparedQuery)
Change the cursor associated with the prepared query.
|
protected T |
cursorToObject(android.database.Cursor cursor)
Map a single row to our cursor object.
|
protected void |
doBindView(android.view.View itemView,
android.content.Context context,
android.database.Cursor cursor)
This is here to make sure that the user really wants to override it.
|
T |
getTypedItem(int position)
Returns a T object at the current position.
|
void |
setPreparedQuery(com.j256.ormlite.stmt.PreparedQuery<T> preparedQuery) |
convertToString, getCount, getCursor, getDropDownView, getFilter, getFilterQueryProvider, getItem, getItemId, getView, hasStableIds, init, newDropDownView, newView, onContentChanged, runQueryOnBackgroundThread, setFilterQueryProvider, swapCursor
protected com.j256.ormlite.stmt.PreparedQuery<T> preparedQuery
public OrmLiteCursorAdapter(android.content.Context context)
public abstract void bindView(ViewType itemView, android.content.Context context, T item)
public final void bindView(android.view.View itemView, android.content.Context context, android.database.Cursor cursor)
doBindView(View, Context, Cursor)
.bindView
in class android.widget.CursorAdapter
CursorAdapter.bindView(View, Context, Cursor)
protected void doBindView(android.view.View itemView, android.content.Context context, android.database.Cursor cursor)
public T getTypedItem(int position)
protected T cursorToObject(android.database.Cursor cursor) throws SQLException
SQLException
public final void changeCursor(android.database.Cursor cursor)
changeCursor(Cursor, PreparedQuery)
changeCursor
in class android.widget.CursorAdapter
public void changeCursor(android.database.Cursor cursor, com.j256.ormlite.stmt.PreparedQuery<T> preparedQuery)
public void setPreparedQuery(com.j256.ormlite.stmt.PreparedQuery<T> preparedQuery)
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.