Interface CollectionAuditWriter

All Known Implementing Classes:
InsertRowsCoordinatorAudit, RemoveCoordinatorAudit
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 CollectionAuditWriter
Contract for writing collection audit rows to the audit table at transaction completion.
Since:
7.4
See Also:
  • Method Details

    • writeCollectionAuditRows

      void writeCollectionAuditRows(PersistentCollection<?> collection, Object ownerId, Object originalSnapshot, SharedSessionContractImplementor session)
      Write audit rows for the given collection.
      Parameters:
      collection - the persistent collection
      ownerId - the owning entity's identifier
      originalSnapshot - the collection snapshot before the first flush, or null for new collections
      session - the current session