public class DerbyEmbeddedSpecifics extends DerbySpecifics
log
Constructor and Description |
---|
DerbyEmbeddedSpecifics() |
Modifier and Type | Method and Description |
---|---|
void |
backupDatabase(Connection c,
File backupDir)
Backup the database.
|
String |
getDriverClassName()
Get the name of the JDBC driver class that handles interfacing to this server.
|
static DBSpecifics |
getInstance()
Get an instance of the Embedded Derby specifics.
|
void |
shutdownDatabase()
Shutdown the database system, if running in embedded mode.
|
getInstance
public DerbyEmbeddedSpecifics()
public static DBSpecifics getInstance()
public void shutdownDatabase()
Will log a warning on errors, but otherwise ignore them.
shutdownDatabase
in class DBSpecifics
public void backupDatabase(Connection c, File backupDir) throws PermissionDenied, ArgumentNotValid, IOFailure
backupDatabase
in class DBSpecifics
backupDir
- Directory to which the database should be backed upc
- The connection to the database.PermissionDenied
- if the directory cannot be created.IOFailure
- If we cannot connect to the databaseArgumentNotValid
- If the connection or the backupDir if null.public String getDriverClassName()
getDriverClassName
in class DBSpecifics
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.