@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.QueryHintREPORT_SLOW_QUERY_AFTER_MSelementClass, 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, processLoadValueObjectsQueryResultgetObjectAlias, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsdoLoadValueObjectscountAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, flush, flushAndClear, getElementClass, getSessionFactory, load, load, loadAll, reattach, reattach, remove, remove, removeAll, save, save, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadValueObjectsPreFilter, loadValueObjectsPreFiltergetElementClass, getObjectAliasloadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds@Autowired public FactorValueDaoImpl(SessionFactory sessionFactory)
public Collection<FactorValue> findByValue(String valuePrefix)
FactorValueDaofindByValue in interface FactorValueDaovaluePrefix - value prefixpublic void remove(@Nullable FactorValue factorValue)
BaseDaoremove in interface BaseDao<FactorValue>remove in class AbstractDao<FactorValue>factorValue - the entity to be removedpublic FactorValue find(FactorValue factorValue)
BaseDaofind 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)
AbstractQueryFilteringVoEnabledDaoList 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 OCopyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.