eu.etaxonomy.cdm.persistence.view
Interface IAuditEventDao

All Known Implementing Classes:
AuditEventDao

public interface IAuditEventDao


Method Summary
 int count()
          Count the AuditEvents in this database
 boolean exists(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(Integer id)
          Find the AuditEvent with an identifier equal to the parameter
 AuditEvent findByUuid(UUID uuid)
          Find the AuditEvent with a uuid (surrogate key) equal to the uuid supplied
 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
 List<AuditEvent> list(Integer limit, Integer start, AuditEventSort sort)
          Returns a sublist of AuditEvent instances stored in the database.
 

Method Detail

findById

AuditEvent findById(Integer id)
Find the AuditEvent with an identifier equal to the parameter

Parameters:
id -
Returns:
an AuditEvent, or null if there is no AuditEvent with that identifier

findByUuid

AuditEvent findByUuid(UUID uuid)
Find the AuditEvent with a uuid (surrogate key) equal to the uuid supplied

Parameters:
uuid -
Returns:
an AuditEvent, or null if there is no AuditEvent with a uuid which matches

count

int count()
Count the AuditEvents in this database

Returns:
the total number of AuditEvents in this database

list

List<AuditEvent> list(Integer limit,
                      Integer start,
                      AuditEventSort sort)
Returns a sublist of AuditEvent instances stored in the database. A maximum of 'limit' objects are returned, starting at object with index 'start'.

Parameters:
limit - the maximum number of entities returned (can be null to return all entities)
start -
sort - Whether the list is sorted going forward in time (AuditEventSort.FORWARDS) or backwards (AuditEventSort.BACKWARDS)
Returns:
a List of AuditEvent instances

getNextAuditEvent

AuditEvent getNextAuditEvent(AuditEvent auditEvent)
Returns the AuditEvent immediately proceeding the audit event passed as an argument

Parameters:
auditEvent -
Returns:
the AuditEvent immediately proceeding, or null if the AuditEvent passed is the most recent event

getPreviousAuditEvent

AuditEvent getPreviousAuditEvent(AuditEvent auditEvent)
Returns the AuditEvent immediately preceding the audit event passed as an argument

Parameters:
auditEvent -
Returns:
the AuditEvent immediately preceding, or null if the AuditEvent passed is the first event in the database

exists

boolean exists(UUID uuid)
Checks whether an AuditEvent with a matching uuid exists in the database

Parameters:
uuid -
Returns:
true if an AuditEvent with a matching uuid exists in the database, false otherwise

findByDate

AuditEvent findByDate(org.joda.time.DateTime dateTime)
Returns the AuditEvent that represents the given DateTime

Parameters:
dateTime -
Returns:
an AuditEvent object


Copyright © 2007-2013 EDIT. All Rights Reserved.