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
-
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 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.
-
forEachAction
Applies the given consumer to eachDbAction
in thisAggregateChange
.- Parameters:
consumer
- must not be null.
-