Class ModelBatchScope.Snapshot

java.lang.Object
io.fluxzero.sdk.modeling.ModelBatchScope.Snapshot
Enclosing class:
ModelBatchScope

public static final class ModelBatchScope.Snapshot extends Object
Frozen batch overlay. Dependencies are acquired only when the snapshot is inspected.
  • Field Details

  • Method Details

    • withValues

      public ModelBatchScope.Snapshot withValues(Map<String, Entity<?>> overrides)
      Adds an active attempt's immutable values while preserving dependencies on earlier batch writes.
    • values

      public Map<String, Entity<?>> values()
      Returns captured exact values without registering reads.
    • readRelationships

      public void readRelationships()
      Records the pending writes inspected while composing relationship metadata.
    • overlay

      public Entity<?> overlay(String requestedId, Class<?> type, Entity<?> durable)
      Resolves one exact identity or alias against the snapshot, preserving exact-ID precedence.
    • overlayExactIdentity

      public Entity<?> overlayExactIdentity(String modelId, Class<?> type)
      Returns a pending exact identity override with its dependency, without inspecting aliases.
    • overlayIdentity

      public Entity<?> overlayIdentity(String requestedId, Class<?> type, String durableId, boolean durablePresent)
      Returns a pending identity override, or null to retain the durable identity. Presence comes from the head, not a fabricated empty value, so an existing exact ID still takes precedence over pending aliases.