Class ModelCommitAssignment
java.lang.Object
io.fluxzero.common.modeling.ModelCommitAssignment
Owns storage-neutral Model commit description, head assignment and accepted-result construction.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSignals that one alias would identify two different models.static final classFinal alias replacements and their requested owners in commit order.static interfaceBatch-loads current children for deleted parent IDs.static final classOne fully assigned commit.static final recordStorage-neutral work known before assignment.static interfaceStore head values needed to assign the next transition.static interfaceReceives assigned heads so a store can build only its own persistence representation.static interfaceConstructs a compact store-specific head from the values assigned by this owner.static final recordThe desired parent set for one child after a relationship-changing target.static final recordRelationship changes and final parent deletions applied at one state index.static final classMutable ordering state for one atomic assignment batch. -
Method Summary
Modifier and TypeMethodDescriptiondescribe(CommitModels source) Describes target scope and optional work before positions are assigned.static LongeventIndex(ModelCommitStep step) Returns the existing or newly assigned global event index carried by a commit step.static <H extends ModelCommitAssignment.Head>
ModelCommitAssignment.Session<H> session(Function<String, H> currentHeads, ModelCommitAssignment.HeadFactory<H> headFactory, long firstStateIndex) Starts an ordered assignment session in which later commits observe earlier assigned heads.static voidvalidateRelationships(List<ModelCommitAssignment.Description> commits, ModelRelationshipCycleValidator.ParentLoader parentLoader, ModelCommitAssignment.ChildLoader childLoader) Validates the ordered relationship effects described for one atomic assignment batch.
-
Method Details
-
eventIndex
Returns the existing or newly assigned global event index carried by a commit step. -
describe
Describes target scope and optional work before positions are assigned. -
validateRelationships
public static void validateRelationships(List<ModelCommitAssignment.Description> commits, ModelRelationshipCycleValidator.ParentLoader parentLoader, ModelCommitAssignment.ChildLoader childLoader) Validates the ordered relationship effects described for one atomic assignment batch. -
session
public static <H extends ModelCommitAssignment.Head> ModelCommitAssignment.Session<H> session(Function<String, H> currentHeads, ModelCommitAssignment.HeadFactory<H> headFactory, long firstStateIndex) Starts an ordered assignment session in which later commits observe earlier assigned heads.
-