Interface AggregateChange<T>

All Known Subinterfaces:
BatchingAggregateChange<T,C>, MutableAggregateChange<T>, RootAggregateChange<T>
All Known Implementing Classes:
DeleteAggregateChange, DeleteBatchingAggregateChange, SaveBatchingAggregateChange

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, Chirag Tailor
  • 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.
    • forEachAction

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