Class UpdateResolverMethodGenerator

All Implemented Interfaces:
MethodGenerator
Direct Known Subclasses:
MutationTypeResolverMethodGenerator, ServiceUpdateResolverMethodGenerator

public abstract class UpdateResolverMethodGenerator extends KickstartResolverMethodGenerator
This class generates the resolvers for default update queries.
  • Field Details

  • Constructor Details

  • Method Details

    • generate

      public no.sikt.graphitron.javapoet.MethodSpec generate(ObjectField target)
      Specified by:
      generate in class AbstractSchemaMethodGenerator<ObjectField,ObjectDefinition>
      Returns:
      The complete javapoet MethodSpec based on the provided target.
    • getResolverResultName

      protected static String getResolverResultName(ObjectField target, ProcessedSchema schema)
      Returns:
      This field's name formatted as a method call result.
    • generatesAll

      public boolean generatesAll()
      Specified by:
      generatesAll in class KickstartResolverMethodGenerator
      Returns:
      Does this method generator generate all possible methods? False if any are set to not generate.
    • generateSchemaOutputs

      protected abstract no.sikt.graphitron.javapoet.CodeBlock generateSchemaOutputs(ObjectField target)
      Returns:
      Code that creates the appropriate schema objects.