dk.netarkivet.harvester.datamodel
Class ExtendedFieldValueDAO

java.lang.Object
  extended by 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.


Field Summary
protected static ExtendedFieldValueDAO instance
           
 
Constructor Summary
protected ExtendedFieldValueDAO()
          constructor used when creating singleton.
 
Method Summary
abstract  void create(ExtendedFieldValue aExtendedFieldValue)
           
abstract  void delete(long aExtendedfieldValueID)
           
abstract  boolean exists(java.lang.Long aExtendedFieldValueID)
           
protected abstract  java.sql.Connection getConnection()
          Gets the ExtendedFieldValueDAO singleton.
abstract  ExtendedFieldValue read(java.lang.Long aExtendedFieldID, java.lang.Long aInstanceID)
           
static void reset()
          Reset the DAO instance.
abstract  void update(ExtendedFieldValue aExtendedFieldValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static ExtendedFieldValueDAO instance
Constructor Detail

ExtendedFieldValueDAO

protected ExtendedFieldValueDAO()
constructor used when creating singleton. Do not call directly.

Method Detail

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