Java JDBC Derby Connection getDefaultDerbyConnection()

Here you can find the source of getDefaultDerbyConnection()

Description

get Default Derby Connection

License

Open Source License

Declaration

public static Connection getDefaultDerbyConnection()
            throws SQLException 

Method Source Code

//package com.java2s;
/*//from  www  .  ja  v a 2s .  c  om
 * (C) Copyright IBM Corp. 2011
 *
 * LICENSE: Eclipse Public License v1.0
 * http://www.eclipse.org/legal/epl-v10.html
 */

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

import java.sql.SQLException;

public class Main {
    public static Connection getDefaultDerbyConnection()
            throws SQLException {
        return DriverManager.getConnection("jdbc:default:connection"); //, getGaianNodeUser(), getGaianNodePassword());
        //      return DriverManager.getConnection("jdbc:derby://localhost:6414/gaiandb", getGaianNodeUser(), getGaianNodePassword());
    }
}

Related

  1. deleteTestData()
  2. existsInSessionTable(String id, boolean verbose)
  3. getConnection()
  4. getConnection()
  5. getDatabaseConnection()
  6. getDerbyConnection(String filename)
  7. getDerbyDatabaseProperty(Statement derbyStatementForQuerying, String propertyKey)
  8. getDerbyUnitConnection()
  9. getDriver(String className)