public void open ( ) throws SQLException , ClassNotFoundException { logger . info ( "Using database driver: " + jdbcDriver ) ; Class . forName ( jdbcDriver ) ; logger . info ( "Using database.url: " + jdbcURL ) ; // connect login/pass con = DriverManager . getConnection ( jdbcURL , user , password ) ; // Exception will be thrown if something went wrong connected = true ; }
Open a JDBC connection to the database