Class MutationPlan

java.lang.Object
io.fluxzero.sdk.modeling.MutationPlan

public final class MutationPlan extends Object
Registered and compiled knowledge for one reachable model mutation payload.
  • Method Details

    • targets

      public MutationPlan.TargetPlan targets()
      Returns the compiled target-resolution plan for this mutation.
    • empty

      public boolean empty()
      Returns whether the reducer has no applicable mutation handlers.
    • direct

      public boolean direct()
      Returns whether the reducer supports its direct mutation path.
    • requiresReplayDependencies

      public boolean requiresReplayDependencies()
      Whether replay can discover dependencies on concrete embedded subtypes during execution.
    • plan

      public static MutationPlan.TargetPlan plan(Class<?> payloadType, Collection<EntityMetadata.HandlerMethod> handlers)
      Compiles and validates a target plan without an explicit target override.
    • compile

      public static MutationPlan.TargetPlan compile(Class<?> payloadType, Collection<EntityMetadata.HandlerMethod> handlers)
      Compiles one target accessor plan for a payload and its selected handlers.
    • referencedModelTypes

      public static List<Class<?>> referencedModelTypes(Class<?> payloadType)
      Returns independent model types referenced by typed ID properties.
    • merge

      public static void merge(Map<String, MutationPlan.ResolvedModel> targets, MutationPlan.ResolvedModel addition)
      Merges access to one identity and rejects incompatible global-ID claims.