Class ExtendedFieldTypeDBDAO
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldTypeDAO
-
- dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldTypeDBDAO
-
- All Implemented Interfaces:
DAO
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
Constructors Modifier Constructor Description protected
ExtendedFieldTypeDBDAO()
Default constructor of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classExtendedFieldTypeDAO
- 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 classExtendedFieldTypeDAO
- 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 classExtendedFieldTypeDAO
- Returns:
- a list of all ExtendedFieldTypes.
-
-