Interface AuditMapping

All Superinterfaces:
AuxiliaryMapping

@Incubating public interface AuditMapping extends AuxiliaryMapping
Metadata about audit log tables for entities and collections enabled for audit logging.
Since:
7.4
See Also:
  • Method Details

    • getChangesetIdMapping

      SelectableMapping getChangesetIdMapping(String originalTableName)
      Get the changeset ID selectable mapping for the given original table.
    • getModificationTypeMapping

      @Nullable SelectableMapping getModificationTypeMapping(String originalTableName)
      Get the modification type selectable mapping for the given original table, or null if the table does not carry a modification type column.
    • getInvalidatingChangesetIdMapping

      @Nullable SelectableMapping getInvalidatingChangesetIdMapping(String originalTableName)
      Get the invalidating changeset selectable mapping for the given original table, or null if the validity audit strategy is not active.
    • getEntityLoader

      AuditEntityLoader getEntityLoader()
      Get the entity loader for single-entity audit queries.
    • createRestriction

      Predicate createRestriction(TableGroupProducer tableGroupProducer, TableReference tableReference, List<SelectableMapping> keySelectables, SqlAliasBaseGenerator sqlAliasBaseGenerator, String originalTableName, Expression upperBound, boolean includeDeletions)
      Build the temporal restriction predicate for the given table with an explicit upper bound expression.

      Used by AuditEntityLoader implementations to build audit-specific load plans.

      Parameters:
      includeDeletions - if true, omit the REVTYPE <> DEL filter