Enum HarvesterDatabaseTables
- java.lang.Object
-
- java.lang.Enum<HarvesterDatabaseTables>
-
- dk.netarkivet.harvester.datamodel.HarvesterDatabaseTables
-
- All Implemented Interfaces:
Serializable
,Comparable<HarvesterDatabaseTables>
public enum HarvesterDatabaseTables extends Enum<HarvesterDatabaseTables>
Enum class defining the tables of the Harvester database and the required versions of the individual tables.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.EAVATTRIBUTE
Harvest channels.EAVTYPEATTRIBUTE
Harvest channels.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.HARVESTCHANNELS
Harvest channels.HARVESTCONFIGS
The table containing information about harvest configsHARVESTDEFINITIONS
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
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static void
checkVersion(Connection connection, HarvesterDatabaseTables table)
Check that a database table has the required version.abstract int
getRequiredVersion()
abstract String
getTablename()
static HarvesterDatabaseTables
valueOf(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.
-
-
-
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.
-
HARVESTCHANNELS
public static final HarvesterDatabaseTables HARVESTCHANNELS
Harvest channels.
-
EAVTYPEATTRIBUTE
public static final HarvesterDatabaseTables EAVTYPEATTRIBUTE
Harvest channels.
-
EAVATTRIBUTE
public static final HarvesterDatabaseTables EAVATTRIBUTE
Harvest channels.
-
-
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(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getRequiredVersion
public abstract int getRequiredVersion()
- Returns:
- required version of table.
-
getTablename
public abstract String getTablename()
- Returns:
- name of database table.
-
checkVersion
public static void checkVersion(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.
-
-