@Service @Transactional(readOnly=true) public class SequenceServiceImpl extends AnnotatableServiceBase<Sequence,ISequenceDao> implements ISequenceService
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
SequenceServiceImpl() |
Modifier and Type | Method and Description |
---|---|
DeleteResult |
delete(Sequence sequence) |
DeleteResult |
deleteSingleRead(SingleRead singleRead,
Sequence sequence)
|
DeleteResult |
deleteSingleRead(java.util.UUID singleReadUuid,
java.util.UUID sequenceUuid)
Deletes a
SingleRead from the given Sequence and its AmplificationResult ,
by first loading the corresponding uuids and then calling deleteSingleRead |
java.util.Map<SingleRead,java.util.Collection<Sequence>> |
getSingleReadSequencesMap()
Creates and returns a map with
SingleRead s as keys. |
UpdateResult |
moveSingleRead(Sequence from,
Sequence to,
SingleRead singleRead)
Moves the given
SingleRead from one Sequence to another. |
UpdateResult |
moveSingleRead(java.util.UUID fromUuid,
java.util.UUID toUuid,
java.util.UUID singleReadUuid) |
protected void |
setDao(ISequenceDao dao) |
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
checkPublished, clear, count, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, setApplicationContext, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
clear, count, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
@Autowired protected void setDao(ISequenceDao dao)
setDao
in class ServiceBase<Sequence,ISequenceDao>
public UpdateResult moveSingleRead(Sequence from, Sequence to, SingleRead singleRead)
ISequenceService
SingleRead
from one Sequence
to another.moveSingleRead
in interface ISequenceService
from
- the Sequence from which the SingleRead will be removedto
- the Sequence to which the SingleRead will be addedsingleRead
- the SingleRead to movetrue
if successfully moved, false
otherwise@Transactional(readOnly=false) public UpdateResult moveSingleRead(java.util.UUID fromUuid, java.util.UUID toUuid, java.util.UUID singleReadUuid)
moveSingleRead
in interface ISequenceService
public java.util.Map<SingleRead,java.util.Collection<Sequence>> getSingleReadSequencesMap()
ISequenceService
SingleRead
s as keys.
The value for each key is a list of those Sequence
s that link to this SingleRead.getSingleReadSequencesMap
in interface ISequenceService
public DeleteResult delete(Sequence sequence)
delete
in interface IService<Sequence>
delete
in class ServiceBase<Sequence,ISequenceDao>
public DeleteResult deleteSingleRead(SingleRead singleRead, Sequence sequence)
ISequenceService
deleteSingleRead
in interface ISequenceService
singleRead
- the single read to deletesequence
- the sequence to which the single read belongsDeleteResult
which holds information about the outcome of this operation@Transactional(readOnly=false) public DeleteResult deleteSingleRead(java.util.UUID singleReadUuid, java.util.UUID sequenceUuid)
ISequenceService
SingleRead
from the given Sequence
and its AmplificationResult
,
by first loading the corresponding uuids and then calling deleteSingleRead
deleteSingleRead
in interface ISequenceService
singleReadUuid
- uuid of the single read to deletesequenceUuid
- uuid of the sequence to which the single read belongsDeleteResult
which holds information about the outcome of this operationCopyright © 2007-2020 EDIT. All Rights Reserved.