public class InMemoryReferenceSetDao extends Object implements ReferenceSetDao
Constructor and Description |
---|
InMemoryReferenceSetDao() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(ReferenceSet refSet) |
void |
deleteReferenceSetsForWFRun(String workflowRunId) |
ReferenceSet |
get(T2Reference reference)
Fetch a reference set by id
|
void |
store(ReferenceSet refSet)
Store the specified new reference set
|
void |
update(ReferenceSet refSet)
Update a pre-existing entry in the database
|
public ReferenceSet get(T2Reference reference) throws DaoException
ReferenceSetDao
get
in interface ReferenceSetDao
reference
- 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
databasepublic void store(ReferenceSet refSet) throws DaoException
ReferenceSetDao
store
in interface ReferenceSetDao
refSet
- 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 occurspublic void update(ReferenceSet refSet) throws DaoException
ReferenceSetDao
update
in interface ReferenceSetDao
refSet
- the reference set to update. This must already exist in the
databaseDaoException
public boolean delete(ReferenceSet refSet) throws DaoException
delete
in interface ReferenceSetDao
DaoException
public void deleteReferenceSetsForWFRun(String workflowRunId) throws DaoException
deleteReferenceSetsForWFRun
in interface ReferenceSetDao
DaoException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.