- All Implemented Interfaces:
Serializable,XMLAppendable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Stringprotected Booleanprotected Booleanprotected GeneratedAnnotationTypeprotected GeneratedSerialVersionUIDprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Stringprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Stringprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Integerprotected Stringprotected Booleanprotected Stringprotected Booleanprotected Stringprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Integerprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected Booleanprotected GeneratedTextBlocksprotected Booleanprotected Booleanprotected Booleanprotected VisibilityModifierprotected Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidappendTo(XMLBuilder builder) booleanA regular expression matching all the types in generated code that should be fully qualified.Generate theGeneratedannotation to indicate jOOQ version used for source code.The serial version UID to be generated in all files.The indentation characters to be used in generated code.Version of JPA specification is to be used to generate version-specific annotations.The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.The newline characters to be used in generated code.Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305javax.annotation.Nonnulltype.Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305javax.annotation.Nullabletype.The print margin to apply to generated Javadoc and other block comments, for automatic line wrapping.Whether to generate String in text block format.The visibility modifier to be used with generated code.inthashCode()Turn off generation of all SQL comments as Javadoc on all objects.Turn off generation of all SQL comments as Javadoc on all attributes.Turn off generation of all SQL comments as Javadoc on all catalogs.Turn off generation of all SQL comments as Javadoc on all columns.Turn off generation of all SQL comments as Javadoc on all embeddables.Turn off generation of all SQL comments as Javadoc on all keys.Turn off generation of all SQL comments as Javadoc on all links.Turn off generation of all SQL comments as Javadoc on all packages.Turn off generation of all SQL comments as Javadoc on all parameters.Turn off generation of all SQL comments as Javadoc on all queues.Turn off generation of all SQL comments as Javadoc on all routines.Turn off generation of all SQL comments as Javadoc on all schemas.Turn off generation of all SQL comments as Javadoc on all sequences.Turn off generation of all SQL comments as Javadoc on all tables.Turn off generation of all SQL comments as Javadoc on all UDTs.Generate theConstructorPropertiesannotation on generated POJOs and/or records.Generate theConstructorPropertiesannotation on generated POJOs (defaults totrueifconstructorPropertiesAnnotationis active).Generate theConstructorPropertiesannotation on generated records (defaults totrueifconstructorPropertiesAnnotationis active).isDaos()Generate DAOs.Generate deprecated code for backwards compatibilityGenerate deprecation annotations on references to unknown data types.Generate embeddable classes.Whether empty catalogs (e.g.Whether empty schemas (e.g.Deprecated.Activate the legacy Scala sealed trait enum emulationGenerate fluent setters in records, POJOs, interfaces.Generate theGeneratedannotation to indicate jOOQ version used for source code.Whether theGeneratedannotation should include thedateattribute.Turn off generation of global catalog references.Turn off generation of global domain references.Turn off generation of global index references.Turn off generation of global key references.Turn off generation of global database link references.Turn off generation of all global object references.Turn off generation of global queue references.Turn off generation of global routine references.Turn off generation of global schema references.Turn off generation of global sequence references.Turn off generation of global table references.Turn off generation of global UDT references.Generate immutable interfaces.Generate immutable POJOs.Whether implicit join path constructors should be offered as properties in Kotlin.Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships)Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.Generate index information.Deprecated.Generated interfaces to be implemented by records and/or POJOs.A flag indicating whether the INTERVAL type support should be enabled.Modify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.Turn off generation of Javadoc on all objects.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.Generate references to the most up to date minor release inConstantsto produce compilation errors if an outdated runtime library is being used.Annotate POJOs and Records with JPA annotations.A flag indicating whether the JSON type support should be enabled.isKeys()Generate Key classes.Workaround for Kotlin generatingsetX()setters instead ofsetIsX()in byte code for mutable properties calledisX.isLinks()Generate database Link classes.Whether non-nullable items should be annotated with the annotation type specified innonnullAnnotationType.Whether nullable items should be annotated with the annotation type specified innullableAnnotationType.isPojos()Generate POJOs.Generate POJOs as records, when using the JavaGenerator.Generate POJOs as data classes, when using the KotlinGenerator.Generate POJOs as case classes, when using the ScalaGenerator.Generate basic equals() and hashCode() methods in POJOs.Generate basic toString() methods in POJOs.isQueues()Generate Queue classes.Generate TableRecord classes.Generate TableRecord classes that implement Record[N] super typesPrimary key / foreign key relations should be generated and used.Generate Routine classes.Sequence flags should be generated and used.Generate Sequence classes.Generate serializable interfaces.Generate serializable POJOs.Turn off generation of all source code on all object types.Turn off generation of all source code on all views.A flag indicating whether the spatial type support should be enabled.Annotate DAOs with useful spring annotations such as @Repository or @Autowired.Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc.isTables()Generate Table classes.isUdts()Generate UDT classes.Annotate POJOs and Records with JSR-303 validation annotationsGenerate varargs setters for array types for convenience.A flag indicating whether the XML type support should be enabled.voidsetComments(Boolean value) Turn off generation of all SQL comments as Javadoc on all objects.voidsetCommentsOnAttributes(Boolean value) Turn off generation of all SQL comments as Javadoc on all attributes.voidsetCommentsOnCatalogs(Boolean value) Turn off generation of all SQL comments as Javadoc on all catalogs.voidsetCommentsOnColumns(Boolean value) Turn off generation of all SQL comments as Javadoc on all columns.voidsetCommentsOnEmbeddables(Boolean value) Turn off generation of all SQL comments as Javadoc on all embeddables.voidsetCommentsOnKeys(Boolean value) Turn off generation of all SQL comments as Javadoc on all keys.voidsetCommentsOnLinks(Boolean value) Turn off generation of all SQL comments as Javadoc on all links.voidsetCommentsOnPackages(Boolean value) Turn off generation of all SQL comments as Javadoc on all packages.voidsetCommentsOnParameters(Boolean value) Turn off generation of all SQL comments as Javadoc on all parameters.voidsetCommentsOnQueues(Boolean value) Turn off generation of all SQL comments as Javadoc on all queues.voidsetCommentsOnRoutines(Boolean value) Turn off generation of all SQL comments as Javadoc on all routines.voidsetCommentsOnSchemas(Boolean value) Turn off generation of all SQL comments as Javadoc on all schemas.voidsetCommentsOnSequences(Boolean value) Turn off generation of all SQL comments as Javadoc on all sequences.voidsetCommentsOnTables(Boolean value) Turn off generation of all SQL comments as Javadoc on all tables.voidsetCommentsOnUDTs(Boolean value) Turn off generation of all SQL comments as Javadoc on all UDTs.voidGenerate theConstructorPropertiesannotation on generated POJOs and/or records.voidGenerate theConstructorPropertiesannotation on generated POJOs (defaults totrueifconstructorPropertiesAnnotationis active).voidGenerate theConstructorPropertiesannotation on generated records (defaults totrueifconstructorPropertiesAnnotationis active).voidGenerate DAOs.voidsetDeprecated(Boolean value) Generate deprecated code for backwards compatibilityvoidGenerate deprecation annotations on references to unknown data types.voidsetEmbeddables(Boolean value) Generate embeddable classes.voidsetEmptyCatalogs(Boolean value) Whether empty catalogs (e.g.voidsetEmptySchemas(Boolean value) Whether empty schemas (e.g.voidDeprecated.Activate the legacy Scala sealed trait enum emulationvoidsetFluentSetters(Boolean value) Generate fluent setters in records, POJOs, interfaces.voidsetFullyQualifiedTypes(String value) A regular expression matching all the types in generated code that should be fully qualified.voidsetGeneratedAnnotation(Boolean value) Generate theGeneratedannotation to indicate jOOQ version used for source code.voidWhether theGeneratedannotation should include thedateattribute.voidGenerate theGeneratedannotation to indicate jOOQ version used for source code.voidThe serial version UID to be generated in all files.voidTurn off generation of global catalog references.voidsetGlobalDomainReferences(Boolean value) Turn off generation of global domain references.voidsetGlobalIndexReferences(Boolean value) Turn off generation of global index references.voidsetGlobalKeyReferences(Boolean value) Turn off generation of global key references.voidsetGlobalLinkReferences(Boolean value) Turn off generation of global database link references.voidsetGlobalObjectReferences(Boolean value) Turn off generation of all global object references.voidsetGlobalQueueReferences(Boolean value) Turn off generation of global queue references.voidTurn off generation of global routine references.voidsetGlobalSchemaReferences(Boolean value) Turn off generation of global schema references.voidTurn off generation of global sequence references.voidsetGlobalTableReferences(Boolean value) Turn off generation of global table references.voidsetGlobalUDTReferences(Boolean value) Turn off generation of global UDT references.voidsetImmutableInterfaces(Boolean value) Generate immutable interfaces.voidsetImmutablePojos(Boolean value) Generate immutable POJOs.voidWhether implicit join path constructors should be offered as properties in Kotlin.voidsetImplicitJoinPathsToOne(Boolean value) Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships)voidWhether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.voidsetIndentation(String value) The indentation characters to be used in generated code.voidsetIndexes(Boolean value) Generate index information.voidsetInstanceFields(Boolean value) Deprecated.voidsetInterfaces(Boolean value) Generated interfaces to be implemented by records and/or POJOs.voidsetIntervalTypes(Boolean value) A flag indicating whether the INTERVAL type support should be enabled.voidModify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.voidsetJavadoc(Boolean value) Turn off generation of Javadoc on all objects.voidsetJavaTimeTypes(Boolean value) 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.voidsetJooqVersionReference(Boolean value) Generate references to the most up to date minor release inConstantsto produce compilation errors if an outdated runtime library is being used.voidsetJpaAnnotations(Boolean value) Annotate POJOs and Records with JPA annotations.voidsetJpaVersion(String value) Version of JPA specification is to be used to generate version-specific annotations.voidsetJsonTypes(Boolean value) A flag indicating whether the JSON type support should be enabled.voidGenerate Key classes.voidWorkaround for Kotlin generatingsetX()setters instead ofsetIsX()in byte code for mutable properties calledisX.voidGenerate database Link classes.voidThe maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.voidsetNewline(String value) The newline characters to be used in generated code.voidsetNonnullAnnotation(Boolean value) Whether non-nullable items should be annotated with the annotation type specified innonnullAnnotationType.voidsetNonnullAnnotationType(String value) Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305javax.annotation.Nonnulltype.voidsetNullableAnnotation(Boolean value) Whether nullable items should be annotated with the annotation type specified innullableAnnotationType.voidsetNullableAnnotationType(String value) Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305javax.annotation.Nullabletype.voidGenerate POJOs.voidGenerate POJOs as records, when using the JavaGenerator.voidGenerate POJOs as data classes, when using the KotlinGenerator.voidGenerate POJOs as case classes, when using the ScalaGenerator.voidsetPojosEqualsAndHashCode(Boolean value) Generate basic equals() and hashCode() methods in POJOs.voidsetPojosToString(Boolean value) Generate basic toString() methods in POJOs.voidThe print margin to apply to generated Javadoc and other block comments, for automatic line wrapping.voidGenerate Queue classes.voidsetRecords(Boolean value) Generate TableRecord classes.voidGenerate TableRecord classes that implement Record[N] super typesvoidsetRelations(Boolean value) Primary key / foreign key relations should be generated and used.voidsetRoutines(Boolean value) Generate Routine classes.voidsetSequenceFlags(Boolean value) Sequence flags should be generated and used.voidsetSequences(Boolean value) Generate Sequence classes.voidsetSerializableInterfaces(Boolean value) Generate serializable interfaces.voidsetSerializablePojos(Boolean value) Generate serializable POJOs.voidsetSources(Boolean value) Turn off generation of all source code on all object types.voidsetSourcesOnViews(Boolean value) Turn off generation of all source code on all views.voidsetSpatialTypes(Boolean value) A flag indicating whether the spatial type support should be enabled.voidsetSpringAnnotations(Boolean value) Annotate DAOs with useful spring annotations such as @Repository or @Autowired.voidsetSpringDao(Boolean value) Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc.voidGenerate Table classes.voidsetTextBlocks(GeneratedTextBlocks value) Whether to generate String in text block format.voidGenerate UDT classes.voidsetValidationAnnotations(Boolean value) Annotate POJOs and Records with JSR-303 validation annotationsvoidsetVarargSetters(Boolean value) Generate varargs setters for array types for convenience.voidThe visibility modifier to be used with generated code.voidsetXmlTypes(Boolean value) A flag indicating whether the XML type support should be enabled.toString()withComments(Boolean value) Turn off generation of all SQL comments as Javadoc on all objects.withCommentsOnAttributes(Boolean value) Turn off generation of all SQL comments as Javadoc on all attributes.withCommentsOnCatalogs(Boolean value) Turn off generation of all SQL comments as Javadoc on all catalogs.withCommentsOnColumns(Boolean value) Turn off generation of all SQL comments as Javadoc on all columns.withCommentsOnEmbeddables(Boolean value) Turn off generation of all SQL comments as Javadoc on all embeddables.withCommentsOnKeys(Boolean value) Turn off generation of all SQL comments as Javadoc on all keys.withCommentsOnLinks(Boolean value) Turn off generation of all SQL comments as Javadoc on all links.withCommentsOnPackages(Boolean value) Turn off generation of all SQL comments as Javadoc on all packages.withCommentsOnParameters(Boolean value) Turn off generation of all SQL comments as Javadoc on all parameters.withCommentsOnQueues(Boolean value) Turn off generation of all SQL comments as Javadoc on all queues.withCommentsOnRoutines(Boolean value) Turn off generation of all SQL comments as Javadoc on all routines.withCommentsOnSchemas(Boolean value) Turn off generation of all SQL comments as Javadoc on all schemas.withCommentsOnSequences(Boolean value) Turn off generation of all SQL comments as Javadoc on all sequences.withCommentsOnTables(Boolean value) Turn off generation of all SQL comments as Javadoc on all tables.withCommentsOnUDTs(Boolean value) Turn off generation of all SQL comments as Javadoc on all UDTs.Generate theConstructorPropertiesannotation on generated POJOs and/or records.Generate theConstructorPropertiesannotation on generated POJOs (defaults totrueifconstructorPropertiesAnnotationis active).Generate theConstructorPropertiesannotation on generated records (defaults totrueifconstructorPropertiesAnnotationis active).Generate DAOs.withDeprecated(Boolean value) Generate deprecated code for backwards compatibilityGenerate deprecation annotations on references to unknown data types.withEmbeddables(Boolean value) Generate embeddable classes.withEmptyCatalogs(Boolean value) Whether empty catalogs (e.g.withEmptySchemas(Boolean value) Whether empty schemas (e.g.Deprecated.Activate the legacy Scala sealed trait enum emulationwithFluentSetters(Boolean value) Generate fluent setters in records, POJOs, interfaces.withFullyQualifiedTypes(String value) A regular expression matching all the types in generated code that should be fully qualified.withGeneratedAnnotation(Boolean value) Generate theGeneratedannotation to indicate jOOQ version used for source code.Whether theGeneratedannotation should include thedateattribute.Generate theGeneratedannotation to indicate jOOQ version used for source code.The serial version UID to be generated in all files.Turn off generation of global catalog references.Turn off generation of global domain references.withGlobalIndexReferences(Boolean value) Turn off generation of global index references.withGlobalKeyReferences(Boolean value) Turn off generation of global key references.withGlobalLinkReferences(Boolean value) Turn off generation of global database link references.Turn off generation of all global object references.withGlobalQueueReferences(Boolean value) Turn off generation of global queue references.Turn off generation of global routine references.Turn off generation of global schema references.Turn off generation of global sequence references.withGlobalTableReferences(Boolean value) Turn off generation of global table references.withGlobalUDTReferences(Boolean value) Turn off generation of global UDT references.withImmutableInterfaces(Boolean value) Generate immutable interfaces.withImmutablePojos(Boolean value) Generate immutable POJOs.Whether implicit join path constructors should be offered as properties in Kotlin.Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships)Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.withIndentation(String value) The indentation characters to be used in generated code.withIndexes(Boolean value) Generate index information.withInstanceFields(Boolean value) Deprecated.withInterfaces(Boolean value) Generated interfaces to be implemented by records and/or POJOs.withIntervalTypes(Boolean value) A flag indicating whether the INTERVAL type support should be enabled.Modify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.withJavadoc(Boolean value) Turn off generation of Javadoc on all objects.withJavaTimeTypes(Boolean value) 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.withJooqVersionReference(Boolean value) Generate references to the most up to date minor release inConstantsto produce compilation errors if an outdated runtime library is being used.withJpaAnnotations(Boolean value) Annotate POJOs and Records with JPA annotations.withJpaVersion(String value) Version of JPA specification is to be used to generate version-specific annotations.withJsonTypes(Boolean value) A flag indicating whether the JSON type support should be enabled.Generate Key classes.Workaround for Kotlin generatingsetX()setters instead ofsetIsX()in byte code for mutable properties calledisX.Generate database Link classes.The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.withNewline(String value) The newline characters to be used in generated code.withNonnullAnnotation(Boolean value) Whether non-nullable items should be annotated with the annotation type specified innonnullAnnotationType.withNonnullAnnotationType(String value) Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305javax.annotation.Nonnulltype.withNullableAnnotation(Boolean value) Whether nullable items should be annotated with the annotation type specified innullableAnnotationType.withNullableAnnotationType(String value) Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305javax.annotation.Nullabletype.Generate POJOs.Generate POJOs as records, when using the JavaGenerator.Generate POJOs as data classes, when using the KotlinGenerator.Generate POJOs as case classes, when using the ScalaGenerator.Generate basic equals() and hashCode() methods in POJOs.withPojosToString(Boolean value) Generate basic toString() methods in POJOs.The print margin to apply to generated Javadoc and other block comments, for automatic line wrapping.withQueues(Boolean value) Generate Queue classes.withRecords(Boolean value) Generate TableRecord classes.Generate TableRecord classes that implement Record[N] super typeswithRelations(Boolean value) Primary key / foreign key relations should be generated and used.withRoutines(Boolean value) Generate Routine classes.withSequenceFlags(Boolean value) Sequence flags should be generated and used.withSequences(Boolean value) Generate Sequence classes.Generate serializable interfaces.withSerializablePojos(Boolean value) Generate serializable POJOs.withSources(Boolean value) Turn off generation of all source code on all object types.withSourcesOnViews(Boolean value) Turn off generation of all source code on all views.withSpatialTypes(Boolean value) A flag indicating whether the spatial type support should be enabled.withSpringAnnotations(Boolean value) Annotate DAOs with useful spring annotations such as @Repository or @Autowired.withSpringDao(Boolean value) Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc.withTables(Boolean value) Generate Table classes.Whether to generate String in text block format.Generate UDT classes.withValidationAnnotations(Boolean value) Annotate POJOs and Records with JSR-303 validation annotationswithVarargSetters(Boolean value) Generate varargs setters for array types for convenience.The visibility modifier to be used with generated code.withXmlTypes(Boolean value) A flag indicating whether the XML type support should be enabled.
-
Field Details
-
indexes
-
relations
-
sequenceFlags
-
implicitJoinPathsToOne
-
implicitJoinPathsUseTableNameForUnambiguousFKs
-
implicitJoinPathsAsKotlinProperties
-
deprecated
-
deprecationOnUnknownTypes
-
instanceFields
-
visibilityModifier
-
generatedAnnotation
-
generatedAnnotationType
-
generatedAnnotationDate
-
nonnullAnnotation
-
nonnullAnnotationType
-
nullableAnnotation
-
nullableAnnotationType
-
constructorPropertiesAnnotation
-
constructorPropertiesAnnotationOnPojos
-
constructorPropertiesAnnotationOnRecords
-
routines
-
sequences
-
udts
-
queues
-
links
-
keys
-
tables
-
embeddables
-
records
-
recordsImplementingRecordN
-
enumsAsScalaSealedTraits
-
pojos
-
pojosEqualsAndHashCode
-
pojosToString
-
pojosAsJavaRecordClasses
-
pojosAsScalaCaseClasses
-
pojosAsKotlinDataClasses
-
immutablePojos
-
serializablePojos
-
interfaces
-
immutableInterfaces
-
serializableInterfaces
-
daos
-
jooqVersionReference
-
jpaAnnotations
-
jpaVersion
-
validationAnnotations
-
springAnnotations
-
springDao
-
kotlinSetterJvmNameAnnotationsOnIsPrefix
-
globalObjectReferences
-
globalCatalogReferences
-
globalSchemaReferences
-
globalDomainReferences
-
globalTableReferences
-
globalSequenceReferences
-
globalUDTReferences
-
globalRoutineReferences
-
globalQueueReferences
-
globalLinkReferences
-
globalKeyReferences
-
globalIndexReferences
-
javadoc
-
comments
-
commentsOnCatalogs
-
commentsOnSchemas
-
commentsOnTables
-
commentsOnColumns
-
commentsOnEmbeddables
-
commentsOnUDTs
-
commentsOnAttributes
-
commentsOnPackages
-
commentsOnRoutines
-
commentsOnParameters
-
commentsOnSequences
-
commentsOnLinks
-
commentsOnQueues
-
commentsOnKeys
-
sources
-
sourcesOnViews
-
fluentSetters
-
javaBeansGettersAndSetters
-
varargSetters
-
generatedSerialVersionUID
-
maxMembersPerInitialiser
-
fullyQualifiedTypes
-
emptyCatalogs
-
emptySchemas
-
javaTimeTypes
-
spatialTypes
-
xmlTypes
-
jsonTypes
-
intervalTypes
-
newline
-
indentation
-
printMarginForBlockComment
-
textBlocks
-
-
Constructor Details
-
Generate
public Generate()
-
-
Method Details
-
isIndexes
Generate index information.- Returns:
- possible object is
Boolean
-
setIndexes
Generate index information.- Parameters:
value- allowed object isBoolean
-
isRelations
Primary key / foreign key relations should be generated and used. This is a prerequisite for various advanced features- Returns:
- possible object is
Boolean
-
setRelations
Primary key / foreign key relations should be generated and used. This is a prerequisite for various advanced features- Parameters:
value- allowed object isBoolean
-
isSequenceFlags
Sequence flags should be generated and used.- Returns:
- possible object is
Boolean
-
setSequenceFlags
Sequence flags should be generated and used.- Parameters:
value- allowed object isBoolean
-
isImplicitJoinPathsToOne
Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships)- Returns:
- possible object is
Boolean
-
setImplicitJoinPathsToOne
Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships)- Parameters:
value- allowed object isBoolean
-
isImplicitJoinPathsUseTableNameForUnambiguousFKs
Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.When a child table has only one
ForeignKeyDefinitiontowards a parent table, then that path is "unambiguous." In that case, someGeneratorStrategyimplementations may choose to use the parent table'sTableDefinitionfor implementations oforg.jooq.codegen.GeneratorStrategy#getJavaMethodName(Definition), instead of theForeignKeyDefinition, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
- Returns:
- possible object is
Boolean
-
setImplicitJoinPathsUseTableNameForUnambiguousFKs
Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.When a child table has only one
ForeignKeyDefinitiontowards a parent table, then that path is "unambiguous." In that case, someGeneratorStrategyimplementations may choose to use the parent table'sTableDefinitionfor implementations oforg.jooq.codegen.GeneratorStrategy#getJavaMethodName(Definition), instead of theForeignKeyDefinition, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
- Parameters:
value- allowed object isBoolean
-
isImplicitJoinPathsAsKotlinProperties
Whether implicit join path constructors should be offered as properties in Kotlin.- Returns:
- possible object is
Boolean
-
setImplicitJoinPathsAsKotlinProperties
Whether implicit join path constructors should be offered as properties in Kotlin.- Parameters:
value- allowed object isBoolean
-
isDeprecated
Generate deprecated code for backwards compatibility- Returns:
- possible object is
Boolean
-
setDeprecated
Generate deprecated code for backwards compatibility- Parameters:
value- allowed object isBoolean
-
isDeprecationOnUnknownTypes
Generate deprecation annotations on references to unknown data types. This helps identifying columns, attributes, and parameters, which may not be usable through jOOQ API, without adding custom data type bindings to them.- Returns:
- possible object is
Boolean
-
setDeprecationOnUnknownTypes
Generate deprecation annotations on references to unknown data types. This helps identifying columns, attributes, and parameters, which may not be usable through jOOQ API, without adding custom data type bindings to them.- Parameters:
value- allowed object isBoolean
-
isInstanceFields
Deprecated.- Returns:
- possible object is
Boolean
-
setInstanceFields
Deprecated.- Parameters:
value- allowed object isBoolean
-
getVisibilityModifier
The visibility modifier to be used with generated code. -
setVisibilityModifier
The visibility modifier to be used with generated code. -
isGeneratedAnnotation
Generate theGeneratedannotation to indicate jOOQ version used for source code.- Returns:
- possible object is
Boolean
-
setGeneratedAnnotation
Generate theGeneratedannotation to indicate jOOQ version used for source code.- Parameters:
value- allowed object isBoolean
-
getGeneratedAnnotationType
Generate theGeneratedannotation to indicate jOOQ version used for source code. -
setGeneratedAnnotationType
Generate theGeneratedannotation to indicate jOOQ version used for source code. -
isGeneratedAnnotationDate
Whether theGeneratedannotation should include thedateattribute.- Returns:
- possible object is
Boolean
-
setGeneratedAnnotationDate
Whether theGeneratedannotation should include thedateattribute.- Parameters:
value- allowed object isBoolean
-
isNonnullAnnotation
Whether non-nullable items should be annotated with the annotation type specified innonnullAnnotationType. 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!- Returns:
- possible object is
Boolean
-
setNonnullAnnotation
Whether non-nullable items should be annotated with the annotation type specified innonnullAnnotationType. 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!- Parameters:
value- allowed object isBoolean
-
getNonnullAnnotationType
Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305javax.annotation.Nonnulltype. -
setNonnullAnnotationType
Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305javax.annotation.Nonnulltype. -
isNullableAnnotation
Whether nullable items should be annotated with the annotation type specified innullableAnnotationType. UnlikenonnullAnnotation, nullability can be guaranteed as in SQL, and by consequence in jOOQ, every column expression can be made nullable using some SQL operation.- Returns:
- possible object is
Boolean
-
setNullableAnnotation
Whether nullable items should be annotated with the annotation type specified innullableAnnotationType. UnlikenonnullAnnotation, nullability can be guaranteed as in SQL, and by consequence in jOOQ, every column expression can be made nullable using some SQL operation.- Parameters:
value- allowed object isBoolean
-
getNullableAnnotationType
Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305javax.annotation.Nullabletype. -
setNullableAnnotationType
Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305javax.annotation.Nullabletype. -
isConstructorPropertiesAnnotation
Generate theConstructorPropertiesannotation on generated POJOs and/or records.- Returns:
- possible object is
Boolean
-
setConstructorPropertiesAnnotation
Generate theConstructorPropertiesannotation on generated POJOs and/or records.- Parameters:
value- allowed object isBoolean
-
isConstructorPropertiesAnnotationOnPojos
Generate theConstructorPropertiesannotation on generated POJOs (defaults totrueifconstructorPropertiesAnnotationis active).- Returns:
- possible object is
Boolean
-
setConstructorPropertiesAnnotationOnPojos
Generate theConstructorPropertiesannotation on generated POJOs (defaults totrueifconstructorPropertiesAnnotationis active).- Parameters:
value- allowed object isBoolean
-
isConstructorPropertiesAnnotationOnRecords
Generate theConstructorPropertiesannotation on generated records (defaults totrueifconstructorPropertiesAnnotationis active).- Returns:
- possible object is
Boolean
-
setConstructorPropertiesAnnotationOnRecords
Generate theConstructorPropertiesannotation on generated records (defaults totrueifconstructorPropertiesAnnotationis active).- Parameters:
value- allowed object isBoolean
-
isRoutines
Generate Routine classes.- Returns:
- possible object is
Boolean
-
setRoutines
Generate Routine classes.- Parameters:
value- allowed object isBoolean
-
isSequences
Generate Sequence classes.- Returns:
- possible object is
Boolean
-
setSequences
Generate Sequence classes.- Parameters:
value- allowed object isBoolean
-
isUdts
Generate UDT classes.- Returns:
- possible object is
Boolean
-
setUdts
Generate UDT classes.- Parameters:
value- allowed object isBoolean
-
isQueues
Generate Queue classes.- Returns:
- possible object is
Boolean
-
setQueues
Generate Queue classes.- Parameters:
value- allowed object isBoolean
-
isLinks
Generate database Link classes.- Returns:
- possible object is
Boolean
-
setLinks
Generate database Link classes.- Parameters:
value- allowed object isBoolean
-
isKeys
Generate Key classes.- Returns:
- possible object is
Boolean
-
setKeys
Generate Key classes.- Parameters:
value- allowed object isBoolean
-
isTables
Generate Table classes.- Returns:
- possible object is
Boolean
-
setTables
Generate Table classes.- Parameters:
value- allowed object isBoolean
-
isEmbeddables
Generate embeddable classes.- Returns:
- possible object is
Boolean
-
setEmbeddables
Generate embeddable classes.- Parameters:
value- allowed object isBoolean
-
isRecords
Generate TableRecord classes.- Returns:
- possible object is
Boolean
-
setRecords
Generate TableRecord classes.- Parameters:
value- allowed object isBoolean
-
isRecordsImplementingRecordN
Generate TableRecord classes that implement Record[N] super types- Returns:
- possible object is
Boolean
-
setRecordsImplementingRecordN
Generate TableRecord classes that implement Record[N] super types- Parameters:
value- allowed object isBoolean
-
isEnumsAsScalaSealedTraits
Deprecated.Activate the legacy Scala sealed trait enum emulation- Returns:
- possible object is
Boolean
-
setEnumsAsScalaSealedTraits
Deprecated.Activate the legacy Scala sealed trait enum emulation- Parameters:
value- allowed object isBoolean
-
isPojos
Generate POJOs.- Returns:
- possible object is
Boolean
-
setPojos
Generate POJOs.- Parameters:
value- allowed object isBoolean
-
isPojosEqualsAndHashCode
Generate basic equals() and hashCode() methods in POJOs.- Returns:
- possible object is
Boolean
-
setPojosEqualsAndHashCode
Generate basic equals() and hashCode() methods in POJOs.- Parameters:
value- allowed object isBoolean
-
isPojosToString
Generate basic toString() methods in POJOs.- Returns:
- possible object is
Boolean
-
setPojosToString
Generate basic toString() methods in POJOs.- Parameters:
value- allowed object isBoolean
-
isPojosAsJavaRecordClasses
Generate POJOs as records, when using the JavaGenerator.- Returns:
- possible object is
Boolean
-
setPojosAsJavaRecordClasses
Generate POJOs as records, when using the JavaGenerator.- Parameters:
value- allowed object isBoolean
-
isPojosAsScalaCaseClasses
Generate POJOs as case classes, when using the ScalaGenerator.- Returns:
- possible object is
Boolean
-
setPojosAsScalaCaseClasses
Generate POJOs as case classes, when using the ScalaGenerator.- Parameters:
value- allowed object isBoolean
-
isPojosAsKotlinDataClasses
Generate POJOs as data classes, when using the KotlinGenerator.- Returns:
- possible object is
Boolean
-
setPojosAsKotlinDataClasses
Generate POJOs as data classes, when using the KotlinGenerator.- Parameters:
value- allowed object isBoolean
-
isImmutablePojos
Generate immutable POJOs.- Returns:
- possible object is
Boolean
-
setImmutablePojos
Generate immutable POJOs.- Parameters:
value- allowed object isBoolean
-
isSerializablePojos
Generate serializable POJOs.- Returns:
- possible object is
Boolean
-
setSerializablePojos
Generate serializable POJOs.- Parameters:
value- allowed object isBoolean
-
isInterfaces
Generated interfaces to be implemented by records and/or POJOs.- Returns:
- possible object is
Boolean
-
setInterfaces
Generated interfaces to be implemented by records and/or POJOs.- Parameters:
value- allowed object isBoolean
-
isImmutableInterfaces
Generate immutable interfaces.- Returns:
- possible object is
Boolean
-
setImmutableInterfaces
Generate immutable interfaces.- Parameters:
value- allowed object isBoolean
-
isSerializableInterfaces
Generate serializable interfaces.- Returns:
- possible object is
Boolean
-
setSerializableInterfaces
Generate serializable interfaces.- Parameters:
value- allowed object isBoolean
-
isDaos
Generate DAOs.- Returns:
- possible object is
Boolean
-
setDaos
Generate DAOs.- Parameters:
value- allowed object isBoolean
-
isJooqVersionReference
Generate references to the most up to date minor release inConstantsto produce compilation errors if an outdated runtime library is being used.- Returns:
- possible object is
Boolean
-
setJooqVersionReference
Generate references to the most up to date minor release inConstantsto produce compilation errors if an outdated runtime library is being used.- Parameters:
value- allowed object isBoolean
-
isJpaAnnotations
Annotate POJOs and Records with JPA annotations.- Returns:
- possible object is
Boolean
-
setJpaAnnotations
Annotate POJOs and Records with JPA annotations.- Parameters:
value- allowed object isBoolean
-
getJpaVersion
Version of JPA specification is to be used to generate version-specific annotations. If it is omitted, the latest version is used by default. -
setJpaVersion
Version of JPA specification is to be used to generate version-specific annotations. If it is omitted, the latest version is used by default. -
isValidationAnnotations
Annotate POJOs and Records with JSR-303 validation annotations- Returns:
- possible object is
Boolean
-
setValidationAnnotations
Annotate POJOs and Records with JSR-303 validation annotations- Parameters:
value- allowed object isBoolean
-
isSpringAnnotations
Annotate DAOs with useful spring annotations such as @Repository or @Autowired.- Returns:
- possible object is
Boolean
-
setSpringAnnotations
Annotate DAOs with useful spring annotations such as @Repository or @Autowired.- Parameters:
value- allowed object isBoolean
-
isSpringDao
Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc.- Returns:
- possible object is
Boolean
-
setSpringDao
Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc.- Parameters:
value- allowed object isBoolean
-
isKotlinSetterJvmNameAnnotationsOnIsPrefix
Workaround for Kotlin generatingsetX()setters instead ofsetIsX()in byte code for mutable properties calledisX.- Returns:
- possible object is
Boolean
-
setKotlinSetterJvmNameAnnotationsOnIsPrefix
Workaround for Kotlin generatingsetX()setters instead ofsetIsX()in byte code for mutable properties calledisX.- Parameters:
value- allowed object isBoolean
-
isGlobalObjectReferences
Turn off generation of all global object references.- Returns:
- possible object is
Boolean
-
setGlobalObjectReferences
Turn off generation of all global object references.- Parameters:
value- allowed object isBoolean
-
isGlobalCatalogReferences
Turn off generation of global catalog references.- Returns:
- possible object is
Boolean
-
setGlobalCatalogReferences
Turn off generation of global catalog references.- Parameters:
value- allowed object isBoolean
-
isGlobalSchemaReferences
Turn off generation of global schema references.- Returns:
- possible object is
Boolean
-
setGlobalSchemaReferences
Turn off generation of global schema references.- Parameters:
value- allowed object isBoolean
-
isGlobalDomainReferences
Turn off generation of global domain references.- Returns:
- possible object is
Boolean
-
setGlobalDomainReferences
Turn off generation of global domain references.- Parameters:
value- allowed object isBoolean
-
isGlobalTableReferences
Turn off generation of global table references.- Returns:
- possible object is
Boolean
-
setGlobalTableReferences
Turn off generation of global table references.- Parameters:
value- allowed object isBoolean
-
isGlobalSequenceReferences
Turn off generation of global sequence references.- Returns:
- possible object is
Boolean
-
setGlobalSequenceReferences
Turn off generation of global sequence references.- Parameters:
value- allowed object isBoolean
-
isGlobalUDTReferences
Turn off generation of global UDT references.- Returns:
- possible object is
Boolean
-
setGlobalUDTReferences
Turn off generation of global UDT references.- Parameters:
value- allowed object isBoolean
-
isGlobalRoutineReferences
Turn off generation of global routine references.- Returns:
- possible object is
Boolean
-
setGlobalRoutineReferences
Turn off generation of global routine references.- Parameters:
value- allowed object isBoolean
-
isGlobalQueueReferences
Turn off generation of global queue references.- Returns:
- possible object is
Boolean
-
setGlobalQueueReferences
Turn off generation of global queue references.- Parameters:
value- allowed object isBoolean
-
isGlobalLinkReferences
Turn off generation of global database link references.- Returns:
- possible object is
Boolean
-
setGlobalLinkReferences
Turn off generation of global database link references.- Parameters:
value- allowed object isBoolean
-
isGlobalKeyReferences
Turn off generation of global key references.- Returns:
- possible object is
Boolean
-
setGlobalKeyReferences
Turn off generation of global key references.- Parameters:
value- allowed object isBoolean
-
isGlobalIndexReferences
Turn off generation of global index references.- Returns:
- possible object is
Boolean
-
setGlobalIndexReferences
Turn off generation of global index references.- Parameters:
value- allowed object isBoolean
-
isJavadoc
Turn off generation of Javadoc on all objects.- Returns:
- possible object is
Boolean
-
setJavadoc
Turn off generation of Javadoc on all objects.- Parameters:
value- allowed object isBoolean
-
isComments
Turn off generation of all SQL comments as Javadoc on all objects.- Returns:
- possible object is
Boolean
-
setComments
Turn off generation of all SQL comments as Javadoc on all objects.- Parameters:
value- allowed object isBoolean
-
isCommentsOnCatalogs
Turn off generation of all SQL comments as Javadoc on all catalogs.- Returns:
- possible object is
Boolean
-
setCommentsOnCatalogs
Turn off generation of all SQL comments as Javadoc on all catalogs.- Parameters:
value- allowed object isBoolean
-
isCommentsOnSchemas
Turn off generation of all SQL comments as Javadoc on all schemas.- Returns:
- possible object is
Boolean
-
setCommentsOnSchemas
Turn off generation of all SQL comments as Javadoc on all schemas.- Parameters:
value- allowed object isBoolean
-
isCommentsOnTables
Turn off generation of all SQL comments as Javadoc on all tables.- Returns:
- possible object is
Boolean
-
setCommentsOnTables
Turn off generation of all SQL comments as Javadoc on all tables.- Parameters:
value- allowed object isBoolean
-
isCommentsOnColumns
Turn off generation of all SQL comments as Javadoc on all columns.- Returns:
- possible object is
Boolean
-
setCommentsOnColumns
Turn off generation of all SQL comments as Javadoc on all columns.- Parameters:
value- allowed object isBoolean
-
isCommentsOnEmbeddables
Turn off generation of all SQL comments as Javadoc on all embeddables.- Returns:
- possible object is
Boolean
-
setCommentsOnEmbeddables
Turn off generation of all SQL comments as Javadoc on all embeddables.- Parameters:
value- allowed object isBoolean
-
isCommentsOnUDTs
Turn off generation of all SQL comments as Javadoc on all UDTs.- Returns:
- possible object is
Boolean
-
setCommentsOnUDTs
Turn off generation of all SQL comments as Javadoc on all UDTs.- Parameters:
value- allowed object isBoolean
-
isCommentsOnAttributes
Turn off generation of all SQL comments as Javadoc on all attributes.- Returns:
- possible object is
Boolean
-
setCommentsOnAttributes
Turn off generation of all SQL comments as Javadoc on all attributes.- Parameters:
value- allowed object isBoolean
-
isCommentsOnPackages
Turn off generation of all SQL comments as Javadoc on all packages.- Returns:
- possible object is
Boolean
-
setCommentsOnPackages
Turn off generation of all SQL comments as Javadoc on all packages.- Parameters:
value- allowed object isBoolean
-
isCommentsOnRoutines
Turn off generation of all SQL comments as Javadoc on all routines.- Returns:
- possible object is
Boolean
-
setCommentsOnRoutines
Turn off generation of all SQL comments as Javadoc on all routines.- Parameters:
value- allowed object isBoolean
-
isCommentsOnParameters
Turn off generation of all SQL comments as Javadoc on all parameters.- Returns:
- possible object is
Boolean
-
setCommentsOnParameters
Turn off generation of all SQL comments as Javadoc on all parameters.- Parameters:
value- allowed object isBoolean
-
isCommentsOnSequences
Turn off generation of all SQL comments as Javadoc on all sequences.- Returns:
- possible object is
Boolean
-
setCommentsOnSequences
Turn off generation of all SQL comments as Javadoc on all sequences.- Parameters:
value- allowed object isBoolean
-
isCommentsOnLinks
Turn off generation of all SQL comments as Javadoc on all links.- Returns:
- possible object is
Boolean
-
setCommentsOnLinks
Turn off generation of all SQL comments as Javadoc on all links.- Parameters:
value- allowed object isBoolean
-
isCommentsOnQueues
Turn off generation of all SQL comments as Javadoc on all queues.- Returns:
- possible object is
Boolean
-
setCommentsOnQueues
Turn off generation of all SQL comments as Javadoc on all queues.- Parameters:
value- allowed object isBoolean
-
isCommentsOnKeys
Turn off generation of all SQL comments as Javadoc on all keys.- Returns:
- possible object is
Boolean
-
setCommentsOnKeys
Turn off generation of all SQL comments as Javadoc on all keys.- Parameters:
value- allowed object isBoolean
-
isSources
Turn off generation of all source code on all object types.- Returns:
- possible object is
Boolean
-
setSources
Turn off generation of all source code on all object types.- Parameters:
value- allowed object isBoolean
-
isSourcesOnViews
Turn off generation of all source code on all views.- Returns:
- possible object is
Boolean
-
setSourcesOnViews
Turn off generation of all source code on all views.- Parameters:
value- allowed object isBoolean
-
isFluentSetters
Generate fluent setters in records, POJOs, interfaces.- Returns:
- possible object is
Boolean
-
setFluentSetters
Generate fluent setters in records, POJOs, interfaces.- Parameters:
value- allowed object isBoolean
-
isJavaBeansGettersAndSetters
Modify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.If this flag is set to false, then:
- Column name : X_INDEX
- Attribute name: xIndex
- Getter name : getXIndex()
- Setter name : setXIndex()
If this flag is set to true, then:
- Getter name : getxIndex()
- Setter name : setxIndex()
Custom GeneratorStrategy implementations are unaffected
- Returns:
- possible object is
Boolean
-
setJavaBeansGettersAndSetters
Modify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.If this flag is set to false, then:
- Column name : X_INDEX
- Attribute name: xIndex
- Getter name : getXIndex()
- Setter name : setXIndex()
If this flag is set to true, then:
- Getter name : getxIndex()
- Setter name : setxIndex()
Custom GeneratorStrategy implementations are unaffected
- Parameters:
value- allowed object isBoolean
-
isVarargSetters
Generate varargs setters for array types for convenience.This may lead to compilation warnings in current Java versions.
- Returns:
- possible object is
Boolean
-
setVarargSetters
Generate varargs setters for array types for convenience.This may lead to compilation warnings in current Java versions.
- Parameters:
value- allowed object isBoolean
-
getGeneratedSerialVersionUID
The serial version UID to be generated in all files. -
setGeneratedSerialVersionUID
The serial version UID to be generated in all files. -
getMaxMembersPerInitialiser
The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code. -
setMaxMembersPerInitialiser
The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code. -
getFullyQualifiedTypes
A regular expression matching all the types in generated code that should be fully qualified.This can be useful if you have a database object that generates a String class, and you want to avoid naming clashes with the java.lang package by specifying
java\.lang\..* -
setFullyQualifiedTypes
A regular expression matching all the types in generated code that should be fully qualified.This can be useful if you have a database object that generates a String class, and you want to avoid naming clashes with the java.lang package by specifying
java\.lang\..* -
isEmptyCatalogs
Whether empty catalogs (e.g. empty because ofconfigurations) should still be generated. - Returns:
- possible object is
Boolean
-
setEmptyCatalogs
Whether empty catalogs (e.g. empty because ofconfigurations) should still be generated. - Parameters:
value- allowed object isBoolean
-
isEmptySchemas
Whether empty schemas (e.g. empty because ofconfigurations) should still be generated. - Returns:
- possible object is
Boolean
-
setEmptySchemas
Whether empty schemas (e.g. empty because ofconfigurations) should still be generated. - Parameters:
value- allowed object isBoolean
-
isJavaTimeTypes
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+
- Returns:
- possible object is
Boolean
-
setJavaTimeTypes
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+
- Parameters:
value- allowed object isBoolean
-
isSpatialTypes
A flag indicating whether the spatial type support should be enabled.- Returns:
- possible object is
Boolean
-
setSpatialTypes
A flag indicating whether the spatial type support should be enabled.- Parameters:
value- allowed object isBoolean
-
isXmlTypes
A flag indicating whether the XML type support should be enabled.- Returns:
- possible object is
Boolean
-
setXmlTypes
A flag indicating whether the XML type support should be enabled.- Parameters:
value- allowed object isBoolean
-
isJsonTypes
A flag indicating whether the JSON type support should be enabled.- Returns:
- possible object is
Boolean
-
setJsonTypes
A flag indicating whether the JSON type support should be enabled.- Parameters:
value- allowed object isBoolean
-
isIntervalTypes
A flag indicating whether the INTERVAL type support should be enabled.- Returns:
- possible object is
Boolean
-
setIntervalTypes
A flag indicating whether the INTERVAL type support should be enabled.- Parameters:
value- allowed object isBoolean
-
getNewline
The newline characters to be used in generated code. Whitespace characters can be used, e.g. \n, \r\n -
setNewline
The newline characters to be used in generated code. Whitespace characters can be used, e.g. \n, \r\n -
getIndentation
The indentation characters to be used in generated code. If unspecified, an idiomatic default indentation of the language will be used (4 spaces in Java, 2 spaces in Scala). Whitespace characters can be used, e.g. \t -
setIndentation
The indentation characters to be used in generated code. If unspecified, an idiomatic default indentation of the language will be used (4 spaces in Java, 2 spaces in Scala). Whitespace characters can be used, e.g. \t -
getPrintMarginForBlockComment
The print margin to apply to generated Javadoc and other block comments, for automatic line wrapping. The feature is turned off if the print margin is0. -
setPrintMarginForBlockComment
The print margin to apply to generated Javadoc and other block comments, for automatic line wrapping. The feature is turned off if the print margin is0. -
getTextBlocks
Whether to generate String in text block format. -
setTextBlocks
Whether to generate String in text block format. -
withIndexes
Generate index information. -
withRelations
Primary key / foreign key relations should be generated and used. This is a prerequisite for various advanced features -
withSequenceFlags
Sequence flags should be generated and used. -
withImplicitJoinPathsToOne
Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) -
withImplicitJoinPathsUseTableNameForUnambiguousFKs
Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.When a child table has only one
ForeignKeyDefinitiontowards a parent table, then that path is "unambiguous." In that case, someGeneratorStrategyimplementations may choose to use the parent table'sTableDefinitionfor implementations oforg.jooq.codegen.GeneratorStrategy#getJavaMethodName(Definition), instead of theForeignKeyDefinition, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
-
withImplicitJoinPathsAsKotlinProperties
Whether implicit join path constructors should be offered as properties in Kotlin. -
withDeprecated
Generate deprecated code for backwards compatibility -
withDeprecationOnUnknownTypes
Generate deprecation annotations on references to unknown data types. This helps identifying columns, attributes, and parameters, which may not be usable through jOOQ API, without adding custom data type bindings to them. -
withInstanceFields
Deprecated. -
withVisibilityModifier
The visibility modifier to be used with generated code. -
withGeneratedAnnotation
Generate theGeneratedannotation to indicate jOOQ version used for source code. -
withGeneratedAnnotationType
Generate theGeneratedannotation to indicate jOOQ version used for source code. -
withGeneratedAnnotationDate
Whether theGeneratedannotation should include thedateattribute. -
withNonnullAnnotation
Whether non-nullable items should be annotated with the annotation type specified innonnullAnnotationType. 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! -
withNonnullAnnotationType
Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305javax.annotation.Nonnulltype. -
withNullableAnnotation
Whether nullable items should be annotated with the annotation type specified innullableAnnotationType. UnlikenonnullAnnotation, nullability can be guaranteed as in SQL, and by consequence in jOOQ, every column expression can be made nullable using some SQL operation. -
withNullableAnnotationType
Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305javax.annotation.Nullabletype. -
withConstructorPropertiesAnnotation
Generate theConstructorPropertiesannotation on generated POJOs and/or records. -
withConstructorPropertiesAnnotationOnPojos
Generate theConstructorPropertiesannotation on generated POJOs (defaults totrueifconstructorPropertiesAnnotationis active). -
withConstructorPropertiesAnnotationOnRecords
Generate theConstructorPropertiesannotation on generated records (defaults totrueifconstructorPropertiesAnnotationis active). -
withRoutines
Generate Routine classes. -
withSequences
Generate Sequence classes. -
withUdts
Generate UDT classes. -
withQueues
Generate Queue classes. -
withLinks
Generate database Link classes. -
withKeys
Generate Key classes. -
withTables
Generate Table classes. -
withEmbeddables
Generate embeddable classes. -
withRecords
Generate TableRecord classes. -
withRecordsImplementingRecordN
Generate TableRecord classes that implement Record[N] super types -
withEnumsAsScalaSealedTraits
Deprecated.Activate the legacy Scala sealed trait enum emulation -
withPojos
Generate POJOs. -
withPojosEqualsAndHashCode
Generate basic equals() and hashCode() methods in POJOs. -
withPojosToString
Generate basic toString() methods in POJOs. -
withPojosAsJavaRecordClasses
Generate POJOs as records, when using the JavaGenerator. -
withPojosAsScalaCaseClasses
Generate POJOs as case classes, when using the ScalaGenerator. -
withPojosAsKotlinDataClasses
Generate POJOs as data classes, when using the KotlinGenerator. -
withImmutablePojos
Generate immutable POJOs. -
withSerializablePojos
Generate serializable POJOs. -
withInterfaces
Generated interfaces to be implemented by records and/or POJOs. -
withImmutableInterfaces
Generate immutable interfaces. -
withSerializableInterfaces
Generate serializable interfaces. -
withDaos
Generate DAOs. -
withJooqVersionReference
Generate references to the most up to date minor release inConstantsto produce compilation errors if an outdated runtime library is being used. -
withJpaAnnotations
Annotate POJOs and Records with JPA annotations. -
withJpaVersion
Version of JPA specification is to be used to generate version-specific annotations. If it is omitted, the latest version is used by default. -
withValidationAnnotations
Annotate POJOs and Records with JSR-303 validation annotations -
withSpringAnnotations
Annotate DAOs with useful spring annotations such as @Repository or @Autowired. -
withSpringDao
Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc. -
withKotlinSetterJvmNameAnnotationsOnIsPrefix
Workaround for Kotlin generatingsetX()setters instead ofsetIsX()in byte code for mutable properties calledisX. -
withGlobalObjectReferences
Turn off generation of all global object references. -
withGlobalCatalogReferences
Turn off generation of global catalog references. -
withGlobalSchemaReferences
Turn off generation of global schema references. -
withGlobalDomainReferences
Turn off generation of global domain references. -
withGlobalTableReferences
Turn off generation of global table references. -
withGlobalSequenceReferences
Turn off generation of global sequence references. -
withGlobalUDTReferences
Turn off generation of global UDT references. -
withGlobalRoutineReferences
Turn off generation of global routine references. -
withGlobalQueueReferences
Turn off generation of global queue references. -
withGlobalLinkReferences
Turn off generation of global database link references. -
withGlobalKeyReferences
Turn off generation of global key references. -
withGlobalIndexReferences
Turn off generation of global index references. -
withJavadoc
Turn off generation of Javadoc on all objects. -
withComments
Turn off generation of all SQL comments as Javadoc on all objects. -
withCommentsOnCatalogs
Turn off generation of all SQL comments as Javadoc on all catalogs. -
withCommentsOnSchemas
Turn off generation of all SQL comments as Javadoc on all schemas. -
withCommentsOnTables
Turn off generation of all SQL comments as Javadoc on all tables. -
withCommentsOnColumns
Turn off generation of all SQL comments as Javadoc on all columns. -
withCommentsOnEmbeddables
Turn off generation of all SQL comments as Javadoc on all embeddables. -
withCommentsOnUDTs
Turn off generation of all SQL comments as Javadoc on all UDTs. -
withCommentsOnAttributes
Turn off generation of all SQL comments as Javadoc on all attributes. -
withCommentsOnPackages
Turn off generation of all SQL comments as Javadoc on all packages. -
withCommentsOnRoutines
Turn off generation of all SQL comments as Javadoc on all routines. -
withCommentsOnParameters
Turn off generation of all SQL comments as Javadoc on all parameters. -
withCommentsOnSequences
Turn off generation of all SQL comments as Javadoc on all sequences. -
withCommentsOnLinks
Turn off generation of all SQL comments as Javadoc on all links. -
withCommentsOnQueues
Turn off generation of all SQL comments as Javadoc on all queues. -
withCommentsOnKeys
Turn off generation of all SQL comments as Javadoc on all keys. -
withSources
Turn off generation of all source code on all object types. -
withSourcesOnViews
Turn off generation of all source code on all views. -
withFluentSetters
Generate fluent setters in records, POJOs, interfaces. -
withJavaBeansGettersAndSetters
Modify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.If this flag is set to false, then:
- Column name : X_INDEX
- Attribute name: xIndex
- Getter name : getXIndex()
- Setter name : setXIndex()
If this flag is set to true, then:
- Getter name : getxIndex()
- Setter name : setxIndex()
Custom GeneratorStrategy implementations are unaffected
-
withVarargSetters
Generate varargs setters for array types for convenience.This may lead to compilation warnings in current Java versions.
-
withGeneratedSerialVersionUID
The serial version UID to be generated in all files. -
withMaxMembersPerInitialiser
The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code. -
withFullyQualifiedTypes
A regular expression matching all the types in generated code that should be fully qualified.This can be useful if you have a database object that generates a String class, and you want to avoid naming clashes with the java.lang package by specifying
java\.lang\..* -
withEmptyCatalogs
Whether empty catalogs (e.g. empty because ofconfigurations) should still be generated. -
withEmptySchemas
Whether empty schemas (e.g. empty because ofconfigurations) should still be generated. -
withJavaTimeTypes
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+
-
withSpatialTypes
A flag indicating whether the spatial type support should be enabled. -
withXmlTypes
A flag indicating whether the XML type support should be enabled. -
withJsonTypes
A flag indicating whether the JSON type support should be enabled. -
withIntervalTypes
A flag indicating whether the INTERVAL type support should be enabled. -
withNewline
The newline characters to be used in generated code. Whitespace characters can be used, e.g. \n, \r\n -
withIndentation
The indentation characters to be used in generated code. If unspecified, an idiomatic default indentation of the language will be used (4 spaces in Java, 2 spaces in Scala). Whitespace characters can be used, e.g. \t -
withPrintMarginForBlockComment
The print margin to apply to generated Javadoc and other block comments, for automatic line wrapping. The feature is turned off if the print margin is0. -
withTextBlocks
Whether to generate String in text block format. -
appendTo
- Specified by:
appendToin interfaceXMLAppendable
-
toString
-
equals
-
hashCode
public int hashCode()
-