dk.netarkivet.harvester.datamodel.extendedfield
Class ExtendedFieldValueDBDAO

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldValueDAO
      extended by dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldValueDBDAO

public class ExtendedFieldValueDBDAO
extends ExtendedFieldValueDAO

Implementation class for the ExtendedFieldValueDAO interface.


Field Summary
 
Fields inherited from class dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldValueDAO
instance
 
Constructor Summary
ExtendedFieldValueDBDAO()
          Constructor for the ExtendedFieldValueDBDAO class.
 
Method Summary
 void create(java.sql.Connection aConnection, ExtendedFieldValue aExtendedFieldValue, boolean aCommit)
          Create a ExtendedFieldValue in persistent storage.
 void create(ExtendedFieldValue aExtendedFieldValue)
          Create a ExtendedFieldValue in persistent storage.
 void delete(long aExtendedfieldValueID)
          Delete a ExtendedFieldValue in persistent storage.
 boolean exists(java.lang.Long aExtendedFieldValueID)
          Find out if there exists in persistent storage a ExtendedFieldValue with the given id.
 ExtendedFieldValue read(java.lang.Long aExtendedFieldID, java.lang.Long aInstanceID)
          Read the ExtendedFieldValue with the given extendedFieldID.
 void update(java.sql.Connection aConnection, ExtendedFieldValue aExtendedFieldValue, boolean aCommit)
          Read a ExtendedFieldValue in persistent storage.
 void update(ExtendedFieldValue aExtendedFieldValue)
          Update a ExtendedFieldValue in persistent storage.
 
Methods inherited from class dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldValueDAO
getInstance, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedFieldValueDBDAO

public ExtendedFieldValueDBDAO()
Constructor for the ExtendedFieldValueDBDAO class.

Method Detail

create

public void create(java.sql.Connection aConnection,
                   ExtendedFieldValue aExtendedFieldValue,
                   boolean aCommit)
            throws java.sql.SQLException
Create a ExtendedFieldValue in persistent storage.

Parameters:
aConnection - an open connection to the HarvestDatabase.
aExtendedFieldValue - The ExtendedFieldValue to create in persistent storage
aCommit - Should we commit this or not
Throws:
java.sql.SQLException - In case of Database access problems.

create

public void create(ExtendedFieldValue aExtendedFieldValue)
Description copied from class: ExtendedFieldValueDAO
Create a ExtendedFieldValue in persistent storage.

Specified by:
create in class ExtendedFieldValueDAO
Parameters:
aExtendedFieldValue - The ExtendedFieldValue to create in persistent storage.

delete

public void delete(long aExtendedfieldValueID)
            throws IOFailure
Description copied from class: ExtendedFieldValueDAO
Delete a ExtendedFieldValue in persistent storage.

Specified by:
delete in class ExtendedFieldValueDAO
Parameters:
aExtendedfieldValueID - The ID for a extendedFieldValue to delete
Throws:
IOFailure

exists

public boolean exists(java.lang.Long aExtendedFieldValueID)
Description copied from class: ExtendedFieldValueDAO
Find out if there exists in persistent storage a ExtendedFieldValue with the given id.

Specified by:
exists in class ExtendedFieldValueDAO
Parameters:
aExtendedFieldValueID - An id associated with a ExtendedFieldValue
Returns:
true, if there already exists in persistent storage a ExtendedFieldValue with the given id.

read

public ExtendedFieldValue read(java.lang.Long aExtendedFieldID,
                               java.lang.Long aInstanceID)
Description copied from class: ExtendedFieldValueDAO
Read the ExtendedFieldValue with the given extendedFieldID.

Specified by:
read in class ExtendedFieldValueDAO
Parameters:
aExtendedFieldID - A given ID for a ExtendedFieldValue
aInstanceID - A given instanceID
Returns:
the ExtendedFieldValue with the given extendedFieldID.

update

public void update(java.sql.Connection aConnection,
                   ExtendedFieldValue aExtendedFieldValue,
                   boolean aCommit)
            throws java.sql.SQLException
Read a ExtendedFieldValue in persistent storage.

Parameters:
aConnection - an open connection to the HarvestDatabase
aExtendedFieldValue - The ExtendedFieldValue to update
aCommit - Should we commit this or not
Throws:
java.sql.SQLException - In case of database problems.

update

public void update(ExtendedFieldValue aExtendedFieldValue)
            throws IOFailure
Description copied from class: ExtendedFieldValueDAO
Update a ExtendedFieldValue in persistent storage.

Specified by:
update in class ExtendedFieldValueDAO
Parameters:
aExtendedFieldValue - The ExtendedFieldValue to update
Throws:
IOFailure