dk.netarkivet.harvester.datamodel
Class ExtendedFieldValueDAO
java.lang.Object
dk.netarkivet.harvester.datamodel.ExtendedFieldValueDAO
- Direct Known Subclasses:
- ExtendedFieldValueDBDAO
public abstract class ExtendedFieldValueDAO
- extends java.lang.Object
Interface for creating and accessing extended fields in persistent storage.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected static ExtendedFieldValueDAO instance
ExtendedFieldValueDAO
protected ExtendedFieldValueDAO()
- constructor used when creating singleton. Do not call directly.
reset
public static void reset()
- Reset the DAO instance. Only for use from within tests.
getConnection
protected abstract java.sql.Connection getConnection()
- Gets the ExtendedFieldValueDAO singleton.
- Returns:
- the ExtendedFieldValueDAO singleton
exists
public abstract boolean exists(java.lang.Long aExtendedFieldValueID)
create
public abstract void create(ExtendedFieldValue aExtendedFieldValue)
read
public abstract ExtendedFieldValue read(java.lang.Long aExtendedFieldID,
java.lang.Long aInstanceID)
throws ArgumentNotValid,
UnknownID,
IOFailure
- Throws:
ArgumentNotValid
UnknownID
IOFailure
update
public abstract void update(ExtendedFieldValue aExtendedFieldValue)
throws IOFailure
- Throws:
IOFailure
delete
public abstract void delete(long aExtendedfieldValueID)
throws IOFailure
- Throws:
IOFailure