1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| public ArrayList<Match> renvoi_liste_match(){
Cursor objCursor = bdd.query(TABLE_MATCH,null,null,null,null,null,null,null);//requete de récupération de la liste
ArrayList<Match> aTableRetour = new ArrayList<Match>();
//int nbe=objCursor.getCount();
//int i;
objCursor.moveToFirst();// position sur la première ligne
if (objCursor != null) {
aTableRetour.add(cursorToMatch1(objCursor,20));
aTableRetour.add(cursorToMatch1(objCursor,21));
/*aTableRetour.add(resultmatch);*/
//enregistrement du nom de la recette dans tableau
//positionnement sur le suivant
}
return aTableRetour;
} |