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's Parameter.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. null or 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 Details

    • ProcedureCall

      public ProcedureCall(T field)
    • ProcedureCall

      public ProcedureCall(String procedureName, Map<String,String> argumentMap, String targetField)
      Creates an instance of a ProcedureCall record class.
      Parameters:
      procedureName - the value for the procedureName record component
      argumentMap - the value for the argumentMap record component
      targetField - the value for the targetField record component
  • Method Details

    • hasTarget

      public boolean hasTarget()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • procedureName

      public String procedureName()
      Returns the value of the procedureName record component.
      Returns:
      the value of the procedureName record component
    • argumentMap

      public Map<String,String> argumentMap()
      Returns the value of the argumentMap record component.
      Returns:
      the value of the argumentMap record component
    • targetField

      public String targetField()
      Returns the value of the targetField record component.
      Returns:
      the value of the targetField record component