Class DeleteAggregateChange<T>
java.lang.Object
org.springframework.data.relational.core.conversion.DeleteAggregateChange<T>
- All Implemented Interfaces:
AggregateChange<T>,MutableAggregateChange<T>
Represents the change happening to the aggregate (as used in the context of Domain Driven Design) as a whole.
- Since:
- 2.0
- Author:
- Jens Schauder, Mark Paluch, Chirag Tailor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.relational.core.conversion.AggregateChange
AggregateChange.Kind -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an action to thisAggregateChange.voidforEachAction(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
-
addAction
Adds an action to thisAggregateChange.- Specified by:
addActionin interfaceMutableAggregateChange<T>- Parameters:
action- must not be null.
-
getKind
Description copied from interface:AggregateChangeReturns theAggregateChange.KindofAggregateChangethis is.- Specified by:
getKindin interfaceAggregateChange<T>- Returns:
- guaranteed to be not null.
-
getEntityType
Description copied from interface:AggregateChangeThe type of the root of thisAggregateChange.- Specified by:
getEntityTypein interfaceAggregateChange<T>- Returns:
- Guaranteed to be not null.
-
getPreviousVersion
- Specified by:
getPreviousVersionin interfaceMutableAggregateChange<T>
-
forEachAction
Description copied from interface:AggregateChangeApplies the given consumer to eachDbActionin thisAggregateChange.- Specified by:
forEachActionin interfaceAggregateChange<T>- Parameters:
consumer- must not be null.
-