@Repository public class AuditEventDao extends DaoBase implements IAuditEventDao
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
AuditEventDao() |
Modifier and Type | Method and Description |
---|---|
long |
count()
Count the AuditEvents in this database
|
boolean |
exists(java.util.UUID uuid)
Checks whether an AuditEvent with a matching uuid exists in the database
|
AuditEvent |
findByDate(org.joda.time.DateTime dateTime)
Returns the AuditEvent that represents the given DateTime
|
AuditEvent |
findById(java.lang.Integer id)
Find the AuditEvent with an identifier equal to the parameter
|
AuditEvent |
findByUuid(java.util.UUID uuid)
Find the AuditEvent with a uuid (surrogate key) equal to the uuid supplied
|
protected org.hibernate.envers.AuditReader |
getAuditReader() |
AuditEvent |
getNextAuditEvent(AuditEvent auditEvent)
Returns the AuditEvent immediately proceeding the audit event passed as an argument
|
AuditEvent |
getPreviousAuditEvent(AuditEvent auditEvent)
Returns the AuditEvent immediately preceding the audit event passed as an argument
|
java.util.List<AuditEvent> |
list(java.lang.Integer pageNumber,
java.lang.Integer pageSize,
AuditEventSort sort)
Returns a sublist of AuditEvent instances stored in the database.
|
addCriteria, addFieldPredicate, addLimitAndStart, addLimitAndStart, addLimitAndStart, addOrder, addOrder, addOrder, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, flush, getSession, getSessionFactory, orderByClause, setSessionFactory, splitCollection
protected org.hibernate.envers.AuditReader getAuditReader()
public long count()
IAuditEventDao
count
in interface IAuditEventDao
public boolean exists(java.util.UUID uuid)
IAuditEventDao
exists
in interface IAuditEventDao
public AuditEvent findById(java.lang.Integer id)
IAuditEventDao
findById
in interface IAuditEventDao
public AuditEvent findByUuid(java.util.UUID uuid)
IAuditEventDao
findByUuid
in interface IAuditEventDao
public AuditEvent getNextAuditEvent(AuditEvent auditEvent)
IAuditEventDao
getNextAuditEvent
in interface IAuditEventDao
public AuditEvent getPreviousAuditEvent(AuditEvent auditEvent)
IAuditEventDao
getPreviousAuditEvent
in interface IAuditEventDao
public java.util.List<AuditEvent> list(java.lang.Integer pageNumber, java.lang.Integer pageSize, AuditEventSort sort)
IAuditEventDao
list
in interface IAuditEventDao
pageNumber
- the maximum number of entities returned (can be null to return all entities)sort
- Whether the list is sorted going forward in time (AuditEventSort.FORWARDS)
or backwards (AuditEventSort.BACKWARDS)public AuditEvent findByDate(org.joda.time.DateTime dateTime)
IAuditEventDao
findByDate
in interface IAuditEventDao
Copyright © 2007-2020 EDIT. All Rights Reserved.