@Repository public class FactorValueDaoImpl extends AbstractQueryFilteringVoEnabledDao<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
.
AbstractQueryFilteringVoEnabledDao.QueryHint
REPORT_SLOW_QUERY_AFTER_MS
elementClass, log
Constructor and Description |
---|
FactorValueDaoImpl(SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected Query |
getLoadValueObjectsQuery(Filters filters,
Sort sort,
EnumSet<AbstractQueryFilteringVoEnabledDao.QueryHint> hints)
Produce a query for retrieving value objects after applying a set of filters and a given ordering.
|
void |
remove(FactorValue factorValue)
Remove a persistent instance
|
getCountValueObjectsQuery, loadValueObjectsPreFilter, loadValueObjectsPreFilter, processLoadValueObjectsQueryResult
getObjectAlias, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
doLoadValueObjects
countAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, flush, flushAndClear, getElementClass, getSessionFactory, load, load, loadAll, reattach, reattach, remove, remove, removeAll, save, save, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadValueObjectsPreFilter, loadValueObjectsPreFilter
getElementClass, getObjectAlias
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
@Autowired public FactorValueDaoImpl(SessionFactory sessionFactory)
public Collection<FactorValue> findByValue(String valuePrefix)
FactorValueDao
findByValue
in interface FactorValueDao
valuePrefix
- value prefixpublic void remove(@Nullable FactorValue factorValue)
BaseDao
remove
in interface BaseDao<FactorValue>
remove
in class AbstractDao<FactorValue>
factorValue
- the entity to be removedpublic FactorValue find(FactorValue factorValue)
BaseDao
find
in interface BaseDao<FactorValue>
find
in class AbstractDao<FactorValue>
factorValue
- the entity to look for.protected FactorValueValueObject doLoadValueObject(FactorValue entity)
AbstractVoEnabledDao
This should be fast and efficient, and avoid any database query or post-processing. If you need to perform
additional queries, consider overriding AbstractVoEnabledDao.loadValueObject(Identifiable)
or AbstractVoEnabledDao.loadValueObjects(Collection)
.
doLoadValueObject
in class AbstractVoEnabledDao<FactorValue,FactorValueValueObject>
protected Query getLoadValueObjectsQuery(@Nullable Filters filters, @Nullable Sort sort, EnumSet<AbstractQueryFilteringVoEnabledDao.QueryHint> hints)
AbstractQueryFilteringVoEnabledDao
List
of O
when Query.list()
is invoked,
you must override AbstractQueryFilteringVoEnabledDao.processLoadValueObjectsQueryResult(Object)
.getLoadValueObjectsQuery
in class AbstractQueryFilteringVoEnabledDao<FactorValue,FactorValueValueObject>
Query
that produce a list of O
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.