use of ca.etsmtl.applets.etsmobile.model.ElementEvaluation in project ETSMobile-Android2 by ApplETS.
the class NoteManager method getElementsEvaluation.
public List<ElementEvaluation> getElementsEvaluation(ListeDesElementsEvaluation listeDesElementsEvaluation) {
DatabaseHelper dbHelper = new DatabaseHelper(context);
List<ElementEvaluation> elementEvaluationList = null;
try {
Dao<ElementEvaluation, String> elementsEvaluationDao = dbHelper.getDao(ElementEvaluation.class);
QueryBuilder<ElementEvaluation, String> builder = elementsEvaluationDao.queryBuilder();
Where where = builder.where();
where.eq("listeDesElementsEvaluation_id", listeDesElementsEvaluation);
where.and();
elementEvaluationList = builder.query();
} catch (SQLException e) {
Log.e("SQL Exception", e.getMessage());
}
return elementEvaluationList;
}
Aggregations