|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.afecs.sqldb.DbConnection
public class DbConnection
JSA: Thomas Jefferson National Accelerator Facility
This software was developed under a United States Government license,
described in the NOTICE file included as part of this distribution.
Copyright (c), Aug 17, 2009
Method Summary | |
---|---|
static void |
closeConnection()
This method closes the database connection. |
static boolean |
createConnection(java.lang.String _url,
java.lang.String _driver,
java.lang.String _user,
java.lang.String _pswd)
Create a connection to the database specified by the arguments. |
static java.sql.Connection |
getConnection()
This method returns the database connection object. |
static boolean |
isConnected()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isConnected()
public static java.sql.Connection getConnection()
public static void closeConnection()
public static boolean createConnection(java.lang.String _url, java.lang.String _driver, java.lang.String _user, java.lang.String _pswd) throws AException
_url
- URL for the database, i.e. jdbc:msql://mizar.jlab.org:8101/ghexp_driver
- jdbc driver suitable for associated URL, i.e. com.imaginary.sql.msql.MsqlDriver_user
- user name for the database, i.e. any string for msql_pswd
- password name for the database, i.e. blank string for msql
true
if a new connection to the database was successfully made, or
false
if the database connection already exists
AException
- object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |