|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.SettingsFactory<DBSpecifics> dk.netarkivet.archive.arcrepositoryadmin.DBSpecifics
public abstract class DBSpecifics
Abstract collection of DB methods that are not standard SQL. This class is a singleton class whose actual implementation is provided by a subclass as determined by the DB_SPECIFICS_CLASS setting.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
The log of this class. |
Constructor Summary | |
---|---|
DBSpecifics()
|
Method Summary | |
---|---|
abstract void |
backupDatabase(java.sql.Connection c,
java.io.File backupDir)
Backup the database. |
abstract java.lang.String |
getDriverClassName()
Get the name of the JDBC driver class that handles interfacing to this server. |
static DBSpecifics |
getInstance()
Get the singleton instance of the DBSpecifics implementation class. |
abstract void |
shutdownDatabase()
Shutdown the database system, if running embeddedly. |
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory |
---|
getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.logging.Log log
Constructor Detail |
---|
public DBSpecifics()
Method Detail |
---|
public static DBSpecifics getInstance()
public abstract void shutdownDatabase()
public abstract void backupDatabase(java.sql.Connection c, java.io.File backupDir) throws java.sql.SQLException, PermissionDenied
backupDir
- Directory to which the database should be backed upc
- The connection to the database.
java.sql.SQLException
- On SQL trouble backing up database
PermissionDenied
- if the directory cannot be created.public abstract java.lang.String getDriverClassName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |