Exemple #1
0
 @Override
 public void connect(
     String host, String user, String pass, String base, String port, String options)
     throws ClassNotFoundException, SQLException {
   super.connect(host, user, pass, base, port, options);
   driver = "org.sqlite.JDBC";
 }
Exemple #2
0
 @Override
 protected synchronized void _connect() throws ClassNotFoundException, SQLException {
   super._connect();
   Class.forName(driver);
   System.out.println(System.getProperty("dbPath"));
   connection = DriverManager.getConnection(getURL(), params.getUser(), params.getPass());
 }
Exemple #3
0
 @Override
 public void close() throws SQLException {
   super.close();
   connection = null;
 }