예제 #1
0
 public static void customLoad(ArrayList list, String db, String sqry) throws Exception {
   BigliettoTreno model;
   for (CachedRowSet crs = Query.select(db, sqry); crs.next(); list.add(model)) {
     model = new BigliettoTreno();
     populate(model, crs);
   }
 }
예제 #2
0
  public static void load(BigliettoTreno model, String db, String id) throws Exception {
    ArrayList params = new ArrayList();
    params.add(id);

    CachedRowSet crs = Query.select(LOAD_BIGLIETTO_TRENO, params, db);
    if (crs.next()) {
      populate(model, crs);
    }
  }
예제 #3
0
 public static void customLoad(BigliettoTreno model, String db, String sqry) throws Exception {
   CachedRowSet crs = Query.select(db, sqry);
   if (crs.next()) {
     populate(model, crs);
   }
 }