Interface BioSequenceService
- All Superinterfaces:
BaseImmutableService<BioSequence>
,BaseReadOnlyService<BioSequence>
,BaseService<BioSequence>
,BaseVoEnabledService<BioSequence,
BioSequenceValueObject>
- All Known Implementing Classes:
BioSequenceServiceImpl
public interface BioSequenceService
extends BaseService<BioSequence>, BaseVoEnabledService<BioSequence,BioSequenceValueObject>
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(BioSequence bioSequence) Creates the given entity in the persistent storage.findByAccession
(DatabaseEntry accession) findByCompositeSequence
(CompositeSequence compositeSequence) findByGenes
(Collection<Gene> genes) findByName
(String name) findOrCreate
(Collection<BioSequence> bioSequences) findOrCreate
(BioSequence bioSequence) Does a search for the entity in the persistent storage, and if not found, creates it.getGenesByAccession
(String search) getGenesByName
(String search) void
remove
(BioSequence bioSequence) Removes the given entity from the persistent storage.thaw
(Collection<BioSequence> bioSequences) thaw
(BioSequence bs) void
update
(BioSequence bioSequence) Updates the given entity in the persistent storage.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
-
Method Details
-
findByAccession
-
findByGenes
- 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
- Parameters:
name
- name- Returns:
- all biosequences with names matching the given string. This matches only the name field, not the accession.
-
findOrCreate
-
findOrCreate
Description copied from interface:BaseImmutableService
Does a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreate
in interfaceBaseImmutableService<BioSequence>
- Parameters:
bioSequence
- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
Description copied from interface:BaseImmutableService
Creates the given entity in the persistent storage.- Specified by:
create
in interfaceBaseImmutableService<BioSequence>
- Parameters:
bioSequence
- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
remove
Description copied from interface:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<BioSequence>
- Parameters:
bioSequence
- the entity to be removed.
-
update
Description copied from interface:BaseService
Updates the given entity in the persistent storage.- Specified by:
update
in interfaceBaseService<BioSequence>
- Parameters:
bioSequence
- the entity to be updated.
-
getGenesByAccession
-
getGenesByName
-
thaw
-
thaw
-
findByCompositeSequence
-