@Repository public class BioSequenceDaoImpl extends AbstractVoEnabledDao<BioSequence,BioSequenceValueObject> implements BioSequenceDao
BioSequenceREPORT_SLOW_QUERY_AFTER_MSelementClass, log| Constructor and Description |
|---|
BioSequenceDaoImpl(SessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected BioSequenceValueObject |
doLoadValueObject(BioSequence entity)
Load a value object for a given entity.
|
BioSequence |
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).
|
BioSequence |
findByAccession(DatabaseEntry databaseEntry) |
BioSequence |
findByCompositeSequence(CompositeSequence compositeSequence) |
Map<Gene,Collection<BioSequence>> |
findByGenes(Collection<Gene> genes)
Returns matching biosequences for the given genes in a Map (gene to biosequences).
|
Collection<BioSequence> |
findByName(String name) |
Collection<Gene> |
getGenesByAccession(String search) |
Collection<Gene> |
getGenesByName(String search)
For a biosequence name, get the genes
|
BioSequence |
thaw(BioSequence bioSequence) |
Collection<BioSequence> |
thaw(Collection<BioSequence> bioSequences) |
doLoadValueObjects, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdscountAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, flush, flushAndClear, getElementClass, getSessionFactory, load, load, loadAll, reattach, reattach, remove, remove, remove, removeAll, save, save, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds@Autowired public BioSequenceDaoImpl(SessionFactory sessionFactory)
public BioSequence findByAccession(DatabaseEntry databaseEntry)
findByAccession in interface BioSequenceDaopublic Map<Gene,Collection<BioSequence>> findByGenes(Collection<Gene> genes)
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.
findByGenes in interface BioSequenceDaogenes - genespublic Collection<BioSequence> findByName(String name)
findByName in interface BioSequenceDaopublic Collection<Gene> getGenesByAccession(String search)
getGenesByAccession in interface BioSequenceDaopublic Collection<Gene> getGenesByName(String search)
BioSequenceDaogetGenesByName in interface BioSequenceDaosearch - namepublic Collection<BioSequence> thaw(Collection<BioSequence> bioSequences)
thaw in interface BioSequenceDaopublic BioSequence thaw(BioSequence bioSequence)
thaw in interface BioSequenceDaopublic BioSequence findByCompositeSequence(CompositeSequence compositeSequence)
findByCompositeSequence in interface BioSequenceDaoprotected BioSequenceValueObject doLoadValueObject(BioSequence entity)
AbstractVoEnabledDao
This should be fast and efficient, and avoid any database query or post-processing. If you need to perform
additional queries, consider overriding AbstractVoEnabledDao.loadValueObject(Identifiable) or AbstractVoEnabledDao.loadValueObjects(Collection).
doLoadValueObject in class AbstractVoEnabledDao<BioSequence,BioSequenceValueObject>public BioSequence find(BioSequence bioSequence)
BaseDaofind in interface BaseDao<BioSequence>find in class AbstractDao<BioSequence>bioSequence - the entity to look for.Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.