Interface AuditProjection
-
- All Known Implementing Classes:
AuditFunction
,AuditId
,AuditProperty
,EntityAuditProjection
,PropertyAuditProjection
public interface AuditProjection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProjectionToQuery(EnversService enversService, AuditReaderImplementor auditReader, Map<String,String> aliasToEntityNameMap, Map<String,String> aliasToComponentPropertyNameMap, String baseAlias, QueryBuilder queryBuilder)
Adds an audit projection to the specified query.Object
convertQueryResult(EnversService enversService, EntityInstantiator entityInstantiator, String entityName, Number revision, Object value)
String
getAlias(String baseAlias)
Get the alias associated with the audit projection.
-
-
-
Method Detail
-
addProjectionToQuery
void addProjectionToQuery(EnversService enversService, AuditReaderImplementor auditReader, Map<String,String> aliasToEntityNameMap, Map<String,String> aliasToComponentPropertyNameMap, String baseAlias, QueryBuilder queryBuilder)
Adds an audit projection to the specified query.- Parameters:
enversService
- the Envers serviceauditReader
- the audit reader implementoraliasToEntityNameMap
- the entity name alias mapbaseAlias
- the base alias, if one is specified; may be nullqueryBuilder
- the query builder
-
getAlias
String getAlias(String baseAlias)
Get the alias associated with the audit projection.- Parameters:
baseAlias
- the base alias if one exists; may be null- Returns:
- the alias
-
convertQueryResult
Object convertQueryResult(EnversService enversService, EntityInstantiator entityInstantiator, String entityName, Number revision, Object value)
- Parameters:
enversService
- the Envers serviceentityInstantiator
- the entity instantiatorentityName
- the name of the entity for which the projection has been addedrevision
- the revisionvalue
- the value to convert- Returns:
- the converted value
-
-