Java JDBC Derby Connection createAndOpen(String databaseName)

Here you can find the source of createAndOpen(String databaseName)

Description

create And Open

License

Open Source License

Declaration

public static Connection createAndOpen(String databaseName) throws SQLException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Main {
    public static Connection createAndOpen(String databaseName) throws SQLException {
        return DriverManager.getConnection("jdbc:derby:" + databaseName + ";create=true");
    }/* w w w . ja  va2 s .co m*/
}

Related

  1. cleanUpTest(Statement s, String[] testObjects)
  2. closeConnection()
  3. closeDB()
  4. createConnection()
  5. createConnection(String userName, String password)
  6. createXATransactionView(Statement s)
  7. deleteTestData()