use of org.robobinding.gallery.model.typedcursor.ProductRowMapper in project RoboBinding-gallery by RoboBinding.
the class TypedCursorActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GetAllQuery<Product> allProductsQuery = new GetAllQuery<Product>(ProductTable.TABLE_NAME, new ProductRowMapper());
db = getDatabaseHelper().getReadableDatabase();
presentationModel = new TypedCursorPresentationModel(db, allProductsQuery);
initializeContentView(R.layout.activity_typed_cursor, presentationModel);
}
Aggregations