Interface AggregateChangeWithRoot<T>
- All Superinterfaces:
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.6
- Author:
- Chirag Tailor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.relational.core.conversion.AggregateChange
AggregateChange.Kind
-
Method Summary
Modifier and TypeMethodDescriptiongetRoot()
The root object to which thisAggregateChange
relates.void
Set the root object of theAggregateChange
.void
setRootAction
(DbAction.WithRoot<T> action) Sets the action for the root object of thisAggregateChange
.Methods inherited from interface org.springframework.data.relational.core.conversion.AggregateChange
forEachAction, getEntityType, getKind
Methods inherited from interface org.springframework.data.relational.core.conversion.MutableAggregateChange
addAction, getPreviousVersion
-
Method Details
-
getRoot
T getRoot()The root object to which thisAggregateChange
relates. Guaranteed to be notnull
. -
setRoot
Set the root object of theAggregateChange
.- Parameters:
aggregateRoot
- must not be null.
-
setRootAction
Sets the action for the root object of thisAggregateChange
.- Parameters:
action
- must not be null.
-