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 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 AbstractVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from class 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, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseImmutableService
create, remove, removeMethods inherited from interface BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface BaseService
save, save, updateMethods inherited from interface BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface BioSequenceService
create, findOrCreate, remove, update
-
Constructor Details
-
BioSequenceServiceImpl
-
-
Method Details
-
findByAccession
- Specified by:
findByAccessionin interfaceBioSequenceService
-
findByGenes
@Transactional(readOnly=true) public Map<Gene, Collection<BioSequence>> findByGenes(Collection<Gene> genes) - Specified by:
findByGenesin 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:
findByNamein 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:
findOrCreatein interfaceBioSequenceService
-
getGenesByAccession
- Specified by:
getGenesByAccessionin interfaceBioSequenceService
-
getGenesByName
- Specified by:
getGenesByNamein interfaceBioSequenceService
-
thaw
@Transactional(readOnly=true) public Collection<BioSequence> thaw(Collection<BioSequence> bioSequences) - Specified by:
thawin interfaceBioSequenceService
-
thaw
- Specified by:
thawin interfaceBioSequenceService
-
findByCompositeSequence
@Transactional(readOnly=true) public BioSequence findByCompositeSequence(CompositeSequence compositeSequence) - Specified by:
findByCompositeSequencein interfaceBioSequenceService
-