@Experimental public final class UpdateProjectionState<I,P extends Projection<I,S,B>,S extends io.spine.base.EntityState<I>,B extends io.spine.validate.ValidatingBuilder<S>> extends ProjectionMigration<I,P,S,B>
Projectionstate according to the logic defined in
onBeforeCommit()method, if it is defined.
onBeforeCommit() is designed to contain common logic on setting
the calculated state fields. In a normal operational mode, it is executed after a projection
handles some signal and before the respective transaction is committed.
If this calculation logic is changed in the code, end-users may need to update the calculated
state of many projections at once. This migration operation is a straightforward way
to invoke the
onBeforeCommit() method within a separate transaction and save the changes
made by it to the states of projections.
|Constructor and Description|
|Modifier and Type||Method and Description|
id, isArchived, isDeleted, markArchived, markDeleted, removeFromStorage, version
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait