Interface GenerationField

All Superinterfaces:
FieldSpecification, GenerationTarget
All Known Implementing Classes:
ArgumentField, GenerationSourceField, InputField, ObjectField, 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?
    • invokesSubquery

      boolean invokesSubquery()
      Note: This method does not account for implicit references, as this is not resolvable within the field object.
      Returns:
      Does this field fulfill the conditions for initiating a subquery?
    • 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?
    • getService

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

      Map<String,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.
    • hasFieldDirective

      boolean hasFieldDirective()