Class ExtendedFieldValueDBDAO
- java.lang.Object
-
- dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldValueDAO
-
- 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
Constructors Constructor Description ExtendedFieldValueDBDAO()
Constructor for the ExtendedFieldValueDBDAO class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(ExtendedFieldValue aExtendedFieldValue)
Create a ExtendedFieldValue in persistent storage.void
create(Connection aConnection, ExtendedFieldValue aExtendedFieldValue, boolean aCommit)
Create a ExtendedFieldValue in persistent storage.void
delete(long aExtendedfieldValueID)
Delete a ExtendedFieldValue in persistent storage.boolean
exists(Long aExtendedFieldValueID)
Find out if there exists in persistent storage a ExtendedFieldValue with the given id.ExtendedFieldValue
read(Long aExtendedFieldID, Long aInstanceID)
Read the ExtendedFieldValue with the given extendedFieldID.void
update(ExtendedFieldValue aExtendedFieldValue)
Update a ExtendedFieldValue in persistent storage.void
update(Connection aConnection, ExtendedFieldValue aExtendedFieldValue, boolean aCommit)
Read a ExtendedFieldValue in persistent storage.-
Methods inherited from class dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldValueDAO
getInstance, reset
-
-
-
-
Method Detail
-
create
public void create(Connection aConnection, ExtendedFieldValue aExtendedFieldValue, boolean aCommit) throws SQLException
Create a ExtendedFieldValue in persistent storage.- Parameters:
aConnection
- an open connection to the HarvestDatabase.aExtendedFieldValue
- The ExtendedFieldValue to create in persistent storageaCommit
- Should we commit this or not- Throws:
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 classExtendedFieldValueDAO
- 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 classExtendedFieldValueDAO
- Parameters:
aExtendedfieldValueID
- The ID for a extendedFieldValue to delete- Throws:
IOFailure
-
exists
public boolean exists(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 classExtendedFieldValueDAO
- 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(Long aExtendedFieldID, Long aInstanceID)
Description copied from class:ExtendedFieldValueDAO
Read the ExtendedFieldValue with the given extendedFieldID.- Specified by:
read
in classExtendedFieldValueDAO
- Parameters:
aExtendedFieldID
- A given ID for a ExtendedFieldValueaInstanceID
- A given instanceID- Returns:
- the ExtendedFieldValue with the given extendedFieldID.
-
update
public void update(Connection aConnection, ExtendedFieldValue aExtendedFieldValue, boolean aCommit) throws SQLException
Read a ExtendedFieldValue in persistent storage.- Parameters:
aConnection
- an open connection to the HarvestDatabaseaExtendedFieldValue
- The ExtendedFieldValue to updateaCommit
- Should we commit this or not- Throws:
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 classExtendedFieldValueDAO
- Parameters:
aExtendedFieldValue
- The ExtendedFieldValue to update- Throws:
IOFailure
-
-