Interface AuditMapping
- All Superinterfaces:
AuxiliaryMapping
Metadata about audit log tables for entities and collections enabled for audit logging.
- Since:
- 7.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateRestriction(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.getChangesetIdMapping(String originalTableName) Get the changeset ID selectable mapping for the given original table.Get the entity loader for single-entity audit queries.@Nullable SelectableMappinggetInvalidatingChangesetIdMapping(String originalTableName) Get the invalidating changeset selectable mapping for the given original table, ornullif the validity audit strategy is not active.@Nullable SelectableMappinggetModificationTypeMapping(String originalTableName) Get the modification type selectable mapping for the given original table, ornullif the table does not carry a modification type column.Methods inherited from interface AuxiliaryMapping
addToInsertGroup, applyPredicate, applyPredicate, applyPredicate, applyPredicate, applyPredicate, applyPredicate, getExtraSelectExpressions, getJdbcMapping, getTableName, isAffectedByInfluencers, resolveTableName, useAuxiliaryTable
-
Method Details
-
getChangesetIdMapping
Get the changeset ID selectable mapping for the given original table. -
getModificationTypeMapping
Get the modification type selectable mapping for the given original table, ornullif the table does not carry a modification type column. -
getInvalidatingChangesetIdMapping
Get the invalidating changeset selectable mapping for the given original table, ornullif 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
AuditEntityLoaderimplementations to build audit-specific load plans.- Parameters:
includeDeletions- iftrue, omit theREVTYPE <> DELfilter
-