dk.netarkivet.harvester.datamodel.extendedfield
Class ExtendedFieldTypeDBDAO

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldTypeDAO
      extended by dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldTypeDBDAO

public class ExtendedFieldTypeDBDAO
extends ExtendedFieldTypeDAO

Implementation of the ExtendedFieldTypeDAO interface for creating and accessing extended fields in persistent storage.


Field Summary
 
Fields inherited from class dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldTypeDAO
instance
 
Constructor Summary
protected ExtendedFieldTypeDBDAO()
          Default constructor of this class.
 
Method Summary
 boolean exists(java.lang.Long aExtendedfieldtypeId)
          Tests if exists an ExtendedFieldType with the given ID.
 java.util.List<ExtendedFieldType> getAll()
           
 ExtendedFieldType read(java.lang.Long aExtendedfieldtypeId)
          Read an ExtendedFieldType belonging to the given id.
 
Methods inherited from class dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldTypeDAO
getInstance, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedFieldTypeDBDAO

protected ExtendedFieldTypeDBDAO()
Default constructor of this class. Tries to make any necessary migration of the database.

Method Detail

exists

public boolean exists(java.lang.Long aExtendedfieldtypeId)
Description copied from class: ExtendedFieldTypeDAO
Tests if exists an ExtendedFieldType with the given ID.

Specified by:
exists in class ExtendedFieldTypeDAO
Parameters:
aExtendedfieldtypeId - An id belonging to an ExtendedFieldType
Returns:
true, if there exists an ExtendedFieldType with the given ID, otherwise returns false.

read

public ExtendedFieldType read(java.lang.Long aExtendedfieldtypeId)
Description copied from class: ExtendedFieldTypeDAO
Read an ExtendedFieldType belonging to the given id.

Specified by:
read in class ExtendedFieldTypeDAO
Parameters:
aExtendedfieldtypeId - an id belonging to a ExtendedFieldType
Returns:
an ExtendedFieldType from belonging to the given id.

getAll

public java.util.List<ExtendedFieldType> getAll()
Specified by:
getAll in class ExtendedFieldTypeDAO
Returns:
a list of all ExtendedFieldTypes.