Interface RootAggregateChange<T>

All Superinterfaces:
AggregateChange<T>, MutableAggregateChange<T>

public interface RootAggregateChange<T> extends MutableAggregateChange<T>
Represents the change happening to the aggregate (as used in the context of Domain Driven Design) as a whole.
Since:
3.0
Author:
Chirag Tailor
  • Method Details

    • getRoot

      T getRoot()
      The root object to which this AggregateChange relates. Guaranteed to be not null.
    • setRoot

      void setRoot(T aggregateRoot)
      Set the root object of the AggregateChange.
      Parameters:
      aggregateRoot - must not be null.
    • setRootAction

      void setRootAction(DbAction.WithRoot<T> action)
      Sets the action for the root object of this AggregateChange.
      Parameters:
      action - must not be null.