public class AuditDAOHibernate extends HibernateDao implements AuditDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
sessionFactory
Constructor and Description |
---|
AuditDAOHibernate() |
Modifier and Type | Method and Description |
---|---|
void |
add(AuditLogChangesetEntity entry)
Persists the changeset and its entries
|
long |
getAuditLogSize() |
Class<AuditLogEntryEntity> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
#load(long) to work correctly. |
int |
removeChangesetsOlderThan(long timestamp)
Removes the audit log entries older than specified timestamp
|
List<AuditLogChangesetEntity> |
search(EntityQuery<AuditLogChangeset> query)
Searches the audit log for entries matching the specified criteria
|
void |
setHqlQueryTranslater(HQLQueryTranslater hqlQueryTranslater) |
createHibernateQuery, load, load, loadReference, loadReference, remove, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, update
setSessionFactory, withStatelessSession
public void add(AuditLogChangesetEntity entry)
AuditDao
public List<AuditLogChangesetEntity> search(EntityQuery<AuditLogChangeset> query)
AuditDao
public int removeChangesetsOlderThan(long timestamp)
AuditDao
removeChangesetsOlderThan
in interface AuditDao
timestamp
- the timestamppublic long getAuditLogSize()
getAuditLogSize
in interface AuditDao
public Class<AuditLogEntryEntity> getPersistentClass()
HibernateDao
#load(long)
to work correctly.getPersistentClass
in class HibernateDao
@Autowired public void setHqlQueryTranslater(HQLQueryTranslater hqlQueryTranslater)
Copyright © 2017 Atlassian. All rights reserved.