public interface AggregateCrud
| Modifier and Type | Method and Description |
|---|---|
<T extends Aggregate<T>> |
find(String aggregateType,
String entityId,
Optional<AggregateCrudFindOptions> findOptions)
Find a Aggregate events by giving aggregateType and entityId
|
EntityIdVersionAndEventIds |
save(String aggregateType,
List<EventTypeAndData> events,
Optional<AggregateCrudSaveOptions> options)
Create a new Aggregate by processing a command and persisting the events
|
EntityIdVersionAndEventIds |
update(EntityIdAndType entityIdAndType,
Int128 entityVersion,
List<EventTypeAndData> events,
Optional<AggregateCrudUpdateOptions> updateOptions)
Update the Aggregate by processing a command and persisting the events
|
EntityIdVersionAndEventIds save(String aggregateType, List<EventTypeAndData> events, Optional<AggregateCrudSaveOptions> options)
aggregateType - the aggregateType for event storeevents - the list of events for the aggregateoptions - the command options<T extends Aggregate<T>> LoadedEvents find(String aggregateType, String entityId, Optional<AggregateCrudFindOptions> findOptions)
T - type TaggregateType - the aggregateType for event storeentityId - entity IdfindOptions - the command optionsEntityIdVersionAndEventIds update(EntityIdAndType entityIdAndType, Int128 entityVersion, List<EventTypeAndData> events, Optional<AggregateCrudUpdateOptions> updateOptions)
entityIdAndType - the aggregate id and aggregateType for udpating on event storeentityVersion - entity version numberevents - the list of events for the aggregateupdateOptions - the command optionsCopyright © 2021. All rights reserved.