Uses of Class
dk.cloudcreate.essentials.components.eventsourced.aggregates.EventsToPersist
-
-
Uses of EventsToPersist in dk.cloudcreate.essentials.components.eventsourced.aggregates
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates that return EventsToPersist Modifier and Type Method Description EventsToPersist<ID,EVENT_TYPE>EventsToPersist. append(EventsToPersist<ID,EVENT_TYPE> appendEventsToPersist)Immutable method that appends all events inappendEventsToPersistto theeventsin this instance.static <ID,EVENT_TYPE,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. events(FlexAggregate<ID,AGGREGATE_TYPE> aggregate, EVENT_TYPE... eventsToPersist)Wrap the events that should be persisted relates to the given aggregate's command handlingstatic <ID,EVENT_TYPE>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. events(ID aggregateId, dk.cloudcreate.essentials.components.eventsourced.eventstore.postgresql.types.EventOrder eventOrderOfLastRehydratedEvent, EVENT_TYPE... eventsToPersist)Wrap the events that should be persisted for this existing aggregatestatic <ID,EVENT_TYPE>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. initialAggregateEvents(ID aggregateId, EVENT_TYPE... eventsToPersist)Wrap the events that should be persisted for this new aggregatestatic <ID,EVENT_TYPE,AGGREGATE_TYPE extends FlexAggregate<ID,AGGREGATE_TYPE>>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. noEvents(FlexAggregate<ID,AGGREGATE_TYPE> aggregate)Creates an emptyEventsToPersistwhich is handy for a commanded method didn't have a side-effect (e.g.static <ID,EVENT_TYPE>
EventsToPersist<ID,EVENT_TYPE>EventsToPersist. noEvents(ID aggregateId)Creates an emptyEventsToPersistwhich is handy for a commanded method didn't have a side-effect (e.g.Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates with parameters of type EventsToPersist Modifier and Type Method Description EventsToPersist<ID,EVENT_TYPE>EventsToPersist. append(EventsToPersist<ID,EVENT_TYPE> appendEventsToPersist)Immutable method that appends all events inappendEventsToPersistto theeventsin this instance. -
Uses of EventsToPersist in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex that return EventsToPersist Modifier and Type Method Description protected EventsToPersist<ID,Object>FlexAggregate. events(Object... eventsToPersist)Wrap the events that should be persisted as a side effect of a command methodstatic <ID> EventsToPersist<ID,Object>FlexAggregate. newAggregateEvents(ID aggregateId, Object... eventsToPersist)Wrap the events that should be persisted for this new aggregateprotected EventsToPersist<ID,Object>FlexAggregate. noEvents()Creates an emptyEventsToPersistwhich is handy for a commanded method didn't have a side-effect (e.g.Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.flex with parameters of type EventsToPersist Modifier and Type Method Description voidFlexAggregateRepository.DefaultFlexAggregateRepository. persist(EventsToPersist<ID,Object> eventsToPersist)voidFlexAggregateRepository. persist(EventsToPersist<ID,Object> eventsToPersist)Associate a newly created and not yet persistedFlexAggregateinstance with theUnitOfWorkFactory.getRequiredUnitOfWork()
Any changes to will be tracked and will be persisted to the underlyingEventStorewhen theUnitOfWorkis committed.AGGREGATE_TYPEFlexAggregate. rehydrate(EventsToPersist<ID,Object> eventsToPersist)Initialize an aggregate instance fromEventsToPersist
Effectively performs a leftFold over all the previous events related to this aggregate instance -
Uses of EventsToPersist in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful that return EventsToPersist Modifier and Type Method Description EventsToPersist<ID,EVENT_TYPE>StatefulAggregate. getUncommittedChanges()Query any changes to the Aggregate, i.e. -
Uses of EventsToPersist in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic that return EventsToPersist Modifier and Type Method Description EventsToPersist<ID,EVENT_TYPE>AggregateRoot. getUncommittedChanges()The the events that have been applied to this aggregate instance but not yet persisted to the underlyingEventStore -
Uses of EventsToPersist in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.classic.state that return EventsToPersist Modifier and Type Method Description EventsToPersist<ID,EVENT_TYPE>AggregateRootWithState. getUncommittedChanges() -
Uses of EventsToPersist in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern
Methods in dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.modern that return EventsToPersist Modifier and Type Method Description EventsToPersist<ID,EVENT_TYPE>AggregateRoot. getUncommittedChanges()
-