Interface GenerationField

All Superinterfaces:
FieldSpecification, GenerationTarget
All Known Implementing Classes:
ArgumentField, GenerationSourceField, InputField, ObjectField, VirtualInputField, VirtualSourceField

public interface GenerationField extends GenerationTarget, FieldSpecification
This interface represents the general functionality associated with GraphQLs fields that can initialise code generation.
  • Method Details

    • hasFieldReferences

      boolean hasFieldReferences()
    • isExternalField

      boolean isExternalField()
    • isInput

      boolean isInput()
    • isResolver

      boolean isResolver()
      Returns:
      Does this field point to a resolver method?
    • hasCondition

      boolean hasCondition()
    • hasOverridingCondition

      boolean hasOverridingCondition()
    • getFieldReferences

      List<FieldReference> getFieldReferences()
    • getCondition

      SQLCondition getCondition()
    • hasServiceReference

      boolean hasServiceReference()
      Returns:
      Does this field have a service reference defined?
    • getExternalMethod

      ServiceWrapper getExternalMethod()
      Returns:
      The wrapper object for a service reference, if the field has a service set. Otherwise, null.
    • getContextFields

      Map<String,no.sikt.graphitron.javapoet.TypeName> getContextFields()
      Returns:
      Get any context fields related to this field. This may be either service or condition context fields (without duplicates).
    • hasMutationType

      boolean hasMutationType()
      Returns:
      Does this field have a mutation operation defined?
    • getMutationType

      MutationType getMutationType()
      Returns:
      The type of mutation that should be applied in this operation.
    • getFieldRecordMappingName

      String getFieldRecordMappingName()
      Returns:
      Record-side name mapping based on the name of the field or the GenerationDirective.FIELD directive set on this type.
    • getMappingForRecordFieldOverride

      MethodMapping getMappingForRecordFieldOverride()
      Returns:
      Record-side method mapping based on the name of the field or the directive GenerationDirective.FIELD set on this type.
    • getJavaRecordMethodMapping

      MethodMapping getJavaRecordMethodMapping(boolean mapsJavaRecord)
    • hasFieldDirective

      boolean hasFieldDirective()
    • hasTableMethodDirective

      boolean hasTableMethodDirective()
    • formatPath

      String formatPath()