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 FactorValue
create(FactorValue factorValue)
Create an object.protected FactorValueValueObject
doLoadValueObject(FactorValue entity)
Load a value object for a given entity.FactorValue
find(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.FactorValue
loadWithOldStyleCharacteristics(Long id, boolean readOnly)
Deprecated.void
remove(FactorValue factorValue)
Remove a persistent instanceFactorValue
save(FactorValue entity)
Create or update an entity whether it is transient.void
update(FactorValue entity)
void
updateIgnoreAcl(FactorValue fv)
Update a FactorValue without involving ACL advice.-
Methods inherited from class ubic.gemma.persistence.service.AbstractNoopFilteringVoEnabledDao
count, getFilter, getFilter, 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, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, remove, remove, save, 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, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, remove, remove, save, 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, 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
-
create
public FactorValue create(FactorValue factorValue)
Description copied from interface:BaseDao
Create an object. If the entity type is immutable, this may also remove any existing entities identified by an appropriate 'find' method.- Specified by:
create
in interfaceBaseDao<FactorValue>
- Overrides:
create
in classAbstractDao<FactorValue>
- Parameters:
factorValue
- the entity to create- Returns:
- the persistent version of the entity
-
save
public FactorValue save(FactorValue entity)
Description copied from interface:BaseDao
Create or update an entity whether it is transient.Unlike
BaseDao.update(Object)
, this method does not attach the given entity to the persistence context and the returned value must be used instead.- Specified by:
save
in interfaceBaseDao<FactorValue>
- Overrides:
save
in classAbstractDao<FactorValue>
- See Also:
Session.persist(Object)
,Session.merge(Object)
-
update
public void update(FactorValue entity)
- Specified by:
update
in interfaceBaseDao<FactorValue>
- Overrides:
update
in classAbstractDao<FactorValue>
- Parameters:
entity
- Update the entity. Not supported if the entity is immutable.
-
findByValue
public Collection<FactorValue> findByValue(String valuePrefix)
Description copied from interface:FactorValueDao
Locate based on string value of the value.- Specified by:
findByValue
in interfaceFactorValueDao
- Parameters:
valuePrefix
- value prefix- Returns:
- collection of factor values
-
loadWithOldStyleCharacteristics
@Deprecated public FactorValue loadWithOldStyleCharacteristics(Long id, boolean readOnly)
Deprecated.- Specified by:
loadWithOldStyleCharacteristics
in interfaceFactorValueDao
-
loadIdsWithNumberOfOldStyleCharacteristics
@Deprecated public Map<Long,Integer> loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds)
Deprecated.Description copied from interface:FactorValueDao
Load all the factor values IDs with their number of old-style characteristics.- Specified by:
loadIdsWithNumberOfOldStyleCharacteristics
in interfaceFactorValueDao
- Parameters:
excludedIds
- list of excluded IDs
-
updateIgnoreAcl
public void updateIgnoreAcl(FactorValue fv)
Description copied from interface:FactorValueDao
Update a FactorValue without involving ACL advice.- Specified by:
updateIgnoreAcl
in interfaceFactorValueDao
-
remove
public void remove(@Nullable FactorValue factorValue)
Description copied from interface:BaseDao
Remove a persistent instance- Specified by:
remove
in interfaceBaseDao<FactorValue>
- Overrides:
remove
in classAbstractDao<FactorValue>
- Parameters:
factorValue
- the entity to be removed
-
find
public FactorValue find(FactorValue factorValue)
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<FactorValue>
- Overrides:
find
in 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: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<FactorValue,FactorValueValueObject>
-
-