Code example for Driver

Methods: connect

0
        Properties props = new Properties();
        if (connectionName != null)
            props.put("user", connectionName);
        if (connectionPassword != null)
            props.put("password", connectionPassword);
        dbConnection = driver.connect(connectionURL, props);
        dbConnection.setAutoCommit(false);
        return (dbConnection);
 
    } 
 
 
    /** 
     * Release our use of this connection so that it can be recycled. 
     * 
     * @param dbConnection The connection to be released 
     */ 
    protected void release(Connection dbConnection) {
 
        ; // NO-OP since we are not pooling anything