public ArrayList < PatientInfo > getAllPatients(String username) {
ArrayList < PatientInfo > patients = new ArrayList < PatientInfo > ();
open();
Cursor cursor = db.query(UserTable, null, null, null, null, null, AccessedDate);
while (cursor != null && cursor.moveToNext()) {
try {
} catch (Exception ex) {
//Log.e("XXX", ex.getMessage());
}
}
if (cursor != null)
cursor.close();
close();
Collections.reverse(patients);
return patients;
}
我在我的方法中获取用户名作为参数,我如何根据用户名查询我的表并获取user specific result
.