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) voidremove(BioSequence bioSequence) Removes the given entity from the persistent storage.thaw(Collection<BioSequence> bioSequences) thaw(BioSequence bs) voidupdate(BioSequence bioSequence) Updates the given entity in the persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, removeMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, updateMethods 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:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreatein 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:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
createin interfaceBaseImmutableService<BioSequence>- Parameters:
bioSequence- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
remove
Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<BioSequence>- Parameters:
bioSequence- the entity to be removed.
-
update
Description copied from interface:BaseServiceUpdates the given entity in the persistent storage.- Specified by:
updatein interfaceBaseService<BioSequence>- Parameters:
bioSequence- the entity to be updated.
-
getGenesByAccession
-
getGenesByName
-
thaw
-
thaw
-
findByCompositeSequence
-