public interface ReferenceSetDao
ReferenceSet
. Used by the
ReferenceSetService
to store and retrieve implementations of
reference set to and from the database. Client code should use the reference
set service rather than using this Dao directly.
All methods throw DaoException, and nothing else. Where a deeper error is propagated it is wrapped in a DaoException and passed on to the caller.
Modifier and Type | Method and Description |
---|---|
boolean |
delete(ReferenceSet rs) |
void |
deleteReferenceSetsForWFRun(String workflowRunId) |
ReferenceSet |
get(T2Reference ref)
Fetch a reference set by id
|
void |
store(ReferenceSet rs)
Store the specified new reference set
|
void |
update(ReferenceSet rs)
Update a pre-existing entry in the database
|
@Transactional(propagation=REQUIRED, readOnly=false) void store(ReferenceSet rs) throws DaoException
rs
- a reference set, must not already exist in the database.DaoException
- if the entry already exists in the database or some other
database related problem occurs@Transactional(propagation=REQUIRED, readOnly=false) void update(ReferenceSet rs) throws DaoException
rs
- the reference set to update. This must already exist in the
databaseDaoException
@Transactional(propagation=SUPPORTS, readOnly=true) ReferenceSet get(T2Reference ref) throws DaoException
ref
- the T2Reference to fetchDaoException
- if the supplied reference is of the wrong type or if
something goes wrong fetching the data or connecting to the
database@Transactional(propagation=SUPPORTS, readOnly=false) boolean delete(ReferenceSet rs) throws DaoException
DaoException
@Transactional(propagation=SUPPORTS, readOnly=false) void deleteReferenceSetsForWFRun(String workflowRunId) throws DaoException
DaoException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.