public abstract class DBSpecifics extends SettingsFactory<DBSpecifics>
Constructor and Description |
---|
DBSpecifics() |
Modifier and Type | Method and Description |
---|---|
abstract void |
backupDatabase(Connection c,
File backupDir)
Backup the database.
|
abstract 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 in embedded mode.
|
getInstance
public DBSpecifics()
public static DBSpecifics getInstance()
public abstract void shutdownDatabase()
Will log a warning on errors, but otherwise ignore them.
public abstract void backupDatabase(Connection c, File backupDir) throws SQLException, PermissionDenied
backupDir
- Directory to which the database should be backed upc
- The connection to the database.SQLException
- On SQL trouble backing up databasePermissionDenied
- if the directory cannot be created.public abstract String getDriverClassName()
Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.