public class AuditDAOHibernate extends HibernateDao<AuditLogEntryEntity> 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
HibernateDao.load(Serializable) to work
correctly. |
int |
removeChangesetsOlderThan(long timestamp)
Removes the audit log entries older than specified timestamp
|
<RESULT> List<RESULT> |
search(AuditLogQuery<RESULT> query)
Searches the audit log for entries matching the specified criteria
|
void |
setAuditLogQueryTranslator(AuditLogQueryTranslator auditLogQueryTranslator) |
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, getCountByProperties, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, update
setSessionFactory, withStatelessSession
public void add(AuditLogChangesetEntity entry)
AuditDao
public <RESULT> List<RESULT> search(AuditLogQuery<RESULT> 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
HibernateDao.load(Serializable)
to work
correctly.getPersistentClass
in class HibernateDao<AuditLogEntryEntity>
@Autowired public void setAuditLogQueryTranslator(AuditLogQueryTranslator auditLogQueryTranslator)
Copyright © 2021 Atlassian. All rights reserved.