Record Class MutationPlan.AncestorDependency
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.MutationPlan.AncestorDependency
- Enclosing class:
MutationPlan
public static record MutationPlan.AncestorDependency(Class<?> modelType, String association, String handler, boolean required, MutationPlan.Access access)
extends Record
Dependency and its planned access, resolved through temporal parent relations.
-
Constructor Summary
ConstructorsConstructorDescriptionAncestorDependency(Class<?> modelType, String association, String handler) Creates a required read-only ancestor dependency for navigation or handler injection.AncestorDependency(Class<?> modelType, String association, String handler, boolean required, MutationPlan.Access access) Creates an instance of aAncestorDependencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccess()Returns the value of theaccessrecord component.Returns the value of theassociationrecord component.final booleanIndicates whether some other object is "equal to" this one.handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.Class<?> Returns the value of themodelTyperecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AncestorDependency
-
AncestorDependency
public AncestorDependency(Class<?> modelType, String association, String handler, boolean required, MutationPlan.Access access) Creates an instance of aAncestorDependencyrecord class.- Parameters:
modelType- the value for themodelTyperecord componentassociation- the value for theassociationrecord componenthandler- the value for thehandlerrecord componentrequired- the value for therequiredrecord componentaccess- the value for theaccessrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
modelType
Returns the value of themodelTyperecord component.- Returns:
- the value of the
modelTyperecord component
-
association
Returns the value of theassociationrecord component.- Returns:
- the value of the
associationrecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
access
Returns the value of theaccessrecord component.- Returns:
- the value of the
accessrecord component
-