|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.c5corp.c5utm.DbHelper
public class DbHelper
public class DbHelper
DbHelper.java - part of Landscape database (otherwise known as the C5UTM
database). This class provides static methods,
protected static Connection getDbConnection()
and
protected static Connection getUpdateDbConnection()
that can
be used to get a java.sql.Connection object to the C5UTM database. The
closeDbConnection(Connection connection)
method can be used to
return (close) the connection object.
Constructor Summary | |
---|---|
DbHelper()
|
Method Summary | |
---|---|
static void |
closeDbConnection(java.sql.Connection connection)
Tidys up the db connection. |
static java.sql.Connection |
getDbConnection()
Helps get a db connection that can read from the database |
static java.sql.Connection |
getDbConnection(java.lang.String path)
Helps get a db connection |
static java.sql.Connection |
getUpdateDbConnection()
Helps get a db connection that can write to or update the database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbHelper()
Method Detail |
---|
public static java.sql.Connection getDbConnection()
Connection
public static java.sql.Connection getUpdateDbConnection()
Connection
public static java.sql.Connection getDbConnection(java.lang.String path)
path
- path to the configuration file
Connection
public static void closeDbConnection(java.sql.Connection connection)
connection
- the Connection to closeConnection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |