@Repository public class BioSequenceDaoImpl extends AbstractVoEnabledDao<BioSequence,BioSequenceValueObject> implements BioSequenceDao
BioSequence
REPORT_SLOW_QUERY_AFTER_MS
elementClass, 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, loadValueObjectsByIds
countAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, flush, flushAndClear, getElementClass, getSessionFactory, load, load, loadAll, reattach, reattach, remove, remove, remove, removeAll, save, save, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
@Autowired public BioSequenceDaoImpl(SessionFactory sessionFactory)
public BioSequence findByAccession(DatabaseEntry databaseEntry)
findByAccession
in interface BioSequenceDao
public Map<Gene,Collection<BioSequence>> findByGenes(Collection<Gene> genes)
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.
findByGenes
in interface BioSequenceDao
genes
- genespublic Collection<BioSequence> findByName(String name)
findByName
in interface BioSequenceDao
public Collection<Gene> getGenesByAccession(String search)
getGenesByAccession
in interface BioSequenceDao
public Collection<Gene> getGenesByName(String search)
BioSequenceDao
getGenesByName
in interface BioSequenceDao
search
- namepublic Collection<BioSequence> thaw(Collection<BioSequence> bioSequences)
thaw
in interface BioSequenceDao
public BioSequence thaw(BioSequence bioSequence)
thaw
in interface BioSequenceDao
public BioSequence findByCompositeSequence(CompositeSequence compositeSequence)
findByCompositeSequence
in interface BioSequenceDao
protected 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)
BaseDao
find
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.