Class CommitAttempt
java.lang.Object
io.fluxzero.sdk.modeling.CommitAttempt
Internal state of one model commit attempt, from its loaded begin-state through ordered changes and completion.
Instances used only as a handler read context leave the evaluation and completion portions empty.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne ordered mutation journal entry. -
Method Summary
Modifier and TypeMethodDescriptionReturns the proof accompanying this context's ancestor selection, ornullfor direct targets.attachTo(DeserializingMessage message) static CommitAttemptcreate(long readStateIndex, MutationPlan.Resolution resolution, Map<String, ? extends Entity<?>> loadedModels) Creates a loaded begin-state for one resolved target set.static CommitAttemptcreateSingle(long readStateIndex, String modelId, Class<?> modelType, MutationPlan.Access access, List<String> sourceProperties, Entity<?> entity) Creates the allocation-minimal begin-state used by a direct single-model strategy.entities()Entity<?> modelIds()readModelIds(io.fluxzero.common.api.modeling.ModelConflictPolicy policy) Reads needed to preserve this policy's evaluation: ACCEPT only reapplies its original steps.List<io.fluxzero.common.api.modeling.ModelRelationshipRead> readRelationships(io.fluxzero.common.api.modeling.ModelConflictPolicy policy) Returns the relationship dependencies relevant to the policy; ACCEPT excludes assertion-only reads.longsteps()targets()Retains identity-only proof used to resolve indirect injected Models at this context's pinned boundary.
-
Method Details
-
withAncestorReads
Retains identity-only proof used to resolve indirect injected Models at this context's pinned boundary. -
ancestorReads
Returns the proof accompanying this context's ancestor selection, ornullfor direct targets. -
readRelationships
public List<io.fluxzero.common.api.modeling.ModelRelationshipRead> readRelationships(io.fluxzero.common.api.modeling.ModelConflictPolicy policy) Returns the relationship dependencies relevant to the policy; ACCEPT excludes assertion-only reads. -
create
public static CommitAttempt create(long readStateIndex, MutationPlan.Resolution resolution, Map<String, ? extends Entity<?>> loadedModels) Creates a loaded begin-state for one resolved target set. -
createSingle
public static CommitAttempt createSingle(long readStateIndex, String modelId, Class<?> modelType, MutationPlan.Access access, List<String> sourceProperties, Entity<?> entity) Creates the allocation-minimal begin-state used by a direct single-model strategy. -
readStateIndex
public long readStateIndex() -
modelIds
-
targets
-
target
-
entity
-
entities
-
attachTo
-
readModelIds
-
readModelIds
-
steps
-
transitions
-
cascadeRootIds
-