public abstract class AnnotatableDaoImpl<T extends AnnotatableEntity> extends VersionableDaoBase<T> implements IAnnotatableDao<T>
defaultBeanInitializer, flushAfterNo, LEFTOUTER_OPS, type
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
AnnotatableDaoImpl(java.lang.Class<T> type) |
Modifier and Type | Method and Description |
---|---|
long |
countAnnotations(T annotatableEntity,
MarkerType status)
Returns a count of Annotations belonging to the supplied AnnotatableEntity
|
int |
countMarkers(java.lang.Class<? extends T> clazz,
java.lang.Boolean technical)
returns a count of all markers belonging to that clazz, optionally filtered to include only technical or only non-technical markers.
|
long |
countMarkers(T annotatableEntity,
java.lang.Boolean technical)
Returns a count of Markers belonging to the supplied AnnotatableEntity
|
java.util.List<Annotation> |
getAnnotations(T annotatableEntity,
MarkerType status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a List of Annotations belonging to the supplied AnnotatableEntity
|
java.util.List<Marker> |
getMarkers(T annotatableEntity,
java.lang.Boolean technical,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<java.lang.Object[]> |
groupMarkers(java.lang.Class<? extends T> clazz,
java.lang.Boolean technical,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a list of arrays representing counts of entities of type clazz, grouped by their markerTypes.
|
addCriteria, addOrder, checkNotInPriorView, count, count, count, countAuditEvents, countAuditEvents, countByParam, exists, findByParam, findByParamWithRestrictions, findByUuid, getAuditEventFromContext, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent, list, list, list, list, load, load, load
addExample, addGroups, clear, count, countByParamWithRestrictions, countGroups, createCriteria, delete, entityType, findById, findByParam, findByUuid, findByUuidWithoutFlush, getAuditReader, getCriteria, getSession, getType, group, list, list, list, list, list, list, load, loadList, lock, makeAuditQuery, merge, merge, refresh, refresh, replace, save, saveAll, saveCdmObj, saveOrUpdate, saveOrUpdateAll, setDefaultBeanInitializer, setPagingParameter, setPagingParameter, update
addCriteria, addFieldPredicate, addLimitAndStart, addLimitAndStart, addLimitAndStart, addOrder, addOrder, addOrder, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, flush, getSessionFactory, orderByClause, setSessionFactory, splitCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
clear, count, count, count, count, countByParam, countByParamWithRestrictions, delete, exists, findById, findByParam, findByParam, findByParamWithRestrictions, findByUuid, findByUuidWithoutFlush, flush, getSession, getType, group, list, list, list, list, list, list, list, list, list, load, load, load, loadList, lock, merge, merge, refresh, refresh, replace, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
public AnnotatableDaoImpl(java.lang.Class<T> type)
type
- public long countAnnotations(T annotatableEntity, MarkerType status)
IAnnotatableDao
countAnnotations
in interface IAnnotatableDao<T extends AnnotatableEntity>
annotatableEntity
- the entity which is annotatedstatus
- The status of the annotations (null to count all annotations regardless of status)public java.util.List<Annotation> getAnnotations(T annotatableEntity, MarkerType status, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IAnnotatableDao
getAnnotations
in interface IAnnotatableDao<T extends AnnotatableEntity>
annotatableEntity
- the entity which is annotatedstatus
- The status of the annotations (null to return annotations regardless of status)pageSize
- The maximum number of annotations returned (can be null for all annotations)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
public long countMarkers(T annotatableEntity, java.lang.Boolean technical)
IAnnotatableDao
countMarkers
in interface IAnnotatableDao<T extends AnnotatableEntity>
annotatableEntity
- the entity which is markedtechnical
- The type of MarkerTypes to consider (null to count all markers, regardless of whether the makerType is technical or not)public java.util.List<Marker> getMarkers(T annotatableEntity, java.lang.Boolean technical, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
getMarkers
in interface IAnnotatableDao<T extends AnnotatableEntity>
annotatableEntity
- the entity which is markedtechnical
- The type of MarkerTypes to consider (null to count all markers, regardless of whether the makerType is technical or not)pageSize
- The maximum number of markers returned (can be null for all markers)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
public int countMarkers(java.lang.Class<? extends T> clazz, java.lang.Boolean technical)
IAnnotatableDao
countMarkers
in interface IAnnotatableDao<T extends AnnotatableEntity>
clazz
- optionally restrict the markers to those belonging to this classtechnical
- The type of MarkerTypes to consider (null to count all markers, regardless of whether the makerType is technical or not)public java.util.List<java.lang.Object[]> groupMarkers(java.lang.Class<? extends T> clazz, java.lang.Boolean technical, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IAnnotatableDao
groupMarkers
in interface IAnnotatableDao<T extends AnnotatableEntity>
clazz
- optionally restrict the markers to those belonging to this classtechnical
- The type of MarkerTypes to consider (null to count all markers, regardless of whether the makerType is technical or not)pageSize
- The maximum number of arrays returned (can be null for all arrays)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
Copyright © 2007-2020 EDIT. All Rights Reserved.