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 TypeMethodDescriptionInternal loading provenance, separate from the canonically keyed loaded Models.Returns 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.static CommitAttemptcurrentReadContext(ModelRepository repository) Returns this repository's active mutation read context, never an event-replay or escaped async context.entities()Entity<?> Loaded and staged values visible to Graph reads at this attempt's boundary.modelIds()readAliasIds(io.fluxzero.common.api.modeling.ModelConflictPolicy policy) Returns consumed alias lookups, excluding assertion-only lookups for ACCEPT.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()<T> Graph<T> trackGraph(Graph<T> graph, ModelRepository repository) Attaches the same attempt provenance to a repository-created Graph without changing its snapshot.withAliasResolutions(Map<String, String> aliases) Retains the lookup names that resolved injected read-only targets, including unresolved aliases.Retains identity-only proof used to resolve indirect injected Models at this context's pinned boundary.
-
Method Details
-
currentReadContext
Returns this repository's active mutation read context, never an event-replay or escaped async context. -
trackGraph
Attaches the same attempt provenance to a repository-created Graph without changing its snapshot. -
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. -
withAliasResolutions
Retains the lookup names that resolved injected read-only targets, including unresolved aliases. -
aliasResolutions
-
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. -
readAliasIds
-
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
-
graphEntities
-
attachTo
-
readModelIds
-
readModelIds
-
steps
-
transitions
-
cascadeRootIds
-