|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserver.DbUtilities
| Constructor Summary | |
DbUtilities()
|
|
| Method Summary | |
static void |
dbClose(java.sql.Connection dbConn)
Close the connection to the database. |
static java.sql.Connection |
dbConnection(Conf config)
Establishes a database connection to a specific database. |
static boolean |
dbIsAlive(java.sql.Connection dbConn)
Test the database connection for viability. |
static boolean |
executeUpdate(java.sql.Connection dbConn,
java.lang.String update)
Submit an update to the database, including INSERT and UPDATE statements. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DbUtilities()
| Method Detail |
public static java.sql.Connection dbConnection(Conf config)
throws java.lang.Exception
Since constructors cannot return values, this constructor throws an Exception if the connection to the ddatabase fails. This allows the caller to handle the failure.
config - Configuration information about the database
java.lang.Exceptionpublic static void dbClose(java.sql.Connection dbConn)
dbConn - Connection to the databasepublic static boolean dbIsAlive(java.sql.Connection dbConn)
dbConn - Connection to the database
public static boolean executeUpdate(java.sql.Connection dbConn,
java.lang.String update)
dbConn - Connection to the databaseupdate - String containing the INSERT or UPDATE SQL statement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||