url = props.getProperty(name + ".url"); driver = props.getProperty(name + ".driver"); isOracle = driver != null && driver.startsWith("oracle.jdbc.driver"); Class.forName(driver); user = props.getProperty(name + ".user"); password = props.getProperty(name + ".password");
conProps=new Properties(); for (Enumeration e = props.keys(); e.hasMoreElements(); ) { String key = (String) e.nextElement(); if (!key.startsWith(name)) continue; if (key.equals(name + ".url")) { url = props.getProperty(name + ".url"); continue; } if (key.equals(name + ".driver")) { driver = props.getProperty(name + ".driver"); isOracle = driver != null && driver.startsWith("oracle.jdbc"); Class.forName(driver); continue; } conProps.setProperty(key.substring(name.length()+1), props.getProperty(key)); }
    private void init() throws ClassNotFoundException {        lastRead = (defaultProps == null) ? props.lastModified()                                          : Math.max(props.lastModified(),                                                     defaultProps.lastModified());        url = props.getProperty(name + ".url");        driver = props.getProperty(name + ".driver");        isOracle = driver != null && driver.startsWith("oracle.jdbc.driver");        Class.forName(driver);        user = props.getProperty(name + ".user");        password = props.getProperty(name + ".password");    }