Class MutationPlan
java.lang.Object
io.fluxzero.sdk.modeling.MutationPlan
Registered and compiled knowledge for one reachable model mutation payload.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRequired state access for one resolved model.static final recordDependency and its planned access, resolved through temporal parent relations.static final classCompiles immutable definition data with application-specific parameter resolvers.static final recordRuntime-selected write target among already loaded candidates.static final recordstatic final recordResolved direct targets, deferred writes and ancestor dependencies.static final recordOne direct model load required by the selected handlers.static final classPrecompiled target-ID readers for one payload type. -
Method Summary
Modifier and TypeMethodDescriptionstatic MutationPlan.TargetPlancompile(Class<?> payloadType, Collection<EntityMetadata.HandlerMethod> handlers) Compiles one target accessor plan for a payload and its selected handlers.booleandirect()Returns whether the reducer supports its direct mutation path.booleanempty()Returns whether the reducer has no applicable mutation handlers.static voidmerge(Map<String, MutationPlan.ResolvedModel> targets, MutationPlan.ResolvedModel addition) Merges access to one identity and rejects incompatible global-ID claims.static MutationPlan.TargetPlanplan(Class<?> payloadType, Collection<EntityMetadata.HandlerMethod> handlers) Compiles and validates a target plan without an explicit target override.referencedModelTypes(Class<?> payloadType) Returns independent model types referenced by typed ID properties.booleanWhether replay can discover dependencies on concrete embedded subtypes during execution.targets()Returns the compiled target-resolution plan for this mutation.
-
Method Details
-
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
-
merge
public static void merge(Map<String, MutationPlan.ResolvedModel> targets, MutationPlan.ResolvedModel addition) Merges access to one identity and rejects incompatible global-ID claims.
-