/** * Constructor for cases when a DataSource is readily available (and not retrieved through JNDI). * * @param ds * the existing DataSource. * @param updateSchema * set to true if the database schema should upgrade (if needed) during initialization */ public Db(DataSource ds, boolean updateSchema) { this._ds = ds; this.p = new Properties(); init(updateSchema); }
/** * Constructor for cases when a DataSource is readily available (and not retrieved through JNDI). * * @param ds * the existing DataSource. * @param updateSchema * set to true if the database schema should upgrade (if needed) during initialization */ public Db(DataSource ds, boolean updateSchema) { this._ds = ds; this.p = new Properties(); init(updateSchema); }