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 TypeMethodDescriptionvoid
Adds aMutableAggregateChange
into thisBatchingAggregateChange
.static <T> BatchingAggregateChange<T,
DeleteAggregateChange<T>> Factory method to create aBatchingAggregateChange
for deleting entities.static <T> BatchingAggregateChange<T,
RootAggregateChange<T>> Factory method to create aBatchingAggregateChange
for saving entities.Methods inherited from interface org.springframework.data.relational.core.conversion.AggregateChange
forEachAction, getEntityType, getKind
-
Method Details
-
add
Adds aMutableAggregateChange
into thisBatchingAggregateChange
.- Parameters:
aggregateChange
- must not be null.
-
forSave
Factory method to create aBatchingAggregateChange
for saving entities.- Type Parameters:
T
- entity type.- Parameters:
entityClass
- aggregate root type.- Returns:
- the
BatchingAggregateChange
for saving root entities. - Since:
- 3.0
-
forDelete
Factory method to create aBatchingAggregateChange
for deleting entities.- Type Parameters:
T
- entity type.- Parameters:
entityClass
- aggregate root type.- Returns:
- the
BatchingAggregateChange
for deleting root entities. - Since:
- 3.0
-