Class PropertyAuditProjection

java.lang.Object
org.hibernate.envers.query.projection.internal.PropertyAuditProjection
All Implemented Interfaces:
AuditProjection

public class PropertyAuditProjection extends Object implements AuditProjection
  • Constructor Details

  • Method Details

    • getAlias

      public String getAlias(String baseAlias)
      Description copied from interface: AuditProjection
      Get the alias associated with the audit projection.
      Specified by:
      getAlias in interface AuditProjection
      Parameters:
      baseAlias - the base alias if one exists; may be null
      Returns:
      the alias
    • addProjectionToQuery

      public void addProjectionToQuery(EnversService enversService, AuditReaderImplementor auditReader, Map<String,String> aliasToEntityNameMap, Map<String,String> aliasToComponentPropertyNameMap, String baseAlias, QueryBuilder queryBuilder)
      Description copied from interface: AuditProjection
      Adds an audit projection to the specified query.
      Specified by:
      addProjectionToQuery in interface AuditProjection
      Parameters:
      enversService - the Envers service
      auditReader - the audit reader implementor
      aliasToEntityNameMap - the entity name alias map
      baseAlias - the base alias, if one is specified; may be null
      queryBuilder - the query builder
    • convertQueryResult

      public Object convertQueryResult(EnversService enversService, EntityInstantiator entityInstantiator, String entityName, Number revision, Object value)
      Specified by:
      convertQueryResult in interface AuditProjection
      Parameters:
      enversService - the Envers service
      entityInstantiator - the entity instantiator
      entityName - the name of the entity for which the projection has been added
      revision - the revision
      value - the value to convert
      Returns:
      the converted value