dk.netarkivet.harvester.datamodel
Enum HarvesterDatabaseTables

java.lang.Object
  extended by java.lang.Enum<HarvesterDatabaseTables>
      extended by dk.netarkivet.harvester.datamodel.HarvesterDatabaseTables
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HarvesterDatabaseTables>

public enum HarvesterDatabaseTables
extends java.lang.Enum<HarvesterDatabaseTables>

Enum class defining the tables of the Harvester database and the required versions of the individual tables.


Enum Constant Summary
CONFIGPASSWORDS
          The table containing information about config passwords.
CONFIGSEEDLISTS
          The table containing information about config seedlists.
CONFIGURATIONS
          The table containing information about domain-configurations.
DOMAINS
          The table containing information about domains.
EXTENDEDFIELD
          The table containing information about extended fields.
EXTENDEDFIELDTYPE
          The table containing information about extended field types.
EXTENDEDFIELDVALUE
          The table containing information about extended field values.
FRONTIERREPORTMONITOR
          The table containing information about frontier report monitor.
FULLHARVESTS
          The table containing information about full harvests.
GLOBALCRAWLERTRAPEXPRESSIONS
          The table containing information about global crawlertrap expressions.
GLOBALCRAWLERTRAPLISTS
          The table containing information about list of global crawlertraps.
HARVESTCONFIGS
          The table containing information about harvest configs
HARVESTDEFINITIONS
          The table containing information about harvestdefinitions.
HISTORYINFO
          The table containing information about history info.
JOBCONFIGS
          The table containing information about jobconfigs.
JOBS
          The table containing information about jobs.
ORDERTEMPLATES
          The table containing information about Heritrix templates.
OWNERINFO
          The table containing information about ownerinfo.
PARTIALHARVESTS
          The table containing information about partial harvests.
PASSWORDS
          The table containing information about passwords.
RUNNINGJOBSHISTORY
          The table containing information about running jobs history.
RUNNINGJOBSMONITOR
          The table containing information about running jobs monitor.
SCHEDULES
          The table containing information about harvest schedules.
SEEDLISTS
          The table containing information about seedlists.
 
Method Summary
static void checkVersion(java.sql.Connection connection, HarvesterDatabaseTables table)
          Check that a database table has the required version.
abstract  int getRequiredVersion()
           
abstract  java.lang.String getTablename()
           
static HarvesterDatabaseTables valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HarvesterDatabaseTables[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DOMAINS

public static final HarvesterDatabaseTables DOMAINS
The table containing information about domains.


CONFIGURATIONS

public static final HarvesterDatabaseTables CONFIGURATIONS
The table containing information about domain-configurations.


SEEDLISTS

public static final HarvesterDatabaseTables SEEDLISTS
The table containing information about seedlists.


PASSWORDS

public static final HarvesterDatabaseTables PASSWORDS
The table containing information about passwords. Currently not used.


OWNERINFO

public static final HarvesterDatabaseTables OWNERINFO
The table containing information about ownerinfo. Currently not used.


HISTORYINFO

public static final HarvesterDatabaseTables HISTORYINFO
The table containing information about history info.


CONFIGPASSWORDS

public static final HarvesterDatabaseTables CONFIGPASSWORDS
The table containing information about config passwords. Currently not used.


CONFIGSEEDLISTS

public static final HarvesterDatabaseTables CONFIGSEEDLISTS
The table containing information about config seedlists.


HARVESTDEFINITIONS

public static final HarvesterDatabaseTables HARVESTDEFINITIONS
The table containing information about harvestdefinitions.


PARTIALHARVESTS

public static final HarvesterDatabaseTables PARTIALHARVESTS
The table containing information about partial harvests.


FULLHARVESTS

public static final HarvesterDatabaseTables FULLHARVESTS
The table containing information about full harvests.


HARVESTCONFIGS

public static final HarvesterDatabaseTables HARVESTCONFIGS
The table containing information about harvest configs


SCHEDULES

public static final HarvesterDatabaseTables SCHEDULES
The table containing information about harvest schedules.


ORDERTEMPLATES

public static final HarvesterDatabaseTables ORDERTEMPLATES
The table containing information about Heritrix templates.


JOBS

public static final HarvesterDatabaseTables JOBS
The table containing information about jobs.


JOBCONFIGS

public static final HarvesterDatabaseTables JOBCONFIGS
The table containing information about jobconfigs.


GLOBALCRAWLERTRAPLISTS

public static final HarvesterDatabaseTables GLOBALCRAWLERTRAPLISTS
The table containing information about list of global crawlertraps.


GLOBALCRAWLERTRAPEXPRESSIONS

public static final HarvesterDatabaseTables GLOBALCRAWLERTRAPEXPRESSIONS
The table containing information about global crawlertrap expressions.


RUNNINGJOBSHISTORY

public static final HarvesterDatabaseTables RUNNINGJOBSHISTORY
The table containing information about running jobs history.


RUNNINGJOBSMONITOR

public static final HarvesterDatabaseTables RUNNINGJOBSMONITOR
The table containing information about running jobs monitor.


FRONTIERREPORTMONITOR

public static final HarvesterDatabaseTables FRONTIERREPORTMONITOR
The table containing information about frontier report monitor.


EXTENDEDFIELD

public static final HarvesterDatabaseTables EXTENDEDFIELD
The table containing information about extended fields.


EXTENDEDFIELDVALUE

public static final HarvesterDatabaseTables EXTENDEDFIELDVALUE
The table containing information about extended field values.


EXTENDEDFIELDTYPE

public static final HarvesterDatabaseTables EXTENDEDFIELDTYPE
The table containing information about extended field types.

Method Detail

values

public static HarvesterDatabaseTables[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (HarvesterDatabaseTables c : HarvesterDatabaseTables.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HarvesterDatabaseTables valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getRequiredVersion

public abstract int getRequiredVersion()
Returns:
required version of table.

getTablename

public abstract java.lang.String getTablename()
Returns:
name of database table.

checkVersion

public static void checkVersion(java.sql.Connection connection,
                                HarvesterDatabaseTables table)
Check that a database table has the required version. NB: the provided connection is not closed.

Parameters:
connection - connection to the database.
table - The table to check up against required version
Throws:
IllegalState - if the version isn't as required.