Class BioSequenceServiceImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractService<BioSequence>
ubic.gemma.persistence.service.AbstractVoEnabledService<BioSequence,BioSequenceValueObject>
ubic.gemma.persistence.service.genome.biosequence.BioSequenceServiceImpl
- All Implemented Interfaces:
BaseImmutableService<BioSequence>
,BaseReadOnlyService<BioSequence>
,BaseService<BioSequence>
,BaseVoEnabledService<BioSequence,
,BioSequenceValueObject> BioSequenceService
@Service
public class BioSequenceServiceImpl
extends AbstractVoEnabledService<BioSequence,BioSequenceValueObject>
implements BioSequenceService
Spring Service base class for
BioSequenceService
, provides access to
all services and entities referenced by this service.- Author:
- keshav, pavlidis
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractService
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByAccession
(DatabaseEntry accession) findByCompositeSequence
(CompositeSequence compositeSequence) findByGenes
(Collection<Gene> genes) findByName
(String name) findOrCreate
(Collection<BioSequence> bioSequences) getGenesByAccession
(String search) getGenesByName
(String search) thaw
(Collection<BioSequence> bioSequences) thaw
(BioSequence bioSequence) Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
Methods inherited from class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, remove, save, save, streamAll, streamAll, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, remove
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
Methods inherited from interface ubic.gemma.persistence.service.genome.biosequence.BioSequenceService
create, findOrCreate, remove, update
-
Constructor Details
-
BioSequenceServiceImpl
-
-
Method Details
-
findByAccession
- Specified by:
findByAccession
in interfaceBioSequenceService
-
findByGenes
@Transactional(readOnly=true) public Map<Gene,Collection<BioSequence>> findByGenes(Collection<Gene> genes) - Specified by:
findByGenes
in interfaceBioSequenceService
- Parameters:
genes
- genes- Returns:
- matching biosequences for the given genes in a Map (gene to a collection of biosequences). Genes which had no associated sequences are not included in the result.
-
findByName
- Specified by:
findByName
in interfaceBioSequenceService
- Parameters:
name
- name- Returns:
- all biosequences with names matching the given string. This matches only the name field, not the accession.
-
findOrCreate
@Transactional(readOnly=true) public Collection<BioSequence> findOrCreate(Collection<BioSequence> bioSequences) - Specified by:
findOrCreate
in interfaceBioSequenceService
-
getGenesByAccession
- Specified by:
getGenesByAccession
in interfaceBioSequenceService
-
getGenesByName
- Specified by:
getGenesByName
in interfaceBioSequenceService
-
thaw
@Transactional(readOnly=true) public Collection<BioSequence> thaw(Collection<BioSequence> bioSequences) - Specified by:
thaw
in interfaceBioSequenceService
-
thaw
- Specified by:
thaw
in interfaceBioSequenceService
-
findByCompositeSequence
@Transactional(readOnly=true) public BioSequence findByCompositeSequence(CompositeSequence compositeSequence) - Specified by:
findByCompositeSequence
in interfaceBioSequenceService
-