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
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe kind of action to be performed on an aggregate. -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachAction(Consumer<? super DbAction<?>> consumer) Applies the given consumer to eachDbActionin thisAggregateChange.The type of the root of thisAggregateChange.getKind()Returns theAggregateChange.KindofAggregateChangethis is.
-
Method Details
-
getKind
AggregateChange.Kind getKind()Returns theAggregateChange.KindofAggregateChangethis is.- Returns:
- guaranteed to be not null.
-
getEntityType
-
forEachAction
-