Class FactorValueDaoImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<O>
-
- ubic.gemma.persistence.service.AbstractVoEnabledDao<O,VO>
-
- ubic.gemma.persistence.service.AbstractNoopFilteringVoEnabledDao<FactorValue,FactorValueValueObject>
-
- ubic.gemma.persistence.service.expression.experiment.FactorValueDaoImpl
-
- All Implemented Interfaces:
BaseDao<FactorValue>,BaseVoEnabledDao<FactorValue,FactorValueValueObject>,FactorValueDao,FilteringDao<FactorValue>,FilteringVoEnabledDao<FactorValue,FactorValueValueObject>
@Repository public class FactorValueDaoImpl extends AbstractNoopFilteringVoEnabledDao<FactorValue,FactorValueValueObject> implements FactorValueDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
ubic.gemma.model.expression.experiment.FactorValue.
-
-
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 FactorValueDaoImpl(SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected FactorValueValueObjectdoLoadValueObject(FactorValue entity)Load a value object for a given entity.FactorValuefind(FactorValue factorValue)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<FactorValue>findByValue(String valuePrefix)Locate based on string value of the value.Map<Long,Integer>loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds)Deprecated.FactorValueloadWithOldStyleCharacteristics(Long id, boolean readOnly)Deprecated.voidremove(FactorValue factorValue)Remove a persistent instancevoidupdateIgnoreAcl(FactorValue fv)Update a FactorValue without involving ACL advice.-
Methods inherited from class ubic.gemma.persistence.service.AbstractNoopFilteringVoEnabledDao
count, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyType, getSort, load, load, loadIds, loadValueObjects, loadValueObjects
-
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, 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, 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.FilteringDao
count, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyType, getSort, load, load, loadIds
-
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledDao
loadValueObjects, loadValueObjects
-
-
-
-
Constructor Detail
-
FactorValueDaoImpl
@Autowired public FactorValueDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
findByValue
public Collection<FactorValue> findByValue(String valuePrefix)
Description copied from interface:FactorValueDaoLocate based on string value of the value.- Specified by:
findByValuein interfaceFactorValueDao- Parameters:
valuePrefix- value prefix- Returns:
- collection of factor values
-
loadWithOldStyleCharacteristics
@Deprecated public FactorValue loadWithOldStyleCharacteristics(Long id, boolean readOnly)
Deprecated.- Specified by:
loadWithOldStyleCharacteristicsin interfaceFactorValueDao
-
loadIdsWithNumberOfOldStyleCharacteristics
@Deprecated public Map<Long,Integer> loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds)
Deprecated.Description copied from interface:FactorValueDaoLoad all the factor values IDs with their number of old-style characteristics.- Specified by:
loadIdsWithNumberOfOldStyleCharacteristicsin interfaceFactorValueDao- Parameters:
excludedIds- list of excluded IDs
-
updateIgnoreAcl
public void updateIgnoreAcl(FactorValue fv)
Description copied from interface:FactorValueDaoUpdate a FactorValue without involving ACL advice.- Specified by:
updateIgnoreAclin interfaceFactorValueDao
-
remove
public void remove(@Nullable FactorValue factorValue)
Description copied from interface:BaseDaoRemove a persistent instance- Specified by:
removein interfaceBaseDao<FactorValue>- Overrides:
removein classAbstractDao<FactorValue>- Parameters:
factorValue- the entity to be removed
-
find
public FactorValue find(FactorValue factorValue)
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<FactorValue>- Overrides:
findin classAbstractDao<FactorValue>- Parameters:
factorValue- 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 FactorValueValueObject doLoadValueObject(FactorValue 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<FactorValue,FactorValueValueObject>
-
-