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_MSFields inherited from class ubic.gemma.persistence.service.AbstractDao
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BioSequenceValueObjectdoLoadValueObject(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, postProcessValueObjectsMethods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getEntityName, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, streamQuery, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.persistence.service.BaseDao
countAll, create, create, findOrCreate, getElementClass, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Constructor Details
-
BioSequenceDaoImpl
-
-
Method Details
-
findByAccession
- Specified by:
findByAccessionin interfaceBioSequenceDao
-
findByGenes
Description copied from interface:BioSequenceDaoReturns 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:
findByGenesin interfaceBioSequenceDao- Parameters:
genes- genes- Returns:
- map to biosequences
-
findByName
- Specified by:
findByNamein interfaceBioSequenceDao
-
getGenesByAccession
- Specified by:
getGenesByAccessionin interfaceBioSequenceDao
-
getGenesByName
Description copied from interface:BioSequenceDaoFor a biosequence name, get the genes- Specified by:
getGenesByNamein interfaceBioSequenceDao- Parameters:
search- name- Returns:
- genes
-
thaw
- Specified by:
thawin interfaceBioSequenceDao
-
thaw
- Specified by:
thawin interfaceBioSequenceDao
-
findByCompositeSequence
- Specified by:
findByCompositeSequencein interfaceBioSequenceDao
-
doLoadValueObject
Description copied from class:AbstractVoEnabledDaoLoad 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:
doLoadValueObjectin classAbstractVoEnabledDao<BioSequence,BioSequenceValueObject>
-
find
Description copied from interface:BaseDaoDoes 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:
findin interfaceBaseDao<BioSequence>- Overrides:
findin 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.
-