Class DTOGenerator

All Implemented Interfaces:
ClassGenerator
Direct Known Subclasses:
EnumDTOGenerator, InputDTOGenerator, InterfaceDTOGenerator, TypeDTOGenerator, UnionDTOGenerator

public abstract class DTOGenerator extends AbstractClassGenerator
  • Field Details

  • Constructor Details

  • Method Details

    • getTypeSpecBuilder

      protected TypeSpec.Builder getTypeSpecBuilder(String targetName, List<? extends GenerationSourceField<?>> fields)
    • getDTOVariableNameForKey

      protected static String getDTOVariableNameForKey(org.jooq.Key<?> key)
    • getDTOVariableNameForField

      protected static String getDTOVariableNameForField(GenerationSourceField<? extends graphql.language.NamedNode<?>> field)
    • getTypeNameForField

      protected TypeName getTypeNameForField(GenerationSourceField<?> field, org.jooq.Key<?> firstStepKeyForField)
    • getDefaultSaveDirectoryName

      public String getDefaultSaveDirectoryName()
      Returns:
      The final directory path within the package where the classes are ultimately saved.
    • getFileNameSuffix

      public String getFileNameSuffix()
      Returns:
      The suffix that is to be added to the end of file names generated by this class.