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 ExperimentalFactorValueObjectdoLoadValueObject(ExperimentalFactor e)Load a value object for a given entity.ExperimentalFactorfind(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).ExperimentalFactorload(Long id)Loads the entity with given id from the persistent storage.voidremove(ExperimentalFactor experimentalFactor)Remove a persistent instanceExperimentalFactorthaw(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:BaseDaoLoads the entity with given id from the persistent storage.- Specified by:
loadin interfaceBaseDao<ExperimentalFactor>- Overrides:
loadin 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:BaseDaoRemove a persistent instance- Specified by:
removein interfaceBaseDao<ExperimentalFactor>- Overrides:
removein classAbstractDao<ExperimentalFactor>- Parameters:
experimentalFactor- the entity to be removed
-
find
public ExperimentalFactor find(ExperimentalFactor experimentalFactor)
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<ExperimentalFactor>- Specified by:
findin interfaceExperimentalFactorDao- Overrides:
findin 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: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<ExperimentalFactor,ExperimentalFactorValueObject>
-
thaw
public ExperimentalFactor thaw(ExperimentalFactor ef)
- Specified by:
thawin interfaceExperimentalFactorDao
-
-