Module spring.data.relational
Interface BatchingAggregateChange<T,C extends MutableAggregateChange<T>>
- All Superinterfaces:
AggregateChange<T>
- All Known Implementing Classes:
DeleteBatchingAggregateChange,SaveBatchingAggregateChange
public interface BatchingAggregateChange<T,C extends MutableAggregateChange<T>>
extends AggregateChange<T>
Represents the changes happening to one or more aggregates (as used in the context of Domain Driven Design) as a
whole. This change allows additional
MutableAggregateChange of a particular kind to be added to it to
broadly represent the changes to multiple aggregates across all such added changes.- 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 TypeMethodDescriptionvoidAdds aMutableAggregateChangeinto thisBatchingAggregateChange.static <T> BatchingAggregateChange<T,DeleteAggregateChange<T>> Factory method to create aBatchingAggregateChangefor deleting entities.static <T> BatchingAggregateChange<T,RootAggregateChange<T>> Factory method to create aBatchingAggregateChangefor saving entities.Methods inherited from interface org.springframework.data.relational.core.conversion.AggregateChange
forEachAction, getEntityType, getKind
-
Method Details
-
add
Adds aMutableAggregateChangeinto thisBatchingAggregateChange.- Parameters:
aggregateChange- must not be null.
-
forSave
Factory method to create aBatchingAggregateChangefor saving entities.- Type Parameters:
T- entity type.- Parameters:
entityClass- aggregate root type.- Returns:
- the
BatchingAggregateChangefor saving root entities. - Since:
- 3.0
-
forDelete
Factory method to create aBatchingAggregateChangefor deleting entities.- Type Parameters:
T- entity type.- Parameters:
entityClass- aggregate root type.- Returns:
- the
BatchingAggregateChangefor deleting root entities. - Since:
- 3.0
-