Module spring.data.relational
Interface RootAggregateChange<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:
- 3.0
- 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 thisAggregateChangerelates.voidSet the root object of theAggregateChange.voidsetRootAction(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, getKindMethods inherited from interface org.springframework.data.relational.core.conversion.MutableAggregateChange
addAction, getPreviousVersion
-
Method Details
-
getRoot
T getRoot()The root object to which thisAggregateChangerelates. 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.
-