Class FactorValueDaoImpl
- All Implemented Interfaces:
BaseDao<FactorValue>,BaseVoEnabledDao<FactorValue,,FactorValueValueObject> FactorValueDao,FilteringDao<FactorValue>,FilteringVoEnabledDao<FactorValue,FactorValueValueObject>
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_MSFields inherited from class ubic.gemma.persistence.service.AbstractDao
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(FactorValue factorValue) Create an object.protected FactorValueValueObjectdoLoadValueObject(FactorValue entity) Load a value object for a given entity.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).findByValueStartingWith(String valuePrefix, int maxResults) Locate based on string value of the value.getExperimentalFactorCategories(Collection<FactorValue> factorValues) getExpressionExperimentsIgnoreAcls(Collection<FactorValue> factorValues) loadAll(int offset, int limit) Load a slice ofFactorValues.Load all factor value IDs.loadAllIds(int offset, int limit) Load a slice of the factor values IDs.loadIdsWithNumberOfOldStyleCharacteristics(Set<Long> excludedIds) Deprecated.loadWithOldStyleCharacteristics(Long id, boolean readOnly) Deprecated.voidremove(FactorValue factorValue) Remove a persistent instancesave(FactorValue entity) Create or update an entity whether it is transient.voidupdate(FactorValue entity) voidUpdate 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, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadIds, loadValueObjects, loadValueObjectsMethods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDao
doLoadValueObjects, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds, postProcessValueObjectsMethods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getEntityName, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, save, streamAll, streamAll, streamQuery, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.persistence.service.BaseDao
countAll, create, findOrCreate, getElementClass, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, save, streamAll, streamAll, updateMethods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface ubic.gemma.persistence.service.FilteringDao
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadIdsMethods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledDao
loadValueObjects, loadValueObjects
-
Constructor Details
-
FactorValueDaoImpl
-
-
Method Details
-
create
Description copied from interface:BaseDaoCreate an object. If the entity type is immutable, this may also remove any existing entities identified by an appropriate 'find' method.- Specified by:
createin interfaceBaseDao<FactorValue>- Overrides:
createin classAbstractDao<FactorValue>- Parameters:
factorValue- the entity to create- Returns:
- the persistent version of the entity
-
save
Description copied from interface:BaseDaoCreate or update an entity whether it is transient.Unlike
BaseDao.update(Identifiable), this method does not attach the given entity to the persistence context and the returned value must be used instead.- Specified by:
savein interfaceBaseDao<FactorValue>- Overrides:
savein classAbstractDao<FactorValue>- See Also:
-
update
- Specified by:
updatein interfaceBaseDao<FactorValue>- Overrides:
updatein classAbstractDao<FactorValue>- Parameters:
entity- Update the entity. Not supported if the entity is immutable.
-
loadAll
Description copied from interface:FactorValueDaoLoad a slice ofFactorValues.Results are filtered by ACL on the owning
ExpressionExperiment.- Specified by:
loadAllin interfaceFactorValueDao
-
loadAllIds
Description copied from interface:FactorValueDaoLoad all factor value IDs.Results are filtered by ACL on the owning
ExpressionExperiment.- Specified by:
loadAllIdsin interfaceFactorValueDao
-
loadAllIds
Description copied from interface:FactorValueDaoLoad a slice of the factor values IDs.Results are filtered by ACL on the owning
ExpressionExperiment.- Specified by:
loadAllIdsin interfaceFactorValueDao
-
findByValueStartingWith
Description copied from interface:FactorValueDaoLocate based on string value of the value.Results are filtered by ACL on the owning
ExpressionExperiment.- Specified by:
findByValueStartingWithin interfaceFactorValueDao- Parameters:
valuePrefix- value prefixmaxResults- maximum number of results to return, or -1 for no limit- Returns:
- collection of factor values
-
loadWithOldStyleCharacteristics
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
-
getExperimentalFactorCategories
public Map<FactorValue,Characteristic> getExperimentalFactorCategories(Collection<FactorValue> factorValues) - Specified by:
getExperimentalFactorCategoriesin interfaceFactorValueDao
-
getExpressionExperimentsIgnoreAcls
public Map<FactorValue,ExpressionExperiment> getExpressionExperimentsIgnoreAcls(Collection<FactorValue> factorValues) - Specified by:
getExpressionExperimentsIgnoreAclsin interfaceFactorValueDao
-
updateIgnoreAcl
Description copied from interface:FactorValueDaoUpdate a FactorValue without involving ACL advice.- Specified by:
updateIgnoreAclin interfaceFactorValueDao
-
remove
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
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
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>
-