Class FetchSingleTableInterfaceDBMethodGenerator

All Implemented Interfaces:
MethodGenerator

public class FetchSingleTableInterfaceDBMethodGenerator extends FetchDBMethodGenerator
  • Field Details

    • DISCRIMINATOR

      public static final String DISCRIMINATOR
    • DISCRIMINATOR_VALUE

      public static final String DISCRIMINATOR_VALUE
    • TOKEN

      public static final String TOKEN
    • DATA

      public static final String DATA
    • INNER_DATA

      public static final String INNER_DATA
  • Constructor Details

    • FetchSingleTableInterfaceDBMethodGenerator

      public FetchSingleTableInterfaceDBMethodGenerator(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.
    • getHelperMethodCallForNestedField

      protected no.sikt.graphitron.javapoet.CodeBlock getHelperMethodCallForNestedField(ObjectField field, FetchContext context)
      Description copied from class: FetchDBMethodGenerator
      Generates a helper method call for nested record type fields. This base implementation generates the root-level helper method call.
      Overrides:
      getHelperMethodCallForNestedField in class FetchDBMethodGenerator
      Parameters:
      field - The field to generate the helper method call for
      context - The fetch context (unused in base implementation)
      Returns:
      CodeBlock containing the helper method call, or null to use inline generation
    • generateSelectRow

      protected no.sikt.graphitron.javapoet.CodeBlock generateSelectRow(FetchContext context, ObjectField target, List<ObjectDefinition> implementations, HashMap<String,Set<String>> overriddenFields)
    • generateAll

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