public class JPALoggerDAO extends AbstractDAO<Logger> implements LoggerDAO
Modifier and Type | Class and Description |
---|---|
protected static class |
JPALoggerDAO.MessageCriteriaBuilder |
LOG
AUDIT_ENTRY_EVENT_DATE_COLUMN, AUDIT_MESSAGE_COLUMN, AUDIT_TABLE
Constructor and Description |
---|
JPALoggerDAO() |
Modifier and Type | Method and Description |
---|---|
int |
countAuditEntries(String entityKey,
AuditElements.EventCategoryType type,
String category,
String subcategory,
List<String> events,
AuditElements.Result result,
Date before,
Date after) |
void |
delete(Logger logger) |
void |
delete(String key) |
protected void |
fillWithParameters(javax.persistence.Query query,
List<Object> parameters) |
Logger |
find(String key) |
List<Logger> |
findAll(LoggerType type) |
List<AuditEntry> |
findAuditEntries(String entityKey,
int page,
int itemsPerPage,
AuditElements.EventCategoryType type,
String category,
String subcategory,
List<String> events,
AuditElements.Result result,
Date before,
Date after,
List<OrderByClause> orderBy) |
protected JPALoggerDAO.MessageCriteriaBuilder |
messageCriteriaBuilder(String entityKey) |
Logger |
save(Logger logger) |
protected String |
select() |
clear, detach, entityManager, entityManagerFactory, refresh
public List<Logger> findAll(LoggerType type)
protected JPALoggerDAO.MessageCriteriaBuilder messageCriteriaBuilder(String entityKey)
protected void fillWithParameters(javax.persistence.Query query, List<Object> parameters)
public int countAuditEntries(String entityKey, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, Date before, Date after)
countAuditEntries
in interface LoggerDAO
protected String select()
@Transactional(readOnly=true) public List<AuditEntry> findAuditEntries(String entityKey, int page, int itemsPerPage, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, Date before, Date after, List<OrderByClause> orderBy)
findAuditEntries
in interface LoggerDAO
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.