Class FetchEntityImplementationDBMethodGenerator

All Implemented Interfaces:
MethodGenerator

public class FetchEntityImplementationDBMethodGenerator extends FetchDBMethodGenerator
Generator that creates the data fetching methods for entities
  • Constructor Details

    • FetchEntityImplementationDBMethodGenerator

      public FetchEntityImplementationDBMethodGenerator(ObjectDefinition localObject, ProcessedSchema processedSchema)
  • 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.
    • formatWhere

      protected no.sikt.graphitron.javapoet.CodeBlock formatWhere(FetchContext context, ObjectDefinition implementation)
      Returns:
      Formatted CodeBlock for the where-statement and surrounding code for federation queries.
    • generateAll

      public List<no.sikt.graphitron.javapoet.MethodSpec> generateAll()
      Returns:
      List of complete javapoet MethodSpec that can be generated for this object.