Java JDBC HSQL Connection getHSQLConnection()

Here you can find the source of getHSQLConnection()

Description

get HSQL Connection

License

Open Source License

Declaration

private static Connection getHSQLConnection() throws Exception 

Method Source Code

//package com.java2s;

import java.sql.Connection;

import java.sql.DriverManager;

public class Main {
    private static Connection getHSQLConnection() throws Exception {
        Class.forName("org.hsqldb.jdbcDriver");
        System.out.println("Driver Loaded.");
        String url = "jdbc:hsqldb:data/tutorial";
        return DriverManager.getConnection(url, "sa", "");
    }/*from w w w  .j  av  a  2  s.  c  om*/
}

Related

  1. createHSQLDBConnection(String hsqldbName)
  2. createSchemasForHSQLDB(String dbName, String[] schemaNames)
  3. getConnection()
  4. getDbConnection()
  5. createTweetTable()
  6. printSchema()
  7. stopHSQL()