Interface AuditProjection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addProjectionToQuery​(org.hibernate.envers.boot.internal.EnversService enversService, org.hibernate.envers.internal.reader.AuditReaderImplementor auditReader, Map<String,​String> aliasToEntityNameMap, Map<String,​String> aliasToComponentPropertyNameMap, String baseAlias, org.hibernate.envers.internal.tools.query.QueryBuilder queryBuilder)
      Adds an audit projection to the specified query.
      Object convertQueryResult​(org.hibernate.envers.boot.internal.EnversService enversService, org.hibernate.envers.internal.entities.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​(org.hibernate.envers.boot.internal.EnversService enversService,
                                  org.hibernate.envers.internal.reader.AuditReaderImplementor auditReader,
                                  Map<String,​String> aliasToEntityNameMap,
                                  Map<String,​String> aliasToComponentPropertyNameMap,
                                  String baseAlias,
                                  org.hibernate.envers.internal.tools.query.QueryBuilder queryBuilder)
        Adds an audit projection to the specified query.
        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
      • 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​(org.hibernate.envers.boot.internal.EnversService enversService,
                                  org.hibernate.envers.internal.entities.EntityInstantiator entityInstantiator,
                                  String entityName,
                                  Number revision,
                                  Object value)
        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