Record Class ProcedureCall
java.lang.Object
java.lang.Record
no.sikt.graphitron.definitions.helpers.ProcedureCall
- Record Components:
procedureName- The routine name as written by the user in the directive.argumentMap- Mapping of routine IN parameter names (exactly what jOOQ'sParameter.getName()returns, typically snake_case) to argument sources. The interpretation depends on the directive's mode: in inline mode every value is a column; in target mode every value is a GraphQL input argument on the directive-bearing field.targetField- In target mode, the name of a scalar field in the data-fetcher's return type whose cell the function call fills.nullor blank in inline mode.
public record ProcedureCall(String procedureName, Map<String,String> argumentMap, String targetField)
extends Record
Wrapper for handling the configuration of a single
@experimental_procedureCall directive usage on a field.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentMaprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theprocedureNamerecord component.Returns the value of thetargetFieldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcedureCall
public ProcedureCall(T field) -
ProcedureCall
Creates an instance of aProcedureCallrecord class.- Parameters:
procedureName- the value for theprocedureNamerecord componentargumentMap- the value for theargumentMaprecord componenttargetField- the value for thetargetFieldrecord component
-
-
Method Details
-
hasTarget
public boolean hasTarget() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
procedureName
Returns the value of theprocedureNamerecord component.- Returns:
- the value of the
procedureNamerecord component
-
argumentMap
Returns the value of theargumentMaprecord component.- Returns:
- the value of the
argumentMaprecord component
-
targetField
Returns the value of thetargetFieldrecord component.- Returns:
- the value of the
targetFieldrecord component
-