- All Implemented Interfaces:
Generator
This generator maintains its name for backwards compatibility. It may be removed in the future.
- Author:
- Lukas Eder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jooq.codegen.GeneratorStrategyWrapper
protected boolean
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
If file is a directory, recursively empty its children.protected void
If file is a directory, recursively empty its children.boolean
Deprecated.Deprecated.void
Do the code generationboolean
Whether any SQL comments should be generated as Javadoc.boolean
Whether SQL comments on attributes should be generated as Javadoc.boolean
Whether SQL comments on catalogs should be generated as Javadoc.boolean
Whether SQL comments on columns should be generated as Javadoc.boolean
Whether SQL comments on embeddables should be generated as Javadoc.boolean
Whether SQL comments on keys should be generated as Javadoc.boolean
Whether SQL comments on links should be generated as Javadoc.boolean
Whether SQL comments on packages should be generated as Javadoc.boolean
Whether SQL comments on parameters should be generated as Javadoc.boolean
Whether SQL comments on queues should be generated as Javadoc.boolean
Whether SQL comments on routines should be generated as Javadoc.boolean
Whether SQL comments on schemas should be generated as Javadoc.boolean
Whether SQL comments on sequences should be generated as Javadoc.boolean
Whether SQL comments on tables should be generated as Javadoc.boolean
Whether SQL comments on UDTs should be generated as Javadoc.boolean
Whether theConstructorProperties
annotation should be generated.boolean
Whether theConstructorProperties
annotation should be generated on POJOs.boolean
Whether theConstructorProperties
annotation should be generated on records.boolean
Whether DAO's should be generated in addition to pojosboolean
Whether deprecated code should be generatedboolean
Whether deprecation should be generated on unknown types.Which type of Nonnull annotation should be generated.Which type of Nullable annotation should be generated.The type ofserialVersionUID
that should be generated.boolean
Whether embeddable types should be generatedboolean
Whether empty catalogs should still be generated.boolean
Whether empty schemas should still be generated.boolean
Whether enums generated as Scala sealed traits by theScalaGenerator
.boolean
Whether fluent setters should be generatedA regular expression matching all the types in generated code that should be fully qualified.boolean
Whether theGenerated
annotation should be generated.boolean
Whether theGenerated
annotation should include thedate
attribute.Whether theGenerated
annotation should be generated.boolean
Whether global catalog references should be generatedboolean
Whether global domain references should be generatedboolean
Whether global index references should be generatedboolean
Whether global key references should be generatedboolean
Whether global link references should be generatedboolean
Whether global object references should be generatedboolean
Whether global queue references should be generatedboolean
Whether global routine references should be generatedboolean
Whether global schema references should be generatedboolean
Whether global sequence references should be generatedboolean
Whether global table references should be generatedboolean
Whether global UDT references should be generatedboolean
Whether immutable interfaces should be generated in addition to recordsboolean
Whether immutable POJO's should be generated in addition to recordsboolean
Whether implicit join path constructors should be offered as properties in Kotlin.boolean
Whether implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) should be generated.The indentation character(s) to be used in generated code.boolean
Whether indexes should be generated.boolean
Whether instance fields should be generated (as opposed to static fields).boolean
Whether interfaces should be generated to be implemented by records and POJO'sboolean
A flag indicating whether theInterval
type support should be enabled.boolean
Whether getters and setters should be generated JavaBeans style (or jOOQ style).boolean
Whether any Javadoc should be generated.boolean
A flag indicating whether Java 8's java.time types should be used by the source code generator, rather than JDBC's java.sql types.boolean
Whether generated objects should reference the runtime jOOQ version inConstants
, to help debug code generator / runtime version mismatches.boolean
Whether POJO's and records should be annotated with JPA annotationsThe minimum JPA version that is supported by generated code (latest version if empty).boolean
boolean
Whether key related code should be generatedboolean
Whether kotlin mutable properties should be annotated withset:JvmName
as a workaround for problems occurring when kotlin producessetX()
instead ofsetIsX()
setters for anisX
property.boolean
Whether link related code should be generatedThe newline character(s) to be used in generated code.boolean
Whether Nonnull annotations should be generated.boolean
Whether Nullable annotations should be generated.boolean
Whether POJO's should be generated in addition to recordsboolean
Whether POJOs should be generated as Java records by theJavaGenerator
.boolean
Whether POJOs should be generated as Kotlin data classes by theKotlinGenerator
.boolean
Whether POJOs should be generated as Scala case classes by theScalaGenerator
.boolean
Whetherequals()
andhashCode()
methods should be generated on POJOsboolean
Whether atoString()
method should be generated on POJOsint
The print margin for Javadoc and other block comments to be used in generated code.boolean
Whether queue related code should be generatedboolean
Whether TableRecords should be generated in addition to tablesboolean
Whether TableRecords should be generated in addition to tables, which implement Record[N] typesboolean
Whether foreign key relations should be resolvedboolean
Whether Routines should be generated.boolean
Whether sequence flags should be generated.boolean
Whether Sequences should be generated.boolean
Whether generated interfaces should extendSerializable
.boolean
Whether generated POJO's should beSerializable
.boolean
Whether source code should be generated on any object type.boolean
Whether source code should be generated on views.boolean
A flag indicating whether theSpatial
type support should be enabled.boolean
Whether DAOs should be annotated with useful spring annotations such as@Repository
or@Autowired
boolean
Whether a Spring specificDAOImpl
subclass should be generated, which may contain Spring specific stuff, such as the@Transactional
annotation (ifGenerator.generateSpringAnnotations()
is set).boolean
Whether Tables should be generatedboolean
Whether table-valued functions should be generated as tables.Whether to generate String in text block format.boolean
Whether UDTs should be generated.boolean
Whether names of unambiguousForeignKeyDefinition
should be based on the referencedTableDefinition
.boolean
Whether POJO's and records should be annotated with JSR-303 validation annotationsboolean
Whether varargs setters should be generated for array types.TheVisibilityModifier
that should be used in generated code.boolean
A flag indicating whether theXML
type support should be enabled.Get this generator's underlying naming strategyboolean
Whether the target package should be cleaned to contain only generated code after a generation run.The target directoryThe target encodingThe target locale.int
The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.void
setFluentSetters
(boolean fluentSetters) Deprecated.void
setFullyQualifiedTypes
(String fullyQualifiedTypes) Deprecated.void
setGenerateComments
(boolean comments) Whether any SQL comments should be generated as Javadoc.void
setGenerateCommentsOnAttributes
(boolean commentsOnAttributes) Whether SQL comments on attributes should be generated as Javadoc.void
setGenerateCommentsOnCatalogs
(boolean commentsOnCatalogs) Whether SQL comments on catalogs should be generated as Javadoc.void
setGenerateCommentsOnColumns
(boolean commentsOnColumns) Whether SQL comments on columns should be generated as Javadoc.void
setGenerateCommentsOnEmbeddables
(boolean generateCommentsOnEmbeddables) Whether SQL comments on embeddables should be generated as Javadoc.void
setGenerateCommentsOnKeys
(boolean commentsOnKeys) Whether SQL comments on keys should be generated as Javadoc.void
setGenerateCommentsOnLinks
(boolean commentsOnLinks) Whether SQL comments on links should be generated as Javadoc.void
setGenerateCommentsOnPackages
(boolean commentsOnPackages) Whether SQL comments on packages should be generated as Javadoc.void
setGenerateCommentsOnParameters
(boolean commentsOnParameters) Whether SQL comments on parameters should be generated as Javadoc.void
setGenerateCommentsOnQueues
(boolean commentsOnQueues) Whether SQL comments on queues should be generated as Javadoc.void
setGenerateCommentsOnRoutines
(boolean commentsOnRoutines) Whether SQL comments on routines should be generated as Javadoc.void
setGenerateCommentsOnSchemas
(boolean commentsOnSchemas) Whether SQL comments on schemas should be generated as Javadoc.void
setGenerateCommentsOnSequences
(boolean commentsOnSequences) Whether SQL comments on sequences should be generated as Javadoc.void
setGenerateCommentsOnTables
(boolean commentsOnTables) Whether SQL comments on tables should be generated as Javadoc.void
setGenerateCommentsOnUDTs
(boolean commentsOnUDTs) Whether SQL comments on UDTs should be generated as Javadoc.void
setGenerateConstructorPropertiesAnnotation
(boolean generateConstructorPropertiesAnnotation) Whether theConstructorProperties
annotation should be generated.void
setGenerateConstructorPropertiesAnnotationOnPojos
(boolean generateConstructorPropertiesAnnotationOnPojos) Whether theConstructorProperties
annotation should be generated on POJOs.void
setGenerateConstructorPropertiesAnnotationOnRecords
(boolean generateConstructorPropertiesAnnotationOnRecords) Whether theConstructorProperties
annotation should be generated on records.void
setGenerateDaos
(boolean generateDaos) Whether DAO's should be generated in addition to pojosvoid
setGenerateDeprecated
(boolean generateDeprecated) Whether deprecated code should be generatedvoid
setGenerateDeprecationOnUnknownTypes
(boolean generateDeprecationOnUnknownTypes) Whether deprecation should be generated on unknown types.void
setGeneratedNonnullAnnotationType
(String generatedNonnullAnnotationType) Which type of Nonnull annotation should be generated.void
setGeneratedNullableAnnotationType
(String generatedNullableAnnotationType) Which type of Nullable annotation should be generated.void
setGenerateEmbeddables
(boolean generateEmbeddables) Whether embeddable types should be generatedvoid
setGenerateEmptyCatalogs
(boolean generateEmptyCatalogs) Whether empty catalogs should still be generated.void
setGenerateEmptySchemas
(boolean generateEmptySchemas) Whether empty schemas should still be generated.void
setGenerateEnumsAsScalaSealedTraits
(boolean generateEnumsAsScalaSealedTraits) Whether enums generated as Scala sealed traits by theScalaGenerator
.void
setGenerateFluentSetters
(boolean fluentSetters) Whether fluent setters should be generatedvoid
setGenerateFullyQualifiedTypes
(String generateFullyQualifiedTypes) A regular expression matching all the types in generated code that should be fully qualified.void
setGenerateGeneratedAnnotation
(boolean generateGeneratedAnnotation) Whether theGenerated
annotation should be generated.void
setGenerateGeneratedAnnotationDate
(boolean generateGeneratedAnnotationDate) Whether theGenerated
annotation should include thedate
attribute.void
setGenerateGeneratedAnnotationType
(GeneratedAnnotationType generateGeneratedAnnotationType) Whether theGenerated
annotation should be generated.void
setGenerateGeneratedSerialVersionUID
(GeneratedSerialVersionUID generatedSerialVersionUID) The type ofserialVersionUID
that should be generated.void
setGenerateGlobalCatalogReferences
(boolean globalCatalogReferences) Whether global catalog references should be generatedvoid
setGenerateGlobalDomainReferences
(boolean globalDomainReferences) Whether global domain references should be generatedvoid
setGenerateGlobalIndexReferences
(boolean globalIndexReferences) Whether global index references should be generatedvoid
setGenerateGlobalKeyReferences
(boolean globalKeyReferences) Whether global key references should be generatedvoid
setGenerateGlobalLinkReferences
(boolean globalLinkReferences) Whether global link references should be generatedvoid
setGenerateGlobalObjectReferences
(boolean generateGlobalObjectReferences) Whether global object references should be generatedvoid
setGenerateGlobalQueueReferences
(boolean globalQueueReferences) Whether global queue references should be generatedvoid
setGenerateGlobalRoutineReferences
(boolean generateGlobalRoutineReferences) Whether global routine references should be generatedvoid
setGenerateGlobalSchemaReferences
(boolean globalSchemaReferences) Whether global schema references should be generatedvoid
setGenerateGlobalSequenceReferences
(boolean generateGlobalSequenceReferences) Whether global sequence references should be generatedvoid
setGenerateGlobalTableReferences
(boolean generateGlobalTableReferences) Whether global table references should be generatedvoid
setGenerateGlobalUDTReferences
(boolean generateGlobalUDTReferences) Whether global UDT references should be generatedvoid
setGenerateImmutableInterfaces
(boolean generateImmutableInterfaces) Whether immutable interfaces should be generated in addition to recordsvoid
setGenerateImmutablePojos
(boolean generateImmutablePojos) Whether immutable POJO's should be generated in addition to recordsvoid
setGenerateImplicitJoinPathsAsKotlinProperties
(boolean generateImplicitJoinPathsAsKotlinProperties) Whether implicit join path constructors should be offered as properties in Kotlin.void
setGenerateImplicitJoinPathsToOne
(boolean generateImplicitJoinPathsToOne) Whether implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) should be generated.void
setGenerateIndentation
(String indentation) The indentation character(s) to be used in generated code.void
setGenerateIndexes
(boolean generateIndexes) Whether indexes should be generated.void
setGenerateInstanceFields
(boolean generateInstanceFields) Whether instance fields should be generated (as opposed to static fields).void
setGenerateInterfaces
(boolean generateInterfaces) Whether interfaces should be generated to be implemented by records and POJO'svoid
setGenerateIntervalTypes
(boolean generateIntervalTypes) A flag indicating whether theInterval
type support should be enabled.void
setGenerateJavaBeansGettersAndSetters
(boolean javaBeansGettersAndSetters) Whether getters and setters should be generated JavaBeans style (or jOOQ style).void
setGenerateJavadoc
(boolean javadoc) Whether any Javadoc should be generated.void
setGenerateJavaTimeTypes
(boolean generateJavaTimeTypes) A flag indicating whether Java 8's java.time types should be used by the source code generator, rather than JDBC's java.sql types.void
setGenerateJooqVersionReference
(boolean generateJooqVersionReference) Whether generated objects should reference the runtime jOOQ version inConstants
, to help debug code generator / runtime version mismatches.void
setGenerateJPAAnnotations
(boolean generateJPAAnnotations) Whether POJO's and records should be annotated with JPA annotationsvoid
setGenerateJPAVersion
(String generateJPAVersion) The minimum JPA version that is supported by generated code (latest version if empty).void
setGenerateJsonTypes
(boolean generateJsonTypes) void
setGenerateKeys
(boolean keys) Whether key related code should be generatedvoid
setGenerateKotlinSetterJvmNameAnnotationsOnIsPrefix
(boolean generateKotlinSetterJvmNameAnnotationsOnIsPrefix) Whether kotlin mutable properties should be annotated withset:JvmName
as a workaround for problems occurring when kotlin producessetX()
instead ofsetIsX()
setters for anisX
property.void
setGenerateLinks
(boolean links) Whether link related code should be generatedvoid
setGenerateNewline
(String newline) The newline character(s) to be used in generated code.void
setGenerateNonnullAnnotation
(boolean generateNonnullAnnotation) Whether Nonnull annotations should be generated.void
setGenerateNullableAnnotation
(boolean generateNullableAnnotation) Whether Nullable annotations should be generated.void
setGeneratePojos
(boolean generatePojos) Whether POJO's should be generated in addition to recordsvoid
setGeneratePojosAsJavaRecordClasses
(boolean pojosAsJavaRecordClasses) Whether POJOs should be generated as Java records by theJavaGenerator
.void
setGeneratePojosAsKotlinDataClasses
(boolean pojosAsKotlinDataClasses) Whether POJOs should be generated as Kotlin data classes by theKotlinGenerator
.void
setGeneratePojosAsScalaCaseClasses
(boolean pojosAsScalaCaseClasses) Whether POJOs should be generated as Scala case classes by theScalaGenerator
.void
setGeneratePojosEqualsAndHashCode
(boolean generatePojosEqualsAndHashCode) Whetherequals()
andhashCode()
methods should be generated on POJOsvoid
setGeneratePojosToString
(boolean generatePojosToString) Whether atoString()
method should be generated on POJOsvoid
setGeneratePrintMarginForBlockComment
(int printMarginForBlockComment) The print margin for Javadoc and other block comments to be used in generated code.void
setGenerateQueues
(boolean queues) Whether queue related code should be generatedvoid
setGenerateRecords
(boolean generateRecords) Whether TableRecords should be generated in addition to tablesvoid
setGenerateRecordsImplementingRecordN
(boolean generateRecordsImplementingRecordN) Whether TableRecords should be generated in addition to tables, which implement Record[N] typesvoid
setGenerateRelations
(boolean generateRelations) Whether foreign key relations should be resolvedvoid
setGenerateRoutines
(boolean generateRoutines) Whether Routines should be generated.void
setGenerateSequenceFlags
(boolean generateSequenceFlags) Whether sequence flags should be generated.void
setGenerateSequences
(boolean generateSequences) Whether Sequences should be generated.void
setGenerateSerializableInterfaces
(boolean generateSerializableInterfaces) Whether generated interfaces should extendSerializable
.void
setGenerateSerializablePojos
(boolean generateSerializablePojos) Whether generated POJO's should beSerializable
.void
setGenerateSources
(boolean sources) Whether source code should be generated on any object type.void
setGenerateSourcesOnViews
(boolean sourcesOnViews) Whether source code should be generated on views.void
setGenerateSpatialTypes
(boolean generateSpatialTypes) A flag indicating whether theSpatial
type support should be enabled.void
setGenerateSpringAnnotations
(boolean generateSpringAnnotations) Whether DAOs should be annotated with useful spring annotations such as@Repository
or@Autowired
void
setGenerateSpringDao
(boolean generateSpringDao) Whether a Spring specificDAOImpl
subclass should be generated, which may contain Spring specific stuff, such as the@Transactional
annotation (ifGenerator.generateSpringAnnotations()
is set).void
setGenerateTables
(boolean generateTables) Whether Tables should be generatedvoid
setGenerateTableValuedFunctions
(boolean generateTableValuedFunctions) Whether table-valued functions should be generated as tables.void
setGenerateTextBlocks
(GeneratedTextBlocks textBlocks) Whether to generate String in text block format.void
setGenerateUDTs
(boolean generateUDTs) Whether UDTs should be generated.void
setGenerateUseTableNameForUnambiguousFKs
(boolean useTableNameForUnambiguousFKs) Whether names of unambiguousForeignKeyDefinition
should be based on the referencedTableDefinition
.void
setGenerateValidationAnnotations
(boolean generateValidationAnnotations) Whether POJO's and records should be annotated with JSR-303 validation annotationsvoid
setGenerateVarargsSetters
(boolean varargsSetters) Whether varargs setters should be generated for array types.void
setGenerateVisibilityModifier
(VisibilityModifier generateVisibilityModifier) TheVisibilityModifier
that should be used in generated code.void
setGenerateXmlTypes
(boolean generateXmlTypes) A flag indicating whether theXML
type support should be enabled.void
setMaxMembersPerInitialiser
(int maxMembersPerInitialiser) The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.void
setStrategy
(GeneratorStrategy strategy) Set a naming strategy to this generatorvoid
setTargetClean
(boolean clean) Whether the target package should be cleaned to contain only generated code after a generation run.void
setTargetDirectory
(String directory) Initialise the target directoryvoid
setTargetEncoding
(String encoding) Initialise the target encodingvoid
setTargetLocale
(Locale targetLocale) The target locale.void
setTargetPackage
(String packageName) Initialise the target package namevoid
setUseCatalogVersionProvider
(boolean useCatalogVersionProvider) void
setUseSchemaVersionProvider
(boolean useSchemaVersionProvider) boolean
boolean
Methods inherited from class org.jooq.codegen.JavaGenerator
closeJavaWriter, escapeEntities, generate0, generateArray, generateArray, generateArrayClassFooter, generateArrayClassJavadoc, generateArrays, generateCatalog, generateCatalog, generateCatalogClassFooter, generateCatalogClassJavadoc, generateDao, generateDao, generateDaoClassFooter, generateDaoClassJavadoc, generateDaos, generateDomain, generateDomain, generateDomainClassFooter, generateDomainClassJavadoc, generateDomainReferences, generateDomainReferencesClassFooter, generateDomains, generateEmbeddable, generateEmbeddableClassFooter, generateEmbeddableClassJavadoc, generateEmbeddableGetter, generateEmbeddableInterface, generateEmbeddableInterfaceClassFooter, generateEmbeddableInterfaceClassJavadoc, generateEmbeddableInterfaceGetter, generateEmbeddableInterfaces, generateEmbeddableInterfaceSetter, generateEmbeddablePojo, generateEmbeddablePojoClassFooter, generateEmbeddablePojoClassJavadoc, generateEmbeddablePojoGetter, generateEmbeddablePojos, generateEmbeddablePojoSetter, generateEmbeddableRecordGetter, generateEmbeddableRecordSetter, generateEmbeddables, generateEmbeddableSetter, generateEnum, generateEnum, generateEnumClassFooter, generateEnumClassJavadoc, generateEnums, generateIndexes, generateIndexesClassFooter, generateInterface, generateInterface, generateInterfaceClassFooter, generateInterfaceClassJavadoc, generateInterfaceGetter, generateInterfaces, generateInterfaceSetter, generatePackage, generatePackage, generatePackageClassFooter, generatePackageClassJavadoc, generatePackages, generatePojo, generatePojo, generatePojoClassFooter, generatePojoClassJavadoc, generatePojoCopyConstructor, generatePojoDefaultConstructor, generatePojoEqualsAndHashCode, generatePojoGetter, generatePojoMultiConstructor, generatePojos, generatePojoSetter, generatePojoToString, generateRecord, generateRecord, generateRecordClassFooter, generateRecordClassJavadoc, generateRecordGetter, generateRecords, generateRecordSetter, generateRelations, generateRelationsClassFooter, generateRoutine, generateRoutine, generateRoutineClassFooter, generateRoutineClassJavadoc, generateRoutines, generateRoutinesClassFooter, generateSchema, generateSchema, generateSchemaClassFooter, generateSchemaClassJavadoc, generateSequences, generateSequencesClassFooter, generateSpringDao, generateSpringDao, generateSpringDaoClassFooter, generateSyntheticDao, generateSyntheticDao, generateSyntheticDaoClassFooter, generateSyntheticDaoClassJavadoc, generateSyntheticDaos, generateTable, generateTable, generateTableClassFooter, generateTableClassJavadoc, generateTableReferences, generateTableReferencesClassFooter, generateTables, generateUDT, generateUDT, generateUDTClassFooter, generateUDTClassJavadoc, generateUDTInterface, generateUDTInterface, generateUDTInterfaceClassFooter, generateUDTInterfaceClassJavadoc, generateUDTInterfaceGetter, generateUDTInterfaces, generateUDTInterfaceSetter, generateUDTPojo, generateUDTPojo, generateUDTPojoClassFooter, generateUDTPojoClassJavadoc, generateUDTPojoGetter, generateUDTPojos, generateUDTPojoSetter, generateUDTRecord, generateUDTRecord, generateUDTRecordClassFooter, generateUDTRecordClassJavadoc, generateUDTRecordGetter, generateUDTRecords, generateUDTRecordSetter, generateUDTReferences, generateUDTReferencesClassFooter, generateUDTReferencesClassFooter, generateUDTRoutines, generateUDTs, getArrayBaseType, getFile, getFile, getJavaType, getJavaType, getJavaTypeReference, getType, getType, getType, getType, getType, getTypeReference, isArrayType, newJavaWriter, printClassAnnotations, printClassAnnotations, printClassAnnotations, printClassJavadoc, printClassJavadoc, printColumnJPAAnnotation, printColumnValidationAnnotation, printConstant, printConvenienceMethodFunction, printConvenienceMethodFunctionAsField, printConvenienceMethodProcedure, printConvenienceMethodTableValuedFunction, printConvenienceMethodTableValuedFunctionAsField, printDaoConstructorAnnotations, printDaoConstructorAnnotations, printForeignKey, printFromAndInto, printGlobalReferencesPackage, printGlobalReferencesPackageComment, printIndex, printKotlinSetterAnnotation, printNonnullAnnotation, printNullableAnnotation, printPackage, printPackage, printPackageComment, printRecordTypeMethod, printReferences, printRoutine, printSingletonInstance, printTableJPAAnnotation, printTableValuedFunction, printUniqueKey, refExtendsNumberType, refNumberType, resolver, resolver
-
Field Details
-
strategy
protected org.jooq.codegen.GeneratorStrategyWrapper strategy -
targetEncoding
-
targetClean
protected boolean targetClean
-
-
Constructor Details
-
DefaultGenerator
public DefaultGenerator()Deprecated.
-
-
Method Details
-
generate
Description copied from interface:Generator
Do the code generation -
setStrategy
Description copied from interface:Generator
Set a naming strategy to this generator- Specified by:
setStrategy
in interfaceGenerator
-
getStrategy
Description copied from interface:Generator
Get this generator's underlying naming strategy- Specified by:
getStrategy
in interfaceGenerator
-
generateDeprecated
public boolean generateDeprecated()Description copied from interface:Generator
Whether deprecated code should be generated- Specified by:
generateDeprecated
in interfaceGenerator
-
setGenerateDeprecated
public void setGenerateDeprecated(boolean generateDeprecated) Description copied from interface:Generator
Whether deprecated code should be generated- Specified by:
setGenerateDeprecated
in interfaceGenerator
-
generateDeprecationOnUnknownTypes
public boolean generateDeprecationOnUnknownTypes()Description copied from interface:Generator
Whether deprecation should be generated on unknown types.- Specified by:
generateDeprecationOnUnknownTypes
in interfaceGenerator
-
setGenerateDeprecationOnUnknownTypes
public void setGenerateDeprecationOnUnknownTypes(boolean generateDeprecationOnUnknownTypes) Description copied from interface:Generator
Whether deprecation should be generated on unknown types.- Specified by:
setGenerateDeprecationOnUnknownTypes
in interfaceGenerator
-
generateIndexes
public boolean generateIndexes()Description copied from interface:Generator
Whether indexes should be generated.- Specified by:
generateIndexes
in interfaceGenerator
-
setGenerateIndexes
public void setGenerateIndexes(boolean generateIndexes) Description copied from interface:Generator
Whether indexes should be generated.- Specified by:
setGenerateIndexes
in interfaceGenerator
-
generateRelations
public boolean generateRelations()Description copied from interface:Generator
Whether foreign key relations should be resolved- Specified by:
generateRelations
in interfaceGenerator
-
setGenerateRelations
public void setGenerateRelations(boolean generateRelations) Description copied from interface:Generator
Whether foreign key relations should be resolved- Specified by:
setGenerateRelations
in interfaceGenerator
-
generateImplicitJoinPathsToOne
public boolean generateImplicitJoinPathsToOne()Description copied from interface:Generator
Whether implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) should be generated.- Specified by:
generateImplicitJoinPathsToOne
in interfaceGenerator
-
setGenerateImplicitJoinPathsToOne
public void setGenerateImplicitJoinPathsToOne(boolean generateImplicitJoinPathsToOne) Description copied from interface:Generator
Whether implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) should be generated.- Specified by:
setGenerateImplicitJoinPathsToOne
in interfaceGenerator
-
generateImplicitJoinPathsAsKotlinProperties
public boolean generateImplicitJoinPathsAsKotlinProperties()Description copied from interface:Generator
Whether implicit join path constructors should be offered as properties in Kotlin.- Specified by:
generateImplicitJoinPathsAsKotlinProperties
in interfaceGenerator
-
setGenerateImplicitJoinPathsAsKotlinProperties
public void setGenerateImplicitJoinPathsAsKotlinProperties(boolean generateImplicitJoinPathsAsKotlinProperties) Description copied from interface:Generator
Whether implicit join path constructors should be offered as properties in Kotlin.- Specified by:
setGenerateImplicitJoinPathsAsKotlinProperties
in interfaceGenerator
-
generateTableValuedFunctions
public boolean generateTableValuedFunctions()Description copied from interface:Generator
Whether table-valued functions should be generated as tables.- Specified by:
generateTableValuedFunctions
in interfaceGenerator
-
setGenerateTableValuedFunctions
public void setGenerateTableValuedFunctions(boolean generateTableValuedFunctions) Description copied from interface:Generator
Whether table-valued functions should be generated as tables.- Specified by:
setGenerateTableValuedFunctions
in interfaceGenerator
-
generateInstanceFields
public boolean generateInstanceFields()Description copied from interface:Generator
Whether instance fields should be generated (as opposed to static fields).- Specified by:
generateInstanceFields
in interfaceGenerator
-
setGenerateInstanceFields
public void setGenerateInstanceFields(boolean generateInstanceFields) Description copied from interface:Generator
Whether instance fields should be generated (as opposed to static fields).- Specified by:
setGenerateInstanceFields
in interfaceGenerator
-
setGenerateVisibilityModifier
Description copied from interface:Generator
TheVisibilityModifier
that should be used in generated code.- Specified by:
setGenerateVisibilityModifier
in interfaceGenerator
-
generateVisibilityModifier
Description copied from interface:Generator
TheVisibilityModifier
that should be used in generated code.- Specified by:
generateVisibilityModifier
in interfaceGenerator
-
generateGeneratedAnnotation
public boolean generateGeneratedAnnotation()Description copied from interface:Generator
Whether theGenerated
annotation should be generated.- Specified by:
generateGeneratedAnnotation
in interfaceGenerator
-
setGenerateGeneratedAnnotation
public void setGenerateGeneratedAnnotation(boolean generateGeneratedAnnotation) Description copied from interface:Generator
Whether theGenerated
annotation should be generated.- Specified by:
setGenerateGeneratedAnnotation
in interfaceGenerator
-
generateGeneratedAnnotationType
Description copied from interface:Generator
Whether theGenerated
annotation should be generated.- Specified by:
generateGeneratedAnnotationType
in interfaceGenerator
-
setGenerateGeneratedAnnotationType
public void setGenerateGeneratedAnnotationType(GeneratedAnnotationType generateGeneratedAnnotationType) Description copied from interface:Generator
Whether theGenerated
annotation should be generated.- Specified by:
setGenerateGeneratedAnnotationType
in interfaceGenerator
-
generateGeneratedAnnotationDate
public boolean generateGeneratedAnnotationDate()Description copied from interface:Generator
Whether theGenerated
annotation should include thedate
attribute.- Specified by:
generateGeneratedAnnotationDate
in interfaceGenerator
-
setGenerateGeneratedAnnotationDate
public void setGenerateGeneratedAnnotationDate(boolean generateGeneratedAnnotationDate) Description copied from interface:Generator
Whether theGenerated
annotation should include thedate
attribute.- Specified by:
setGenerateGeneratedAnnotationDate
in interfaceGenerator
-
generateNonnullAnnotation
public boolean generateNonnullAnnotation()Description copied from interface:Generator
Whether Nonnull annotations should be generated.In SQL and by consequence in jOOQ, non-nullability cannot be guaranteed statically. There may still be some cases (e.g. after unions, outer joins, etc.) where a normally non-null value turns out to be null!
- Specified by:
generateNonnullAnnotation
in interfaceGenerator
-
setGenerateNonnullAnnotation
public void setGenerateNonnullAnnotation(boolean generateNonnullAnnotation) Description copied from interface:Generator
Whether Nonnull annotations should be generated.In SQL and by consequence in jOOQ, non-nullability cannot be guaranteed statically. There may still be some cases (e.g. after unions, outer joins, etc.) where a normally non-null value turns out to be null!
- Specified by:
setGenerateNonnullAnnotation
in interfaceGenerator
-
generatedNonnullAnnotationType
Description copied from interface:Generator
Which type of Nonnull annotation should be generated.- Specified by:
generatedNonnullAnnotationType
in interfaceGenerator
-
setGeneratedNonnullAnnotationType
Description copied from interface:Generator
Which type of Nonnull annotation should be generated.- Specified by:
setGeneratedNonnullAnnotationType
in interfaceGenerator
-
generateNullableAnnotation
public boolean generateNullableAnnotation()Description copied from interface:Generator
Whether Nullable annotations should be generated.Unlike
Generator.generateNonnullAnnotation()
, nullability can be guaranteed as in SQL, and by consequence in jOOQ, every column expression can be made nullable using some SQL operation.- Specified by:
generateNullableAnnotation
in interfaceGenerator
-
setGenerateNullableAnnotation
public void setGenerateNullableAnnotation(boolean generateNullableAnnotation) Description copied from interface:Generator
Whether Nullable annotations should be generated.Unlike
Generator.generateNonnullAnnotation()
, nullability can be guaranteed as in SQL, and by consequence in jOOQ, every column expression can be made nullable using some SQL operation.- Specified by:
setGenerateNullableAnnotation
in interfaceGenerator
-
generatedNullableAnnotationType
Description copied from interface:Generator
Which type of Nullable annotation should be generated.- Specified by:
generatedNullableAnnotationType
in interfaceGenerator
-
setGeneratedNullableAnnotationType
Description copied from interface:Generator
Which type of Nullable annotation should be generated.- Specified by:
setGeneratedNullableAnnotationType
in interfaceGenerator
-
setGenerateConstructorPropertiesAnnotation
public void setGenerateConstructorPropertiesAnnotation(boolean generateConstructorPropertiesAnnotation) Description copied from interface:Generator
Whether theConstructorProperties
annotation should be generated.- Specified by:
setGenerateConstructorPropertiesAnnotation
in interfaceGenerator
-
generateConstructorPropertiesAnnotation
public boolean generateConstructorPropertiesAnnotation()Description copied from interface:Generator
Whether theConstructorProperties
annotation should be generated.- Specified by:
generateConstructorPropertiesAnnotation
in interfaceGenerator
-
setGenerateConstructorPropertiesAnnotationOnPojos
public void setGenerateConstructorPropertiesAnnotationOnPojos(boolean generateConstructorPropertiesAnnotationOnPojos) Description copied from interface:Generator
Whether theConstructorProperties
annotation should be generated on POJOs.- Specified by:
setGenerateConstructorPropertiesAnnotationOnPojos
in interfaceGenerator
-
generateConstructorPropertiesAnnotationOnPojos
public boolean generateConstructorPropertiesAnnotationOnPojos()Description copied from interface:Generator
Whether theConstructorProperties
annotation should be generated on POJOs.- Specified by:
generateConstructorPropertiesAnnotationOnPojos
in interfaceGenerator
-
setGenerateConstructorPropertiesAnnotationOnRecords
public void setGenerateConstructorPropertiesAnnotationOnRecords(boolean generateConstructorPropertiesAnnotationOnRecords) Description copied from interface:Generator
Whether theConstructorProperties
annotation should be generated on records.- Specified by:
setGenerateConstructorPropertiesAnnotationOnRecords
in interfaceGenerator
-
generateConstructorPropertiesAnnotationOnRecords
public boolean generateConstructorPropertiesAnnotationOnRecords()Description copied from interface:Generator
Whether theConstructorProperties
annotation should be generated on records.- Specified by:
generateConstructorPropertiesAnnotationOnRecords
in interfaceGenerator
-
useSchemaVersionProvider
public boolean useSchemaVersionProvider()- Specified by:
useSchemaVersionProvider
in interfaceGenerator
-
setUseSchemaVersionProvider
public void setUseSchemaVersionProvider(boolean useSchemaVersionProvider) - Specified by:
setUseSchemaVersionProvider
in interfaceGenerator
-
useCatalogVersionProvider
public boolean useCatalogVersionProvider()- Specified by:
useCatalogVersionProvider
in interfaceGenerator
-
setUseCatalogVersionProvider
public void setUseCatalogVersionProvider(boolean useCatalogVersionProvider) - Specified by:
setUseCatalogVersionProvider
in interfaceGenerator
-
generateRoutines
public boolean generateRoutines()Description copied from interface:Generator
Whether Routines should be generated.- Specified by:
generateRoutines
in interfaceGenerator
-
setGenerateRoutines
public void setGenerateRoutines(boolean generateRoutines) Description copied from interface:Generator
Whether Routines should be generated.- Specified by:
setGenerateRoutines
in interfaceGenerator
-
generateSequences
public boolean generateSequences()Description copied from interface:Generator
Whether Sequences should be generated.- Specified by:
generateSequences
in interfaceGenerator
-
setGenerateSequences
public void setGenerateSequences(boolean generateSequences) Description copied from interface:Generator
Whether Sequences should be generated.- Specified by:
setGenerateSequences
in interfaceGenerator
-
generateSequenceFlags
public boolean generateSequenceFlags()Description copied from interface:Generator
Whether sequence flags should be generated.- Specified by:
generateSequenceFlags
in interfaceGenerator
-
setGenerateSequenceFlags
public void setGenerateSequenceFlags(boolean generateSequenceFlags) Description copied from interface:Generator
Whether sequence flags should be generated.- Specified by:
setGenerateSequenceFlags
in interfaceGenerator
-
generateUDTs
public boolean generateUDTs()Description copied from interface:Generator
Whether UDTs should be generated.- Specified by:
generateUDTs
in interfaceGenerator
-
setGenerateUDTs
public void setGenerateUDTs(boolean generateUDTs) Description copied from interface:Generator
Whether UDTs should be generated.- Specified by:
setGenerateUDTs
in interfaceGenerator
-
generateTables
public boolean generateTables()Description copied from interface:Generator
Whether Tables should be generated- Specified by:
generateTables
in interfaceGenerator
-
setGenerateTables
public void setGenerateTables(boolean generateTables) Description copied from interface:Generator
Whether Tables should be generated- Specified by:
setGenerateTables
in interfaceGenerator
-
generateEmbeddables
public boolean generateEmbeddables()Description copied from interface:Generator
Whether embeddable types should be generated- Specified by:
generateEmbeddables
in interfaceGenerator
-
setGenerateEmbeddables
public void setGenerateEmbeddables(boolean generateEmbeddables) Description copied from interface:Generator
Whether embeddable types should be generated- Specified by:
setGenerateEmbeddables
in interfaceGenerator
-
generateRecords
public boolean generateRecords()Description copied from interface:Generator
Whether TableRecords should be generated in addition to tables- Specified by:
generateRecords
in interfaceGenerator
-
setGenerateRecords
public void setGenerateRecords(boolean generateRecords) Description copied from interface:Generator
Whether TableRecords should be generated in addition to tables- Specified by:
setGenerateRecords
in interfaceGenerator
-
generateRecordsImplementingRecordN
public boolean generateRecordsImplementingRecordN()Description copied from interface:Generator
Whether TableRecords should be generated in addition to tables, which implement Record[N] types- Specified by:
generateRecordsImplementingRecordN
in interfaceGenerator
-
setGenerateRecordsImplementingRecordN
public void setGenerateRecordsImplementingRecordN(boolean generateRecordsImplementingRecordN) Description copied from interface:Generator
Whether TableRecords should be generated in addition to tables, which implement Record[N] types- Specified by:
setGenerateRecordsImplementingRecordN
in interfaceGenerator
-
generateEnumsAsScalaSealedTraits
public boolean generateEnumsAsScalaSealedTraits()Description copied from interface:Generator
Whether enums generated as Scala sealed traits by theScalaGenerator
.- Specified by:
generateEnumsAsScalaSealedTraits
in interfaceGenerator
-
setGenerateEnumsAsScalaSealedTraits
public void setGenerateEnumsAsScalaSealedTraits(boolean generateEnumsAsScalaSealedTraits) Description copied from interface:Generator
Whether enums generated as Scala sealed traits by theScalaGenerator
.- Specified by:
setGenerateEnumsAsScalaSealedTraits
in interfaceGenerator
-
generatePojos
public boolean generatePojos()Description copied from interface:Generator
Whether POJO's should be generated in addition to records- Specified by:
generatePojos
in interfaceGenerator
-
setGeneratePojos
public void setGeneratePojos(boolean generatePojos) Description copied from interface:Generator
Whether POJO's should be generated in addition to records- Specified by:
setGeneratePojos
in interfaceGenerator
-
generatePojosAsJavaRecordClasses
public boolean generatePojosAsJavaRecordClasses()Description copied from interface:Generator
Whether POJOs should be generated as Java records by theJavaGenerator
.- Specified by:
generatePojosAsJavaRecordClasses
in interfaceGenerator
-
setGeneratePojosAsJavaRecordClasses
public void setGeneratePojosAsJavaRecordClasses(boolean pojosAsJavaRecordClasses) Description copied from interface:Generator
Whether POJOs should be generated as Java records by theJavaGenerator
.- Specified by:
setGeneratePojosAsJavaRecordClasses
in interfaceGenerator
-
generatePojosAsScalaCaseClasses
public boolean generatePojosAsScalaCaseClasses()Description copied from interface:Generator
Whether POJOs should be generated as Scala case classes by theScalaGenerator
.- Specified by:
generatePojosAsScalaCaseClasses
in interfaceGenerator
-
setGeneratePojosAsScalaCaseClasses
public void setGeneratePojosAsScalaCaseClasses(boolean pojosAsScalaCaseClasses) Description copied from interface:Generator
Whether POJOs should be generated as Scala case classes by theScalaGenerator
.- Specified by:
setGeneratePojosAsScalaCaseClasses
in interfaceGenerator
-
generatePojosAsKotlinDataClasses
public boolean generatePojosAsKotlinDataClasses()Description copied from interface:Generator
Whether POJOs should be generated as Kotlin data classes by theKotlinGenerator
.- Specified by:
generatePojosAsKotlinDataClasses
in interfaceGenerator
-
setGeneratePojosAsKotlinDataClasses
public void setGeneratePojosAsKotlinDataClasses(boolean pojosAsKotlinDataClasses) Description copied from interface:Generator
Whether POJOs should be generated as Kotlin data classes by theKotlinGenerator
.- Specified by:
setGeneratePojosAsKotlinDataClasses
in interfaceGenerator
-
generateImmutablePojos
public boolean generateImmutablePojos()Description copied from interface:Generator
Whether immutable POJO's should be generated in addition to records- Specified by:
generateImmutablePojos
in interfaceGenerator
-
setGenerateImmutablePojos
public void setGenerateImmutablePojos(boolean generateImmutablePojos) Description copied from interface:Generator
Whether immutable POJO's should be generated in addition to records- Specified by:
setGenerateImmutablePojos
in interfaceGenerator
-
generateSerializablePojos
public boolean generateSerializablePojos()Description copied from interface:Generator
Whether generated POJO's should beSerializable
.- Specified by:
generateSerializablePojos
in interfaceGenerator
-
setGenerateSerializablePojos
public void setGenerateSerializablePojos(boolean generateSerializablePojos) Description copied from interface:Generator
Whether generated POJO's should beSerializable
.- Specified by:
setGenerateSerializablePojos
in interfaceGenerator
-
generateInterfaces
public boolean generateInterfaces()Description copied from interface:Generator
Whether interfaces should be generated to be implemented by records and POJO's- Specified by:
generateInterfaces
in interfaceGenerator
-
setGenerateInterfaces
public void setGenerateInterfaces(boolean generateInterfaces) Description copied from interface:Generator
Whether interfaces should be generated to be implemented by records and POJO's- Specified by:
setGenerateInterfaces
in interfaceGenerator
-
generateImmutableInterfaces
public boolean generateImmutableInterfaces()Description copied from interface:Generator
Whether immutable interfaces should be generated in addition to records- Specified by:
generateImmutableInterfaces
in interfaceGenerator
-
setGenerateImmutableInterfaces
public void setGenerateImmutableInterfaces(boolean generateImmutableInterfaces) Description copied from interface:Generator
Whether immutable interfaces should be generated in addition to records- Specified by:
setGenerateImmutableInterfaces
in interfaceGenerator
-
generateSerializableInterfaces
public boolean generateSerializableInterfaces()Description copied from interface:Generator
Whether generated interfaces should extendSerializable
.- Specified by:
generateSerializableInterfaces
in interfaceGenerator
-
setGenerateSerializableInterfaces
public void setGenerateSerializableInterfaces(boolean generateSerializableInterfaces) Description copied from interface:Generator
Whether generated interfaces should extendSerializable
.- Specified by:
setGenerateSerializableInterfaces
in interfaceGenerator
-
generateDaos
public boolean generateDaos()Description copied from interface:Generator
Whether DAO's should be generated in addition to pojos- Specified by:
generateDaos
in interfaceGenerator
-
setGenerateDaos
public void setGenerateDaos(boolean generateDaos) Description copied from interface:Generator
Whether DAO's should be generated in addition to pojos- Specified by:
setGenerateDaos
in interfaceGenerator
-
generateJooqVersionReference
public boolean generateJooqVersionReference()Description copied from interface:Generator
Whether generated objects should reference the runtime jOOQ version inConstants
, to help debug code generator / runtime version mismatches.- Specified by:
generateJooqVersionReference
in interfaceGenerator
-
setGenerateJooqVersionReference
public void setGenerateJooqVersionReference(boolean generateJooqVersionReference) Description copied from interface:Generator
Whether generated objects should reference the runtime jOOQ version inConstants
, to help debug code generator / runtime version mismatches.- Specified by:
setGenerateJooqVersionReference
in interfaceGenerator
-
generateJPAAnnotations
public boolean generateJPAAnnotations()Description copied from interface:Generator
Whether POJO's and records should be annotated with JPA annotations- Specified by:
generateJPAAnnotations
in interfaceGenerator
-
setGenerateJPAAnnotations
public void setGenerateJPAAnnotations(boolean generateJPAAnnotations) Description copied from interface:Generator
Whether POJO's and records should be annotated with JPA annotations- Specified by:
setGenerateJPAAnnotations
in interfaceGenerator
-
generateJPAVersion
Description copied from interface:Generator
The minimum JPA version that is supported by generated code (latest version if empty).- Specified by:
generateJPAVersion
in interfaceGenerator
-
setGenerateJPAVersion
Description copied from interface:Generator
The minimum JPA version that is supported by generated code (latest version if empty).- Specified by:
setGenerateJPAVersion
in interfaceGenerator
-
generateValidationAnnotations
public boolean generateValidationAnnotations()Description copied from interface:Generator
Whether POJO's and records should be annotated with JSR-303 validation annotations- Specified by:
generateValidationAnnotations
in interfaceGenerator
-
setGenerateValidationAnnotations
public void setGenerateValidationAnnotations(boolean generateValidationAnnotations) Description copied from interface:Generator
Whether POJO's and records should be annotated with JSR-303 validation annotations- Specified by:
setGenerateValidationAnnotations
in interfaceGenerator
-
generateSpringAnnotations
public boolean generateSpringAnnotations()Description copied from interface:Generator
Whether DAOs should be annotated with useful spring annotations such as@Repository
or@Autowired
- Specified by:
generateSpringAnnotations
in interfaceGenerator
-
setGenerateSpringAnnotations
public void setGenerateSpringAnnotations(boolean generateSpringAnnotations) Description copied from interface:Generator
Whether DAOs should be annotated with useful spring annotations such as@Repository
or@Autowired
- Specified by:
setGenerateSpringAnnotations
in interfaceGenerator
-
generateSpringDao
public boolean generateSpringDao()Description copied from interface:Generator
Whether a Spring specificDAOImpl
subclass should be generated, which may contain Spring specific stuff, such as the@Transactional
annotation (ifGenerator.generateSpringAnnotations()
is set).- Specified by:
generateSpringDao
in interfaceGenerator
-
setGenerateSpringDao
public void setGenerateSpringDao(boolean generateSpringDao) Description copied from interface:Generator
Whether a Spring specificDAOImpl
subclass should be generated, which may contain Spring specific stuff, such as the@Transactional
annotation (ifGenerator.generateSpringAnnotations()
is set).- Specified by:
setGenerateSpringDao
in interfaceGenerator
-
generateKotlinSetterJvmNameAnnotationsOnIsPrefix
public boolean generateKotlinSetterJvmNameAnnotationsOnIsPrefix()Description copied from interface:Generator
Whether kotlin mutable properties should be annotated withset:JvmName
as a workaround for problems occurring when kotlin producessetX()
instead ofsetIsX()
setters for anisX
property.- Specified by:
generateKotlinSetterJvmNameAnnotationsOnIsPrefix
in interfaceGenerator
-
setGenerateKotlinSetterJvmNameAnnotationsOnIsPrefix
public void setGenerateKotlinSetterJvmNameAnnotationsOnIsPrefix(boolean generateKotlinSetterJvmNameAnnotationsOnIsPrefix) Description copied from interface:Generator
Whether kotlin mutable properties should be annotated withset:JvmName
as a workaround for problems occurring when kotlin producessetX()
instead ofsetIsX()
setters for anisX
property.- Specified by:
setGenerateKotlinSetterJvmNameAnnotationsOnIsPrefix
in interfaceGenerator
-
generatedSerialVersionUID
Description copied from interface:Generator
The type ofserialVersionUID
that should be generated.- Specified by:
generatedSerialVersionUID
in interfaceGenerator
-
setGenerateGeneratedSerialVersionUID
public void setGenerateGeneratedSerialVersionUID(GeneratedSerialVersionUID generatedSerialVersionUID) Description copied from interface:Generator
The type ofserialVersionUID
that should be generated.- Specified by:
setGenerateGeneratedSerialVersionUID
in interfaceGenerator
-
maxMembersPerInitialiser
public int maxMembersPerInitialiser()Description copied from interface:Generator
The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.- Specified by:
maxMembersPerInitialiser
in interfaceGenerator
-
setMaxMembersPerInitialiser
public void setMaxMembersPerInitialiser(int maxMembersPerInitialiser) Description copied from interface:Generator
The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.- Specified by:
setMaxMembersPerInitialiser
in interfaceGenerator
-
generateGlobalObjectReferences
public boolean generateGlobalObjectReferences()Description copied from interface:Generator
Whether global object references should be generated- Specified by:
generateGlobalObjectReferences
in interfaceGenerator
-
setGenerateGlobalObjectReferences
public void setGenerateGlobalObjectReferences(boolean generateGlobalObjectReferences) Description copied from interface:Generator
Whether global object references should be generated- Specified by:
setGenerateGlobalObjectReferences
in interfaceGenerator
-
generateGlobalCatalogReferences
public boolean generateGlobalCatalogReferences()Description copied from interface:Generator
Whether global catalog references should be generated- Specified by:
generateGlobalCatalogReferences
in interfaceGenerator
-
setGenerateGlobalCatalogReferences
public void setGenerateGlobalCatalogReferences(boolean globalCatalogReferences) Description copied from interface:Generator
Whether global catalog references should be generated- Specified by:
setGenerateGlobalCatalogReferences
in interfaceGenerator
-
generateGlobalSchemaReferences
public boolean generateGlobalSchemaReferences()Description copied from interface:Generator
Whether global schema references should be generated- Specified by:
generateGlobalSchemaReferences
in interfaceGenerator
-
setGenerateGlobalSchemaReferences
public void setGenerateGlobalSchemaReferences(boolean globalSchemaReferences) Description copied from interface:Generator
Whether global schema references should be generated- Specified by:
setGenerateGlobalSchemaReferences
in interfaceGenerator
-
generateGlobalRoutineReferences
public boolean generateGlobalRoutineReferences()Description copied from interface:Generator
Whether global routine references should be generated- Specified by:
generateGlobalRoutineReferences
in interfaceGenerator
-
setGenerateGlobalRoutineReferences
public void setGenerateGlobalRoutineReferences(boolean generateGlobalRoutineReferences) Description copied from interface:Generator
Whether global routine references should be generated- Specified by:
setGenerateGlobalRoutineReferences
in interfaceGenerator
-
generateGlobalSequenceReferences
public boolean generateGlobalSequenceReferences()Description copied from interface:Generator
Whether global sequence references should be generated- Specified by:
generateGlobalSequenceReferences
in interfaceGenerator
-
setGenerateGlobalSequenceReferences
public void setGenerateGlobalSequenceReferences(boolean generateGlobalSequenceReferences) Description copied from interface:Generator
Whether global sequence references should be generated- Specified by:
setGenerateGlobalSequenceReferences
in interfaceGenerator
-
generateGlobalTableReferences
public boolean generateGlobalTableReferences()Description copied from interface:Generator
Whether global table references should be generated- Specified by:
generateGlobalTableReferences
in interfaceGenerator
-
setGenerateGlobalTableReferences
public void setGenerateGlobalTableReferences(boolean generateGlobalTableReferences) Description copied from interface:Generator
Whether global table references should be generated- Specified by:
setGenerateGlobalTableReferences
in interfaceGenerator
-
generateGlobalDomainReferences
public boolean generateGlobalDomainReferences()Description copied from interface:Generator
Whether global domain references should be generated- Specified by:
generateGlobalDomainReferences
in interfaceGenerator
-
setGenerateGlobalDomainReferences
public void setGenerateGlobalDomainReferences(boolean globalDomainReferences) Description copied from interface:Generator
Whether global domain references should be generated- Specified by:
setGenerateGlobalDomainReferences
in interfaceGenerator
-
generateGlobalUDTReferences
public boolean generateGlobalUDTReferences()Description copied from interface:Generator
Whether global UDT references should be generated- Specified by:
generateGlobalUDTReferences
in interfaceGenerator
-
setGenerateGlobalUDTReferences
public void setGenerateGlobalUDTReferences(boolean generateGlobalUDTReferences) Description copied from interface:Generator
Whether global UDT references should be generated- Specified by:
setGenerateGlobalUDTReferences
in interfaceGenerator
-
generateGlobalQueueReferences
public boolean generateGlobalQueueReferences()Description copied from interface:Generator
Whether global queue references should be generated- Specified by:
generateGlobalQueueReferences
in interfaceGenerator
-
setGenerateGlobalQueueReferences
public void setGenerateGlobalQueueReferences(boolean globalQueueReferences) Description copied from interface:Generator
Whether global queue references should be generated- Specified by:
setGenerateGlobalQueueReferences
in interfaceGenerator
-
generateGlobalLinkReferences
public boolean generateGlobalLinkReferences()Description copied from interface:Generator
Whether global link references should be generated- Specified by:
generateGlobalLinkReferences
in interfaceGenerator
-
setGenerateGlobalLinkReferences
public void setGenerateGlobalLinkReferences(boolean globalLinkReferences) Description copied from interface:Generator
Whether global link references should be generated- Specified by:
setGenerateGlobalLinkReferences
in interfaceGenerator
-
generateGlobalKeyReferences
public boolean generateGlobalKeyReferences()Description copied from interface:Generator
Whether global key references should be generated- Specified by:
generateGlobalKeyReferences
in interfaceGenerator
-
setGenerateGlobalKeyReferences
public void setGenerateGlobalKeyReferences(boolean globalKeyReferences) Description copied from interface:Generator
Whether global key references should be generated- Specified by:
setGenerateGlobalKeyReferences
in interfaceGenerator
-
generateGlobalIndexReferences
public boolean generateGlobalIndexReferences()Description copied from interface:Generator
Whether global index references should be generated- Specified by:
generateGlobalIndexReferences
in interfaceGenerator
-
setGenerateGlobalIndexReferences
public void setGenerateGlobalIndexReferences(boolean globalIndexReferences) Description copied from interface:Generator
Whether global index references should be generated- Specified by:
setGenerateGlobalIndexReferences
in interfaceGenerator
-
generateQueues
public boolean generateQueues()Description copied from interface:Generator
Whether queue related code should be generated- Specified by:
generateQueues
in interfaceGenerator
-
setGenerateQueues
public void setGenerateQueues(boolean queues) Description copied from interface:Generator
Whether queue related code should be generated- Specified by:
setGenerateQueues
in interfaceGenerator
-
generateLinks
public boolean generateLinks()Description copied from interface:Generator
Whether link related code should be generated- Specified by:
generateLinks
in interfaceGenerator
-
setGenerateLinks
public void setGenerateLinks(boolean links) Description copied from interface:Generator
Whether link related code should be generated- Specified by:
setGenerateLinks
in interfaceGenerator
-
generateKeys
public boolean generateKeys()Description copied from interface:Generator
Whether key related code should be generated- Specified by:
generateKeys
in interfaceGenerator
-
setGenerateKeys
public void setGenerateKeys(boolean keys) Description copied from interface:Generator
Whether key related code should be generated- Specified by:
setGenerateKeys
in interfaceGenerator
-
generateJavadoc
public boolean generateJavadoc()Description copied from interface:Generator
Whether any Javadoc should be generated.- Specified by:
generateJavadoc
in interfaceGenerator
-
setGenerateJavadoc
public void setGenerateJavadoc(boolean javadoc) Description copied from interface:Generator
Whether any Javadoc should be generated.- Specified by:
setGenerateJavadoc
in interfaceGenerator
-
generateComments
public boolean generateComments()Description copied from interface:Generator
Whether any SQL comments should be generated as Javadoc.- Specified by:
generateComments
in interfaceGenerator
-
setGenerateComments
public void setGenerateComments(boolean comments) Description copied from interface:Generator
Whether any SQL comments should be generated as Javadoc.- Specified by:
setGenerateComments
in interfaceGenerator
-
generateCommentsOnAttributes
public boolean generateCommentsOnAttributes()Description copied from interface:Generator
Whether SQL comments on attributes should be generated as Javadoc.- Specified by:
generateCommentsOnAttributes
in interfaceGenerator
-
setGenerateCommentsOnAttributes
public void setGenerateCommentsOnAttributes(boolean commentsOnAttributes) Description copied from interface:Generator
Whether SQL comments on attributes should be generated as Javadoc.- Specified by:
setGenerateCommentsOnAttributes
in interfaceGenerator
-
generateCommentsOnCatalogs
public boolean generateCommentsOnCatalogs()Description copied from interface:Generator
Whether SQL comments on catalogs should be generated as Javadoc.- Specified by:
generateCommentsOnCatalogs
in interfaceGenerator
-
setGenerateCommentsOnCatalogs
public void setGenerateCommentsOnCatalogs(boolean commentsOnCatalogs) Description copied from interface:Generator
Whether SQL comments on catalogs should be generated as Javadoc.- Specified by:
setGenerateCommentsOnCatalogs
in interfaceGenerator
-
generateCommentsOnColumns
public boolean generateCommentsOnColumns()Description copied from interface:Generator
Whether SQL comments on columns should be generated as Javadoc.- Specified by:
generateCommentsOnColumns
in interfaceGenerator
-
setGenerateCommentsOnColumns
public void setGenerateCommentsOnColumns(boolean commentsOnColumns) Description copied from interface:Generator
Whether SQL comments on columns should be generated as Javadoc.- Specified by:
setGenerateCommentsOnColumns
in interfaceGenerator
-
generateCommentsOnKeys
public boolean generateCommentsOnKeys()Description copied from interface:Generator
Whether SQL comments on keys should be generated as Javadoc.- Specified by:
generateCommentsOnKeys
in interfaceGenerator
-
setGenerateCommentsOnKeys
public void setGenerateCommentsOnKeys(boolean commentsOnKeys) Description copied from interface:Generator
Whether SQL comments on keys should be generated as Javadoc.- Specified by:
setGenerateCommentsOnKeys
in interfaceGenerator
-
generateCommentsOnLinks
public boolean generateCommentsOnLinks()Description copied from interface:Generator
Whether SQL comments on links should be generated as Javadoc.- Specified by:
generateCommentsOnLinks
in interfaceGenerator
-
setGenerateCommentsOnLinks
public void setGenerateCommentsOnLinks(boolean commentsOnLinks) Description copied from interface:Generator
Whether SQL comments on links should be generated as Javadoc.- Specified by:
setGenerateCommentsOnLinks
in interfaceGenerator
-
generateCommentsOnPackages
public boolean generateCommentsOnPackages()Description copied from interface:Generator
Whether SQL comments on packages should be generated as Javadoc.- Specified by:
generateCommentsOnPackages
in interfaceGenerator
-
setGenerateCommentsOnPackages
public void setGenerateCommentsOnPackages(boolean commentsOnPackages) Description copied from interface:Generator
Whether SQL comments on packages should be generated as Javadoc.- Specified by:
setGenerateCommentsOnPackages
in interfaceGenerator
-
generateCommentsOnParameters
public boolean generateCommentsOnParameters()Description copied from interface:Generator
Whether SQL comments on parameters should be generated as Javadoc.- Specified by:
generateCommentsOnParameters
in interfaceGenerator
-
setGenerateCommentsOnParameters
public void setGenerateCommentsOnParameters(boolean commentsOnParameters) Description copied from interface:Generator
Whether SQL comments on parameters should be generated as Javadoc.- Specified by:
setGenerateCommentsOnParameters
in interfaceGenerator
-
generateCommentsOnQueues
public boolean generateCommentsOnQueues()Description copied from interface:Generator
Whether SQL comments on queues should be generated as Javadoc.- Specified by:
generateCommentsOnQueues
in interfaceGenerator
-
setGenerateCommentsOnQueues
public void setGenerateCommentsOnQueues(boolean commentsOnQueues) Description copied from interface:Generator
Whether SQL comments on queues should be generated as Javadoc.- Specified by:
setGenerateCommentsOnQueues
in interfaceGenerator
-
generateCommentsOnRoutines
public boolean generateCommentsOnRoutines()Description copied from interface:Generator
Whether SQL comments on routines should be generated as Javadoc.- Specified by:
generateCommentsOnRoutines
in interfaceGenerator
-
setGenerateCommentsOnRoutines
public void setGenerateCommentsOnRoutines(boolean commentsOnRoutines) Description copied from interface:Generator
Whether SQL comments on routines should be generated as Javadoc.- Specified by:
setGenerateCommentsOnRoutines
in interfaceGenerator
-
generateCommentsOnSchemas
public boolean generateCommentsOnSchemas()Description copied from interface:Generator
Whether SQL comments on schemas should be generated as Javadoc.- Specified by:
generateCommentsOnSchemas
in interfaceGenerator
-
setGenerateCommentsOnSchemas
public void setGenerateCommentsOnSchemas(boolean commentsOnSchemas) Description copied from interface:Generator
Whether SQL comments on schemas should be generated as Javadoc.- Specified by:
setGenerateCommentsOnSchemas
in interfaceGenerator
-
generateCommentsOnSequences
public boolean generateCommentsOnSequences()Description copied from interface:Generator
Whether SQL comments on sequences should be generated as Javadoc.- Specified by:
generateCommentsOnSequences
in interfaceGenerator
-
setGenerateCommentsOnSequences
public void setGenerateCommentsOnSequences(boolean commentsOnSequences) Description copied from interface:Generator
Whether SQL comments on sequences should be generated as Javadoc.- Specified by:
setGenerateCommentsOnSequences
in interfaceGenerator
-
generateCommentsOnTables
public boolean generateCommentsOnTables()Description copied from interface:Generator
Whether SQL comments on tables should be generated as Javadoc.- Specified by:
generateCommentsOnTables
in interfaceGenerator
-
setGenerateCommentsOnTables
public void setGenerateCommentsOnTables(boolean commentsOnTables) Description copied from interface:Generator
Whether SQL comments on tables should be generated as Javadoc.- Specified by:
setGenerateCommentsOnTables
in interfaceGenerator
-
generateCommentsOnEmbeddables
public boolean generateCommentsOnEmbeddables()Description copied from interface:Generator
Whether SQL comments on embeddables should be generated as Javadoc.- Specified by:
generateCommentsOnEmbeddables
in interfaceGenerator
-
setGenerateCommentsOnEmbeddables
public void setGenerateCommentsOnEmbeddables(boolean generateCommentsOnEmbeddables) Description copied from interface:Generator
Whether SQL comments on embeddables should be generated as Javadoc.- Specified by:
setGenerateCommentsOnEmbeddables
in interfaceGenerator
-
generateCommentsOnUDTs
public boolean generateCommentsOnUDTs()Description copied from interface:Generator
Whether SQL comments on UDTs should be generated as Javadoc.- Specified by:
generateCommentsOnUDTs
in interfaceGenerator
-
setGenerateCommentsOnUDTs
public void setGenerateCommentsOnUDTs(boolean commentsOnUDTs) Description copied from interface:Generator
Whether SQL comments on UDTs should be generated as Javadoc.- Specified by:
setGenerateCommentsOnUDTs
in interfaceGenerator
-
generateSources
public boolean generateSources()Description copied from interface:Generator
Whether source code should be generated on any object type.- Specified by:
generateSources
in interfaceGenerator
-
setGenerateSources
public void setGenerateSources(boolean sources) Description copied from interface:Generator
Whether source code should be generated on any object type.- Specified by:
setGenerateSources
in interfaceGenerator
-
generateSourcesOnViews
public boolean generateSourcesOnViews()Description copied from interface:Generator
Whether source code should be generated on views.- Specified by:
generateSourcesOnViews
in interfaceGenerator
-
setGenerateSourcesOnViews
public void setGenerateSourcesOnViews(boolean sourcesOnViews) Description copied from interface:Generator
Whether source code should be generated on views.- Specified by:
setGenerateSourcesOnViews
in interfaceGenerator
-
fluentSetters
Deprecated.Description copied from interface:Generator
Whether fluent setters should be generated- Specified by:
fluentSetters
in interfaceGenerator
-
setFluentSetters
Deprecated.Description copied from interface:Generator
Whether fluent setters should be generated- Specified by:
setFluentSetters
in interfaceGenerator
-
generateFluentSetters
public boolean generateFluentSetters()Description copied from interface:Generator
Whether fluent setters should be generated- Specified by:
generateFluentSetters
in interfaceGenerator
-
setGenerateFluentSetters
public void setGenerateFluentSetters(boolean fluentSetters) Description copied from interface:Generator
Whether fluent setters should be generated- Specified by:
setGenerateFluentSetters
in interfaceGenerator
-
generateJavaBeansGettersAndSetters
public boolean generateJavaBeansGettersAndSetters()Description copied from interface:Generator
Whether getters and setters should be generated JavaBeans style (or jOOQ style).- Specified by:
generateJavaBeansGettersAndSetters
in interfaceGenerator
-
setGenerateJavaBeansGettersAndSetters
public void setGenerateJavaBeansGettersAndSetters(boolean javaBeansGettersAndSetters) Description copied from interface:Generator
Whether getters and setters should be generated JavaBeans style (or jOOQ style).- Specified by:
setGenerateJavaBeansGettersAndSetters
in interfaceGenerator
-
generateUseTableNameForUnambiguousFKs
public boolean generateUseTableNameForUnambiguousFKs()Description copied from interface:Generator
Whether names of unambiguousForeignKeyDefinition
should be based on the referencedTableDefinition
.When a child table has only one
ForeignKeyDefinition
towards a parent table, then that path is "unambiguous." In that case, someGeneratorStrategy
implementations may choose to use the parent table'sTableDefinition
for implementations ofGeneratorStrategy.getJavaMethodName(Definition)
, instead of theForeignKeyDefinition
, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
- Specified by:
generateUseTableNameForUnambiguousFKs
in interfaceGenerator
-
setGenerateUseTableNameForUnambiguousFKs
public void setGenerateUseTableNameForUnambiguousFKs(boolean useTableNameForUnambiguousFKs) Description copied from interface:Generator
Whether names of unambiguousForeignKeyDefinition
should be based on the referencedTableDefinition
.When a child table has only one
ForeignKeyDefinition
towards a parent table, then that path is "unambiguous." In that case, someGeneratorStrategy
implementations may choose to use the parent table'sTableDefinition
for implementations ofGeneratorStrategy.getJavaMethodName(Definition)
, instead of theForeignKeyDefinition
, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
- Specified by:
setGenerateUseTableNameForUnambiguousFKs
in interfaceGenerator
-
generateVarargsSetters
public boolean generateVarargsSetters()Description copied from interface:Generator
Whether varargs setters should be generated for array types.- Specified by:
generateVarargsSetters
in interfaceGenerator
-
setGenerateVarargsSetters
public void setGenerateVarargsSetters(boolean varargsSetters) Description copied from interface:Generator
Whether varargs setters should be generated for array types.- Specified by:
setGenerateVarargsSetters
in interfaceGenerator
-
generatePojosEqualsAndHashCode
public boolean generatePojosEqualsAndHashCode()Description copied from interface:Generator
Whetherequals()
andhashCode()
methods should be generated on POJOs- Specified by:
generatePojosEqualsAndHashCode
in interfaceGenerator
-
setGeneratePojosEqualsAndHashCode
public void setGeneratePojosEqualsAndHashCode(boolean generatePojosEqualsAndHashCode) Description copied from interface:Generator
Whetherequals()
andhashCode()
methods should be generated on POJOs- Specified by:
setGeneratePojosEqualsAndHashCode
in interfaceGenerator
-
generatePojosToString
public boolean generatePojosToString()Description copied from interface:Generator
Whether atoString()
method should be generated on POJOs- Specified by:
generatePojosToString
in interfaceGenerator
-
setGeneratePojosToString
public void setGeneratePojosToString(boolean generatePojosToString) Description copied from interface:Generator
Whether atoString()
method should be generated on POJOs- Specified by:
setGeneratePojosToString
in interfaceGenerator
-
fullyQualifiedTypes
Deprecated.Description copied from interface:Generator
A regular expression matching all the types in generated code that should be fully qualified.- Specified by:
fullyQualifiedTypes
in interfaceGenerator
-
setFullyQualifiedTypes
Deprecated.Description copied from interface:Generator
A regular expression matching all the types in generated code that should be fully qualified.- Specified by:
setFullyQualifiedTypes
in interfaceGenerator
-
generateFullyQualifiedTypes
Description copied from interface:Generator
A regular expression matching all the types in generated code that should be fully qualified.- Specified by:
generateFullyQualifiedTypes
in interfaceGenerator
-
setGenerateFullyQualifiedTypes
Description copied from interface:Generator
A regular expression matching all the types in generated code that should be fully qualified.- Specified by:
setGenerateFullyQualifiedTypes
in interfaceGenerator
-
generateJavaTimeTypes
public boolean generateJavaTimeTypes()Description copied from interface:Generator
A flag indicating whether Java 8's java.time types should be used by the source code generator, rather than JDBC's java.sql types.This flag is ignored in the commercial Java 6 distribution of jOOQ 3.9+
- Specified by:
generateJavaTimeTypes
in interfaceGenerator
-
setGenerateJavaTimeTypes
public void setGenerateJavaTimeTypes(boolean generateJavaTimeTypes) Description copied from interface:Generator
A flag indicating whether Java 8's java.time types should be used by the source code generator, rather than JDBC's java.sql types.This flag is ignored in the commercial Java 6 distribution of jOOQ 3.9+
- Specified by:
setGenerateJavaTimeTypes
in interfaceGenerator
-
generateSpatialTypes
public boolean generateSpatialTypes()Description copied from interface:Generator
A flag indicating whether theSpatial
type support should be enabled.- Specified by:
generateSpatialTypes
in interfaceGenerator
-
setGenerateSpatialTypes
public void setGenerateSpatialTypes(boolean generateSpatialTypes) Description copied from interface:Generator
A flag indicating whether theSpatial
type support should be enabled.- Specified by:
setGenerateSpatialTypes
in interfaceGenerator
-
generateXmlTypes
public boolean generateXmlTypes()Description copied from interface:Generator
A flag indicating whether theXML
type support should be enabled.- Specified by:
generateXmlTypes
in interfaceGenerator
-
setGenerateXmlTypes
public void setGenerateXmlTypes(boolean generateXmlTypes) Description copied from interface:Generator
A flag indicating whether theXML
type support should be enabled.- Specified by:
setGenerateXmlTypes
in interfaceGenerator
-
generateJsonTypes
public boolean generateJsonTypes()Description copied from interface:Generator
- Specified by:
generateJsonTypes
in interfaceGenerator
-
setGenerateJsonTypes
public void setGenerateJsonTypes(boolean generateJsonTypes) Description copied from interface:Generator
- Specified by:
setGenerateJsonTypes
in interfaceGenerator
-
generateIntervalTypes
public boolean generateIntervalTypes()Description copied from interface:Generator
A flag indicating whether theInterval
type support should be enabled.- Specified by:
generateIntervalTypes
in interfaceGenerator
-
setGenerateIntervalTypes
public void setGenerateIntervalTypes(boolean generateIntervalTypes) Description copied from interface:Generator
A flag indicating whether theInterval
type support should be enabled.- Specified by:
setGenerateIntervalTypes
in interfaceGenerator
-
generateEmptyCatalogs
public boolean generateEmptyCatalogs()Description copied from interface:Generator
Whether empty catalogs should still be generated.- Specified by:
generateEmptyCatalogs
in interfaceGenerator
-
setGenerateEmptyCatalogs
public void setGenerateEmptyCatalogs(boolean generateEmptyCatalogs) Description copied from interface:Generator
Whether empty catalogs should still be generated.- Specified by:
setGenerateEmptyCatalogs
in interfaceGenerator
-
generateEmptySchemas
public boolean generateEmptySchemas()Description copied from interface:Generator
Whether empty schemas should still be generated.- Specified by:
generateEmptySchemas
in interfaceGenerator
-
setGenerateEmptySchemas
public void setGenerateEmptySchemas(boolean generateEmptySchemas) Description copied from interface:Generator
Whether empty schemas should still be generated.- Specified by:
setGenerateEmptySchemas
in interfaceGenerator
-
generateNewline
Description copied from interface:Generator
The newline character(s) to be used in generated code.- Specified by:
generateNewline
in interfaceGenerator
-
setGenerateNewline
Description copied from interface:Generator
The newline character(s) to be used in generated code.- Specified by:
setGenerateNewline
in interfaceGenerator
-
generateIndentation
Description copied from interface:Generator
The indentation character(s) to be used in generated code.- Specified by:
generateIndentation
in interfaceGenerator
-
setGenerateIndentation
Description copied from interface:Generator
The indentation character(s) to be used in generated code.- Specified by:
setGenerateIndentation
in interfaceGenerator
-
generatePrintMarginForBlockComment
public int generatePrintMarginForBlockComment()Description copied from interface:Generator
The print margin for Javadoc and other block comments to be used in generated code.- Specified by:
generatePrintMarginForBlockComment
in interfaceGenerator
-
setGeneratePrintMarginForBlockComment
public void setGeneratePrintMarginForBlockComment(int printMarginForBlockComment) Description copied from interface:Generator
The print margin for Javadoc and other block comments to be used in generated code.- Specified by:
setGeneratePrintMarginForBlockComment
in interfaceGenerator
-
generateTextBlocks
Description copied from interface:Generator
Whether to generate String in text block format.- Specified by:
generateTextBlocks
in interfaceGenerator
-
setGenerateTextBlocks
Description copied from interface:Generator
Whether to generate String in text block format.- Specified by:
setGenerateTextBlocks
in interfaceGenerator
-
setTargetDirectory
Description copied from interface:Generator
Initialise the target directory- Specified by:
setTargetDirectory
in interfaceGenerator
-
getTargetDirectory
Description copied from interface:Generator
The target directory- Specified by:
getTargetDirectory
in interfaceGenerator
-
setTargetPackage
Description copied from interface:Generator
Initialise the target package name- Specified by:
setTargetPackage
in interfaceGenerator
-
getTargetPackage
- Specified by:
getTargetPackage
in interfaceGenerator
- Returns:
- Get the target package for the current configuration
-
getTargetEncoding
Description copied from interface:Generator
The target encoding- Specified by:
getTargetEncoding
in interfaceGenerator
-
setTargetEncoding
Description copied from interface:Generator
Initialise the target encoding- Specified by:
setTargetEncoding
in interfaceGenerator
-
getTargetLocale
Description copied from interface:Generator
The target locale.- Specified by:
getTargetLocale
in interfaceGenerator
-
setTargetLocale
Description copied from interface:Generator
The target locale.- Specified by:
setTargetLocale
in interfaceGenerator
-
getTargetClean
public boolean getTargetClean()Description copied from interface:Generator
Whether the target package should be cleaned to contain only generated code after a generation run.- Specified by:
getTargetClean
in interfaceGenerator
-
setTargetClean
public void setTargetClean(boolean clean) Description copied from interface:Generator
Whether the target package should be cleaned to contain only generated code after a generation run.- Specified by:
setTargetClean
in interfaceGenerator
-
empty
If file is a directory, recursively empty its children. If file is a file, delete it. -
empty
If file is a directory, recursively empty its children. If file is a file, delete it, except if it is in the list of files to keep.
-