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 TypeMethodDescriptionvoid
Adds an action to thisAggregateChange
.void
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
-
addAction
Adds an action to thisAggregateChange
.- Specified by:
addAction
in interfaceMutableAggregateChange<T>
- Parameters:
action
- must not be null.
-
getKind
Description copied from interface:AggregateChange
Returns theAggregateChange.Kind
ofAggregateChange
this is.- Specified by:
getKind
in interfaceAggregateChange<T>
- Returns:
- guaranteed to be not null.
-
getEntityType
Description copied from interface:AggregateChange
The type of the root of thisAggregateChange
.- Specified by:
getEntityType
in interfaceAggregateChange<T>
- Returns:
- Guaranteed to be not null.
-
getPreviousVersion
- Specified by:
getPreviousVersion
in interfaceMutableAggregateChange<T>
-
forEachAction
Description copied from interface:AggregateChange
Applies the given consumer to eachDbAction
in thisAggregateChange
.- Specified by:
forEachAction
in interfaceAggregateChange<T>
- Parameters:
consumer
- must not be null.
-