public abstract class ExtendedFieldDAO extends Object implements DAO
Modifier and Type | Field and Description |
---|---|
protected static ExtendedFieldDAO |
instance
The database singleton model.
|
Modifier | Constructor and Description |
---|---|
protected |
ExtendedFieldDAO()
constructor used when creating singleton.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
create(ExtendedField aExtendedField)
Creates an instance in persistent storage of the given extended Field.
|
abstract void |
delete(long aExtendedFieldID)
deletes an ExtendedField from persistent storage.
|
abstract boolean |
exists(Long aExtendedfieldId)
Check if an extendedfield exists for a given ID.
|
abstract List<ExtendedField> |
getAll(long aExtendedFieldTypeId)
Return a list of all ExtendedFields of the given Extended Field Type.
|
static ExtendedFieldDAO |
getInstance() |
abstract ExtendedField |
read(Long aExtendedFieldID)
Reads an ExtendedField from persistent storage.
|
static void |
reset()
Reset the DAO instance.
|
abstract void |
update(ExtendedField aExtendedField)
Update a ExtendedField in persistent storage.
|
protected static ExtendedFieldDAO instance
protected ExtendedFieldDAO()
public static void reset()
public abstract boolean exists(Long aExtendedfieldId)
aExtendedfieldId
- a given ID.public abstract void create(ExtendedField aExtendedField)
aExtendedField
- a ExtendedField to create in persistent storage.public abstract ExtendedField read(Long aExtendedFieldID) throws ArgumentNotValid, UnknownID, IOFailure
aExtendedFieldID
- The ID of the ExtendedField to readArgumentNotValid
- If failed to create ExtendedField instance in case aExtendedFieldID is invalidUnknownID
- If the job with the given jobID does not exist in persistent storage.IOFailure
- If the loaded ID of ExtendedField does not match the expected.public abstract void update(ExtendedField aExtendedField) throws IOFailure
aExtendedField
- The ExtendedField to updateIOFailure
- If writing the ExtendedField to persistent storage failspublic abstract List<ExtendedField> getAll(long aExtendedFieldTypeId)
aExtendedFieldTypeId
- extended field type.public abstract void delete(long aExtendedFieldID) throws IOFailure
aExtendedFieldID
- The ID of the ExtendedField to readIOFailure
- If deleting the ExtendedField failspublic static ExtendedFieldDAO getInstance()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.