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 GeneProductValueObjectdoLoadValueObject(GeneProduct entity)Load a value object for a given entity.GeneProductfind(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)GeneProductfindByNcbiId(String ncbiId)Collection<Gene>getGenesByName(String search)Collection<Gene>getGenesByNcbiId(String search)GeneProductthaw(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, getBatchSize, 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:
findByNcbiIdin interfaceGeneProductDao
-
getGenesByName
public Collection<Gene> getGenesByName(String search)
- Specified by:
getGenesByNamein interfaceGeneProductDao
-
getGenesByNcbiId
public Collection<Gene> getGenesByNcbiId(String search)
- Specified by:
getGenesByNcbiIdin interfaceGeneProductDao
-
findByName
public Collection<GeneProduct> findByName(String name, Taxon taxon)
- Specified by:
findByNamein interfaceGeneProductDao
-
thaw
public GeneProduct thaw(GeneProduct existing)
- Specified by:
thawin interfaceGeneProductDao
-
find
public GeneProduct find(GeneProduct geneProduct)
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<GeneProduct>- Overrides:
findin 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: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<GeneProduct,GeneProductValueObject>
-
-