|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.common.utils.SettingsFactory<DBSpecifics>
dk.netarkivet.harvester.datamodel.DBSpecifics
dk.netarkivet.harvester.datamodel.MySQLSpecifics
public class MySQLSpecifics
MySQL-specific implementation of DB methods.
Field Summary | |
---|---|
(package private) org.apache.commons.logging.Log |
log
The log. |
Constructor Summary | |
---|---|
MySQLSpecifics()
|
Method Summary | |
---|---|
void |
backupDatabase(java.io.File backupDir)
Backup the database. |
void |
dropJobConfigsTmpTable(java.sql.Connection c,
java.lang.String tableName)
Dispose of a temporary table created with getTemporaryTable. |
java.lang.String |
getDriverClassName()
Get the name of the JDBC driver class that handles interfacing to this server. |
static DBSpecifics |
getInstance()
Get an instance of the MySQL specifics class. |
java.lang.String |
getJobConfigsTmpTable(java.sql.Connection c)
Get a temporary table for short-time use. |
protected void |
migrateJobsv3tov4()
Migrates the 'jobs' table from version 3 to version 4 consisting of a change of the field forcemaxbytes from int to bigint and setting its default to -1. |
void |
shutdownDatabase()
Shutdown the database system, if running embeddedly. |
Methods inherited from class dk.netarkivet.harvester.datamodel.DBSpecifics |
---|
updateTable |
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 |
---|
org.apache.commons.logging.Log log
Constructor Detail |
---|
public MySQLSpecifics()
Method Detail |
---|
public static DBSpecifics getInstance()
public void shutdownDatabase()
shutdownDatabase
in class DBSpecifics
public java.lang.String getJobConfigsTmpTable(java.sql.Connection c) throws java.sql.SQLException
getJobConfigsTmpTable
in class DBSpecifics
c
- The DB connection to use.
java.sql.SQLException
- if there is a problem getting the table.public void dropJobConfigsTmpTable(java.sql.Connection c, java.lang.String tableName)
dropJobConfigsTmpTable
in class DBSpecifics
c
- The DB connection to use.tableName
- The name of the temporary tablepublic void backupDatabase(java.io.File backupDir) throws java.sql.SQLException
backupDatabase
in class DBSpecifics
backupDir
- Directory to which the database should be backed up
java.sql.SQLException
public java.lang.String getDriverClassName()
getDriverClassName
in class DBSpecifics
protected void migrateJobsv3tov4()
migrateJobsv3tov4
in class DBSpecifics
IOFailure
- in case of problems in interacting with the database
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |