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
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The kind of action to be performed on an aggregate. -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachAction
(Consumer<? super DbAction<?>> consumer) Applies the given consumer to eachDbAction
in thisAggregateChange
.The entity to which thisAggregateChange
relates.The type of the root of thisAggregateChange
.getKind()
Returns theAggregateChange.Kind
ofAggregateChange
this is.
-
Method Details
-
getKind
AggregateChange.Kind getKind()Returns theAggregateChange.Kind
ofAggregateChange
this is.- Returns:
- guaranteed to be not null.
-
getEntityType
The type of the root of thisAggregateChange
.- Returns:
- Guaranteed to be not null.
-
getEntity
The entity to which thisAggregateChange
relates.- Returns:
- may be null.
-
forEachAction
Applies the given consumer to eachDbAction
in thisAggregateChange
.- Parameters:
consumer
- must not be null.
-