public abstract class AbstractCuratableDao<C extends Curatable,VO extends AbstractCuratableValueObject<C>> extends AbstractQueryFilteringVoEnabledDao<C,VO> implements CuratableDao<C,VO>
AbstractQueryFilteringVoEnabledDao.QueryHint
REPORT_SLOW_QUERY_AFTER_MS
elementClass, log
Modifier | Constructor and Description |
---|---|
protected |
AbstractCuratableDao(String objectAlias,
Class<C> elementClass,
SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
addEventsToMap(Map<Long,Collection<AuditEvent>> eventMap,
Long id,
AuditEvent event) |
protected void |
addNonTroubledFilter(Filters filters,
String objectAlias)
Restrict results to non-troubled curatable entities for non-administrators
|
C |
create(C entity)
Create an object.
|
Collection<C> |
findByName(String name)
Finds an entity by given name.
|
C |
findByShortName(String name)
Finds an entity by given short name.
|
getCountValueObjectsQuery, getLoadValueObjectsQuery, loadValueObjectsPreFilter, loadValueObjectsPreFilter, processLoadValueObjectsQueryResult
getObjectAlias, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
doLoadValueObject, doLoadValueObjects
countAll, create, find, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, flush, flushAndClear, getElementClass, getSessionFactory, load, load, loadAll, reattach, reattach, remove, 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
protected AbstractCuratableDao(String objectAlias, Class<C> elementClass, SessionFactory sessionFactory)
public C create(C entity)
BaseDao
public Collection<C> findByName(String name)
findByName
in interface CuratableDao<C extends Curatable,VO extends AbstractCuratableValueObject<C>>
name
- name of the entity to be found.public C findByShortName(String name)
findByShortName
in interface CuratableDao<C extends Curatable,VO extends AbstractCuratableValueObject<C>>
name
- short name of the entity to be found.protected void addEventsToMap(Map<Long,Collection<AuditEvent>> eventMap, Long id, AuditEvent event)
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.