Class GeneProductDaoImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<O>
-
- ubic.gemma.persistence.service.AbstractVoEnabledDao<GeneProduct,GeneProductValueObject>
-
- ubic.gemma.persistence.service.genome.gene.GeneProductDaoImpl
-
- All Implemented Interfaces:
BaseDao<GeneProduct>
,BaseVoEnabledDao<GeneProduct,GeneProductValueObject>
,GeneProductDao
@Repository public class GeneProductDaoImpl extends AbstractVoEnabledDao<GeneProduct,GeneProductValueObject> implements GeneProductDao
- Author:
- pavlidis
- See Also:
GeneProduct
-
-
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
elementClass, log
-
-
Constructor Summary
Constructors Constructor Description GeneProductDaoImpl(SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GeneProductValueObject
doLoadValueObject(GeneProduct entity)
Load a value object for a given entity.GeneProduct
find(GeneProduct geneProduct)
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).Collection<GeneProduct>
findByName(String name, Taxon taxon)
GeneProduct
findByNcbiId(String ncbiId)
Collection<Gene>
getGenesByName(String search)
Collection<Gene>
getGenesByNcbiId(String search)
GeneProduct
thaw(GeneProduct existing)
-
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, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, remove, remove, remove, save, save, 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, remove, remove, remove, save, save, update, update
-
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
-
-
-
Constructor Detail
-
GeneProductDaoImpl
@Autowired public GeneProductDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
findByNcbiId
public GeneProduct findByNcbiId(String ncbiId)
- Specified by:
findByNcbiId
in interfaceGeneProductDao
-
getGenesByName
public Collection<Gene> getGenesByName(String search)
- Specified by:
getGenesByName
in interfaceGeneProductDao
-
getGenesByNcbiId
public Collection<Gene> getGenesByNcbiId(String search)
- Specified by:
getGenesByNcbiId
in interfaceGeneProductDao
-
findByName
public Collection<GeneProduct> findByName(String name, Taxon taxon)
- Specified by:
findByName
in interfaceGeneProductDao
-
thaw
public GeneProduct thaw(GeneProduct existing)
- Specified by:
thaw
in interfaceGeneProductDao
-
find
public GeneProduct find(GeneProduct geneProduct)
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<GeneProduct>
- Overrides:
find
in classAbstractDao<GeneProduct>
- Parameters:
geneProduct
- the entity to look for.- Returns:
- an entity that was found in the persistent storage, or null if no such entity was found.
-
doLoadValueObject
protected GeneProductValueObject doLoadValueObject(GeneProduct entity)
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<GeneProduct,GeneProductValueObject>
-
-