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

    • 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.
    • 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.