Class BioSequenceDaoImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractDao<BioSequence>
ubic.gemma.persistence.service.AbstractVoEnabledDao<BioSequence,BioSequenceValueObject>
ubic.gemma.persistence.service.genome.biosequence.BioSequenceDaoImpl
- All Implemented Interfaces:
BaseDao<BioSequence>
,BaseVoEnabledDao<BioSequence,
,BioSequenceValueObject> BioSequenceDao
@Repository
public class BioSequenceDaoImpl
extends AbstractVoEnabledDao<BioSequence,BioSequenceValueObject>
implements BioSequenceDao
- Author:
- pavlidis
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDao
REPORT_SLOW_QUERY_AFTER_MS
Fields inherited from class ubic.gemma.persistence.service.AbstractDao
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BioSequenceValueObject
doLoadValueObject
(BioSequence entity) Load a value object for a given entity.find
(BioSequence bioSequence) Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).findByAccession
(DatabaseEntry databaseEntry) findByCompositeSequence
(CompositeSequence compositeSequence) findByGenes
(Collection<Gene> genes) Returns matching biosequences for the given genes in a Map (gene to biosequences).findByName
(String name) getGenesByAccession
(String search) getGenesByName
(String search) For a biosequence name, get the genesthaw
(Collection<BioSequence> bioSequences) thaw
(BioSequence bioSequence) Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDao
doLoadValueObjects, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds, postProcessValueObjects
Methods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, streamQuery, 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.BaseDao
countAll, create, create, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, update, update
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Constructor Details
-
BioSequenceDaoImpl
-
-
Method Details
-
findByAccession
- Specified by:
findByAccession
in interfaceBioSequenceDao
-
findByGenes
Description copied from interface:BioSequenceDao
Returns matching biosequences for the given genes in a Map (gene to biosequences). Genes which had no associated sequences are not included in the result.
- Specified by:
findByGenes
in interfaceBioSequenceDao
- Parameters:
genes
- genes- Returns:
- map to biosequences
-
findByName
- Specified by:
findByName
in interfaceBioSequenceDao
-
getGenesByAccession
- Specified by:
getGenesByAccession
in interfaceBioSequenceDao
-
getGenesByName
Description copied from interface:BioSequenceDao
For a biosequence name, get the genes- Specified by:
getGenesByName
in interfaceBioSequenceDao
- Parameters:
search
- name- Returns:
- genes
-
thaw
- Specified by:
thaw
in interfaceBioSequenceDao
-
thaw
- Specified by:
thaw
in interfaceBioSequenceDao
-
findByCompositeSequence
- Specified by:
findByCompositeSequence
in interfaceBioSequenceDao
-
doLoadValueObject
Description copied from class:AbstractVoEnabledDao
Load a value object for a given entity.This should be fast and efficient, and avoid any database query or post-processing. If you need to perform additional queries, implement
AbstractVoEnabledDao.postProcessValueObjects(List)
instead.- Specified by:
doLoadValueObject
in classAbstractVoEnabledDao<BioSequence,
BioSequenceValueObject>
-
find
Description copied from interface:BaseDao
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).- Specified by:
find
in interfaceBaseDao<BioSequence>
- Overrides:
find
in classAbstractDao<BioSequence>
- Parameters:
bioSequence
- the entity to look for.- Returns:
- an entity that was found in the persistent storage, or null if no such entity was found.
-