Class ModelRelationshipQueries.OwnedRelationshipGraph
java.lang.Object
io.fluxzero.common.modeling.ModelRelationshipQueries.OwnedRelationshipGraph
- Enclosing class:
ModelRelationshipQueries
Mutable commit-scoped view of relationships that own the child lifecycle.
Deleted children deliberately remain until the caller has verified that every current descendant is a delete
target;
removeModel(String) advances the view after an accepted plan in a commit batch.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ModelRelationshipQueries.Relationship relationship) Adds a relationship only when deletion of its parent owns the child lifecycle.voidAdds one current owned child edge.descendants(Collection<String> roots) Returns all transitive owned descendants in deterministic traversal order.voidApplies the final non-deletion relationship values from ordered commit steps.voidremoveModel(String modelId) Removes every incoming and outgoing owned edge for an accepted deleted Model.
-
Constructor Details
-
OwnedRelationshipGraph
public OwnedRelationshipGraph()
-
-
Method Details
-
add
-
add
Adds a relationship only when deletion of its parent owns the child lifecycle. -
overlayChanges
Applies the final non-deletion relationship values from ordered commit steps. -
removeModel
Removes every incoming and outgoing owned edge for an accepted deleted Model. -
descendants
Returns all transitive owned descendants in deterministic traversal order.
-