Projection Transaction
public class ProjectionTransaction<I, S extends EntityState, B extends ValidatingBuilder<S>> extends EventPlayingTransaction<I, E, S, B>
A transaction, within which projection instances are modified.
Parameters
<I>
the type of projection IDs
<S>
the type of projection state
<B>
the type of a ValidatingBuilder
for the projection state
Functions
Link copied to clipboard
Creates a version increment for the entity based on the currently processed event.
Link copied to clipboard
Dispatches the event message and its context to the given entity.
Link copied to clipboard
protected static ProjectionTransaction<I, S, B> start<I, S extends EntityState, B extends ValidatingBuilder<S>>(Projection<I, S, B> projection)
Creates a new transaction for a given
projection
.Inherited functions
Link copied to clipboard
Applies lifecycle flag modifications to the entity under transaction.
Link copied to clipboard
Commits this transaction if it is still active.
Link copied to clipboard
Applies the given event to the entity in transaction.
Link copied to clipboard
Set
archived
lifecycle flag to the passed value.Link copied to clipboard
Set
deleted
lifecycle flag to the passed value.Link copied to clipboard
Injects a listener into this transaction.