Class ExperimentalFactorDaoImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<O>
-
- ubic.gemma.persistence.service.AbstractVoEnabledDao<ExperimentalFactor,ExperimentalFactorValueObject>
-
- ubic.gemma.persistence.service.expression.experiment.ExperimentalFactorDaoImpl
-
- All Implemented Interfaces:
BaseDao<ExperimentalFactor>
,BaseVoEnabledDao<ExperimentalFactor,ExperimentalFactorValueObject>
,ExperimentalFactorDao
@Repository public class ExperimentalFactorDaoImpl extends AbstractVoEnabledDao<ExperimentalFactor,ExperimentalFactorValueObject> implements ExperimentalFactorDao
- See Also:
ExperimentalFactor
-
-
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 ExperimentalFactorDaoImpl(SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExperimentalFactorValueObject
doLoadValueObject(ExperimentalFactor e)
Load a value object for a given entity.ExperimentalFactor
find(ExperimentalFactor experimentalFactor)
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).ExperimentalFactor
load(Long id)
Loads the entity with given id from the persistent storage.void
remove(ExperimentalFactor experimentalFactor)
Remove a persistent instanceExperimentalFactor
thaw(ExperimentalFactor ef)
-
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, loadAll, loadReference, loadReference, 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, getElementClass, getIdentifierPropertyName, load, loadAll, loadReference, loadReference, remove, remove, save, save, update, update
-
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Methods inherited from interface ubic.gemma.persistence.service.expression.experiment.ExperimentalFactorDao
findOrCreate
-
-
-
-
Constructor Detail
-
ExperimentalFactorDaoImpl
@Autowired public ExperimentalFactorDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
load
public ExperimentalFactor load(Long id)
Description copied from interface:BaseDao
Loads the entity with given id from the persistent storage.- Specified by:
load
in interfaceBaseDao<ExperimentalFactor>
- Overrides:
load
in classAbstractDao<ExperimentalFactor>
- Parameters:
id
- the id of entity to load.- Returns:
- the entity with given ID, or null if such entity does not exist or if the passed ID was null
- See Also:
Session.get(Class, Serializable)
-
remove
public void remove(ExperimentalFactor experimentalFactor)
Description copied from interface:BaseDao
Remove a persistent instance- Specified by:
remove
in interfaceBaseDao<ExperimentalFactor>
- Overrides:
remove
in classAbstractDao<ExperimentalFactor>
- Parameters:
experimentalFactor
- the entity to be removed
-
find
public ExperimentalFactor find(ExperimentalFactor experimentalFactor)
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<ExperimentalFactor>
- Specified by:
find
in interfaceExperimentalFactorDao
- Overrides:
find
in classAbstractDao<ExperimentalFactor>
- Parameters:
experimentalFactor
- 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 ExperimentalFactorValueObject doLoadValueObject(ExperimentalFactor e)
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<ExperimentalFactor,ExperimentalFactorValueObject>
-
thaw
public ExperimentalFactor thaw(ExperimentalFactor ef)
- Specified by:
thaw
in interfaceExperimentalFactorDao
-
-