Class GeneratorConfig

java.lang.Object
no.sikt.graphitron.configuration.GeneratorConfig

public class GeneratorConfig extends Object
Static generator configuration. Mostly dependent on the settings set through the POM XML.
  • Constructor Details

    • GeneratorConfig

      public GeneratorConfig()
  • Method Details

    • setProperties

      public static void setProperties(Set<String> files, String outputDir, String outputPkg, String jooqPkg, List<ExternalReference> references, Set<String> imports, List<GlobalTransform> globalTransforms)
      Set the generator properties from code. Intended for tests.
    • loadProperties

      public static void loadProperties(Generator mojo)
      Read all the configurations set in the XML from the provided MOJO.
    • clear

      public static void clear()
      Clear all configurations. Intended for tests.
    • generatorSchemaFiles

      public static Set<String> generatorSchemaFiles()
    • schemaFiles

      public static Set<String> schemaFiles()
    • outputDirectory

      public static String outputDirectory()
    • outputPackage

      public static String outputPackage()
    • generatedResolversPackage

      public static String generatedResolversPackage()
    • generatedModelsPackage

      public static String generatedModelsPackage()
    • getGeneratedJooqPackage

      public static String getGeneratedJooqPackage()
    • getExternalReferences

      public static ExternalReferences getExternalReferences()
    • getExternalReferenceImports

      public static Set<String> getExternalReferenceImports()
    • getGlobalTransforms

      public static List<GlobalTransform> getGlobalTransforms(TransformScope scope)
    • getRecordValidation

      public static RecordValidation getRecordValidation()
    • recordValidationEnabled

      public static boolean recordValidationEnabled()
    • shouldMakeNodeStrategy

      public static boolean shouldMakeNodeStrategy()
    • setNodeStrategy

      public static void setNodeStrategy(boolean shouldUseNodeStrategy)
    • alwaysUsePrimaryKeyInSplitQueries

      public static boolean alwaysUsePrimaryKeyInSplitQueries()
    • setAlwaysUsePrimaryKeyInSplitQueries

      public static void setAlwaysUsePrimaryKeyInSplitQueries(boolean usePrimaryKey)
    • setRecordValidation

      public static void setRecordValidation(RecordValidation recordValidation)
    • setGeneratorSchemaFiles

      public static void setGeneratorSchemaFiles(String... files)
    • setGeneratorSchemaFiles

      public static void setGeneratorSchemaFiles(Set<String> files)
    • setUserSchemaFiles

      public static void setUserSchemaFiles(Set<String> files)
    • setOutputDirectory

      public static void setOutputDirectory(String path)
    • getMaxAllowedPageSize

      public static int getMaxAllowedPageSize()
    • useOptionalSelects

      public static boolean useOptionalSelects()
    • getCodeGenerationThresholds

      public static CodeGenerationThresholds getCodeGenerationThresholds()
    • setCodeGenerationThresholds

      public static void setCodeGenerationThresholds(CodeGenerationThresholds thresholds)