public interface IVersionableDao<T extends VersionableEntity> extends ICdmEntityDao<T>
Modifier and Type | Method and Description |
---|---|
long |
countAuditEvents(java.lang.Class<? extends T> clazz,
AuditEvent from,
AuditEvent to,
java.util.List<org.hibernate.envers.query.criteria.AuditCriterion> criteria)
Returns a count of the total number of audit events affecting objects of class T, optionally restricted to objects of
class clazz, the AuditEvents from and to, inclusive, optionally filtered by other criteria
|
long |
countAuditEvents(T t,
AuditEventSort sort)
Returns a count of audit events which affected the state of an entity t.
|
java.util.List<AuditEventRecord<T>> |
getAuditEvents(java.lang.Class<? extends T> clazz,
AuditEvent from,
AuditEvent to,
java.util.List<org.hibernate.envers.query.criteria.AuditCriterion> criteria,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
AuditEventSort sort,
java.util.List<java.lang.String> propertyPaths)
Returns a list of all audit events occurring to objects of type T, optionally restricted to objects of type clazz
between the AuditEvents from and to, inclusive, optionally filtered by other criteria
|
java.util.List<AuditEventRecord<T>> |
getAuditEvents(T t,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
AuditEventSort sort,
java.util.List<java.lang.String> propertyPaths)
Returns a list of audit events (in order) which affected the state of an entity t.
|
AuditEventRecord<T> |
getNextAuditEvent(T t)
A convenience method which returns a record of the next (relative to the audit event in context)
audit event to affect the entity t.
|
AuditEventRecord<T> |
getPreviousAuditEvent(T t)
A convenience method which returns a record of the previous (relative to the audit event in context)
audit event to affect the entity t.
|
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
java.util.List<AuditEventRecord<T>> getAuditEvents(T t, java.lang.Integer pageSize, java.lang.Integer pageNumber, AuditEventSort sort, java.util.List<java.lang.String> propertyPaths)
t
- The versionable entity which was affected by the audit eventspageSize
- The maximum number of audit event records returned (can be null for all audit event records)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)sort
- should the list be sorted going forward in time (AuditEventSort.FORWARDS) or backwards (AuditEventSort.BACKWARDS)propertyPaths
- paths initialized on the returned audited objectslong countAuditEvents(T t, AuditEventSort sort)
t
- The versionable entity which was affected by the audit eventssort
- should the events considered start now and go forward in time (AuditEventSort.FORWARDS) or backwards (AuditEventSort.BACKWARDS)AuditEventRecord<T> getNextAuditEvent(T t)
t
- The versionable entity affected by these audit eventsAuditEventRecord<T> getPreviousAuditEvent(T t)
t
- The versionable entity affected by these audit eventslong countAuditEvents(java.lang.Class<? extends T> clazz, AuditEvent from, AuditEvent to, java.util.List<org.hibernate.envers.query.criteria.AuditCriterion> criteria)
clazz
- Restrict the results returned to objects of this classfrom
- The audit event to start from (or pass null to start from the beginning of the recordset)to
- The audit event to continue until (or pass null to return audit events up to the time of the query)criteria
- Extra criteria to filter byjava.util.List<AuditEventRecord<T>> getAuditEvents(java.lang.Class<? extends T> clazz, AuditEvent from, AuditEvent to, java.util.List<org.hibernate.envers.query.criteria.AuditCriterion> criteria, java.lang.Integer pageSize, java.lang.Integer pageNumber, AuditEventSort sort, java.util.List<java.lang.String> propertyPaths)
clazz
- Restrict the results returned to objects of this classfrom
- The audit event to start from (inclusive, or pass null to start from the beginning of the recordset)to
- The audit event to continue until (exclusive, or pass null to return audit events up to the time of the query)criteria
- Extra criteria to filter bypageSize
- The maximum number of objects returned (can be null for all matching objects)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based,
can be null, equivalent of starting at the beginning of the recordset)sort
- Sort the events either forwards or backwards in timepropertyPaths
- properties to be initializedCopyright © 2007-2020 EDIT. All Rights Reserved.