Interface AuditWriter

All Known Implementing Classes:
DeleteCoordinatorAudit, InsertCoordinatorAudit, MergeCoordinatorAudit, UpdateCoordinatorAudit
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AuditWriter
Contract for writing a single entity audit row to the audit table at transaction completion.
Since:
7.4
See Also:
  • Method Details

    • writeAuditRow

      void writeAuditRow(EntityKey entityKey, Object entity, Object[] values, ModificationType modificationType, SharedSessionContractImplementor session)
      Write an audit row for the given entity state and modification type. Called by the AuditWorkQueue at transaction completion.
      Parameters:
      entityKey - the entity key
      entity - the entity instance (may be null)
      values - the entity state
      modificationType - the modification type (ADD/MOD/DEL)
      session - the current session