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); } }
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); } }
public static void customLoad(BigliettoTreno model, String db, String sqry) throws Exception { CachedRowSet crs = Query.select(db, sqry); if (crs.next()) { populate(model, crs); } }