|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.archive.arcrepositoryadmin.DBConnect
public final class DBConnect
Logic to connect with the harvest definition database. This also defines basic logic for checking versions of tables. The statements to create the tables are in scripts/sql/createBitpreservationDB.sql
Method Summary | |
---|---|
static void |
cleanup()
Clears the pool of connections. |
static java.lang.String |
getArchiveUrl()
Method for retrieving the url for the archive database. |
static java.sql.Connection |
getDBConnection(java.lang.String dbUrl)
Get a connection to our database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.sql.Connection getDBConnection(java.lang.String dbUrl) throws IOFailure, ArgumentNotValid
dbUrl
- The url to the database.
IOFailure
- if we cannot connect to the database (or find the
driver).
ArgumentNotValid
- If the dbUrl is either null or the empty string.public static java.lang.String getArchiveUrl()
public static void cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |