Interface AggregateChange<T>

All Known Subinterfaces:
MutableAggregateChange<T>

public interface AggregateChange<T>
Represents the change happening to the aggregate (as used in the context of Domain Driven Design) as a whole.
Author:
Jens Schauder, Mark Paluch
  • Method Details

    • getKind

      Returns the AggregateChange.Kind of AggregateChange this is.
      Returns:
      guaranteed to be not null.
    • getEntityType

      Class<T> getEntityType()
      The type of the root of this AggregateChange.
      Returns:
      Guaranteed to be not null.
    • getEntity

      @Nullable T getEntity()
      The entity to which this AggregateChange relates.
      Returns:
      may be null.
    • forEachAction

      void forEachAction(Consumer<? super DbAction<?>> consumer)
      Applies the given consumer to each DbAction in this AggregateChange.
      Parameters:
      consumer - must not be null.