SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
final String from = sdf.format(date);
final String to = sdf.format(new Date());
// DAOを生成する
final OrcaMasterDao dao = new OrcaMasterDao();
DBTask<List<RegisteredDiagnosisModel>> task = new DBTask<List<RegisteredDiagnosisModel>>(getContext()){
@Override
protected List<RegisteredDiagnosisModel> doInBackground() throws Exception {
return dao.getOrcaDisease(patientId, from, to, ascend);
}
@Override
protected void succeeded(List<RegisteredDiagnosisModel> list) {
tableModel.addRows(list);