- All Implemented Interfaces:
Generator
- Direct Known Subclasses:
DefaultGenerator,KotlinGenerator,ScalaGenerator
Replace this code with your own logic, if you need your database schema represented in a different way.
Note that you can also extend this class to generate POJO's or other stuff entirely independent of jOOQ.
- Author:
- Lukas Eder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jooq.codegen.GeneratorStrategyWrapperprotected booleanprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidIf file is a directory, recursively empty its children.protected voidIf file is a directory, recursively empty its children.protected final StringescapeEntities(String comment) booleanDeprecated.Deprecated.voidDo the code generationfinal voidprotected voidgenerateArray(ArrayDefinition array, JavaWriter out) protected voidgenerateArray(SchemaDefinition schema, ArrayDefinition array) protected voidgenerateArrayClassFooter(ArrayDefinition array, JavaWriter out) Subclasses may override this method to provide array class footer code.protected voidgenerateArrayClassJavadoc(ArrayDefinition array, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidgenerateArrays(SchemaDefinition schema) booleanWhether to generate overrides forTable.as(Name)and related overloads.protected voidgenerateCatalog(CatalogDefinition catalog) protected voidgenerateCatalog(CatalogDefinition catalog, JavaWriter out) protected voidgenerateCatalogClassFooter(CatalogDefinition schema, JavaWriter out) Subclasses may override this method to provide catalog class footer code.protected voidgenerateCatalogClassJavadoc(CatalogDefinition catalog, JavaWriter out) Subclasses may override this method to provide their own Javadoc.booleanWhether any SQL comments should be generated as Javadoc.booleanWhether SQL comments on attributes should be generated as Javadoc.booleanWhether SQL comments on catalogs should be generated as Javadoc.booleanWhether SQL comments on columns should be generated as Javadoc.booleanWhether SQL comments on embeddables should be generated as Javadoc.booleanWhether SQL comments on keys should be generated as Javadoc.booleanWhether SQL comments on links should be generated as Javadoc.booleanWhether SQL comments on packages should be generated as Javadoc.booleanWhether SQL comments on parameters should be generated as Javadoc.booleanWhether SQL comments on queues should be generated as Javadoc.booleanWhether SQL comments on routines should be generated as Javadoc.booleanWhether SQL comments on schemas should be generated as Javadoc.booleanWhether SQL comments on sequences should be generated as Javadoc.booleanWhether SQL comments on tables should be generated as Javadoc.booleanWhether SQL comments on UDTs should be generated as Javadoc.booleanWhether theConstructorPropertiesannotation should be generated.booleanWhether theConstructorPropertiesannotation should be generated on POJOs.booleanWhether theConstructorPropertiesannotation should be generated on records.protected voidgenerateDao(TableDefinition table) protected voidgenerateDao(TableDefinition table, JavaWriter out) protected voidgenerateDaoClassFooter(TableDefinition table, JavaWriter out) Subclasses may override this method to provide dao class footer code.protected voidgenerateDaoClassJavadoc(TableDefinition table, JavaWriter out) Subclasses may override this method to provide their own Javadoc.booleanWhether DAO's should be generated in addition to pojosprotected voidgenerateDaos(SchemaDefinition schema) booleanWhether default catalog instances should be generatedbooleanWhether default schema instances should be generatedbooleanWhether deprecated code should be generatedbooleanWhether deprecation should be generated on unknown types.Which type of Nonnull annotation should be generated.Which type of Nullable annotation should be generated.protected voidDeprecated.- [#681] - 3.14.0 - This method is no longer being calledprotected voidgenerateDomain(DomainDefinition d, JavaWriter out) Deprecated.- [#681] - 3.14.0 - This method is no longer being calledprotected voidDeprecated.- [#681] - 3.14.0 - This method is no longer being calledprotected voidDeprecated.- [#681] - 3.14.0 - This method is no longer being calledprotected voidGenerating central static domain accessprotected voidSubclasses may override this method to provide domain references class footer code.protected voidgenerateDomains(SchemaDefinition schema) Deprecated.- [#681] - 3.14.0 - This method is no longer being calledThe type ofserialVersionUIDthat should be generated.protected voidgenerateEmbeddable(SchemaDefinition schema, EmbeddableDefinition embeddable) protected voidgenerateEmbeddableClassFooter(EmbeddableDefinition embeddable, JavaWriter out) Subclasses may override this method to provide record class footer code.protected voidgenerateEmbeddableClassJavadoc(EmbeddableDefinition embeddable, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidgenerateEmbeddableGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own embeddable getters.protected voidgenerateEmbeddableInterface(EmbeddableDefinition embeddable) protected voidgenerateEmbeddableInterfaceClassFooter(EmbeddableDefinition embeddable, JavaWriter out) Subclasses may override this method to provide embeddable interface class footer code.protected voidgenerateEmbeddableInterfaceClassJavadoc(EmbeddableDefinition embeddable, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidgenerateEmbeddableInterfaceGetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own interface getters.protected voidprotected voidgenerateEmbeddableInterfaceSetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own interface setters.protected voidgenerateEmbeddablePojo(EmbeddableDefinition embeddable) protected voidgenerateEmbeddablePojoClassFooter(EmbeddableDefinition embeddable, JavaWriter out) Subclasses may override this method to provide embeddable POJO class footer code.protected voidgenerateEmbeddablePojoClassJavadoc(EmbeddableDefinition embeddable, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidgenerateEmbeddablePojoGetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own pojo getters.protected voidprotected voidgenerateEmbeddablePojoSetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own pojo setters.protected voidgenerateEmbeddableRecordGetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own record getters for embeddables.protected voidgenerateEmbeddableRecordSetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own record getters for embeddables.booleanWhether embeddable types should be generatedprotected voidgenerateEmbeddables(SchemaDefinition schema) protected voidgenerateEmbeddableSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own embeddable setters.booleanWhether empty catalogs should still be generated.booleanWhether empty schemas should still be generated.protected voidprotected voidgenerateEnum(EnumDefinition e, JavaWriter out) protected voidSubclasses may override this method to provide enum class footer code.protected voidSubclasses may override this method to provide their own Javadoc.protected voidgenerateEnums(SchemaDefinition schema) booleanWhether enums generated as Scala sealed traits by theScalaGenerator.booleanWhether fluent setters should be generatedA regular expression matching all the types in generated code that should be fully qualified.booleanWhether theGeneratedannotation should be generated.booleanWhether theGeneratedannotation should include thedateattribute.booleanWhether theGeneratedannotation should include the jOOQ version.Whether theGeneratedannotation should be generated.booleanWhether global catalog references should be generatedbooleanWhether global domain references should be generatedbooleanWhether global index references should be generatedbooleanWhether global key references should be generatedbooleanWhether global link references should be generatedbooleanWhether global object names should be generatedprotected voidgenerateGlobalObjectNames(Definition container, Class<? extends Definition> objectType) booleanWhether global object references should be generatedbooleanWhether global queue references should be generatedbooleanWhether global routine references should be generatedbooleanWhether global schema references should be generatedbooleanWhether global sequence references should be generatedbooleanWhether global table references should be generatedbooleanWhether global UDT references should be generatedbooleanWhether immutable interfaces should be generated in addition to recordsbooleanWhether immutable POJO's should be generated in addition to recordsbooleanWhether implicit join path constructors should be offered as properties in Kotlin.booleanWhether implicit join path constructors on generated tables for incoming foreign key relationships (to-many relationships) should be generated.booleanWhether implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) should be generated.booleanWhether to generate implicit join path table subtypes implementingPathfor increased JOIN convenience.booleanWhether implicit join path constructors should also be generated if there isn't any outgoing or incoming foreign key relationship.The indentation character(s) to be used in generated code.booleanWhether indexes should be generated.protected voidgenerateIndexes(SchemaDefinition schema) protected voidgenerateIndexesClassFooter(SchemaDefinition schema, JavaWriter out) Subclasses may override this method to provide index references class footer code.booleanWhether instance fields should be generated (as opposed to static fields).protected voidgenerateInterface(TableDefinition table) protected voidgenerateInterface(TableDefinition table, JavaWriter out) protected voidgenerateInterfaceClassFooter(TableDefinition table, JavaWriter out) Subclasses may override this method to provide interface class footer code.protected voidgenerateInterfaceClassJavadoc(TableDefinition table, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidgenerateInterfaceGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own interface getters.booleanWhether interfaces should be generated to be implemented by records and POJO'sprotected voidgenerateInterfaces(SchemaDefinition schema) protected voidgenerateInterfaceSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own interface setters.booleanA flag indicating whether theIntervaltype support should be enabled.booleanWhether getters and setters should be generated JavaBeans style (or jOOQ style).booleanWhether any Javadoc should be generated.booleanA flag indicating whether Java 8's java.time types should be used by the source code generator, rather than JDBC's java.sql types.booleanWhether generated objects should reference the runtime jOOQ version inConstants, to help debug code generator / runtime version mismatches.booleanWhether POJO's and records should be annotated with JPA annotationsThe minimum JPA version that is supported by generated code (latest version if empty).booleanbooleanWhether key related code should be generatedbooleanGenerate defaulted nullable POJO attributes.booleanGenerate defaulted nullable Record attributes.booleanGenerate non-nullable types on interface attributes, where column is not null.booleanGenerate non-nullable types on POJO attributes, where column is not null.booleanGenerate non-nullable types on Record attributes, where column is not null.booleanWhether kotlin mutable properties should be annotated withset:JvmNameas a workaround for problems occurring when kotlin producessetX()instead ofsetIsX()setters for anisXproperty.booleanWhether link related code should be generatedThe newline character(s) to be used in generated code.booleanWhether Nonnull annotations should be generated.booleanWhether Nullable annotations should be generated.protected voidgenerateObjectNameClassFooter(Definition schema, Class<? extends Definition> objectType, JavaWriter out) Subclasses may override this method to provide object name class footer code.protected voidgeneratePackage(PackageDefinition pkg, JavaWriter out) protected voidgeneratePackage(SchemaDefinition schema, PackageDefinition pkg) protected voidSubclasses may override this method to provide package class footer code.protected voidSubclasses may override this method to provide their own Javadoc.protected voidgeneratePackages(SchemaDefinition schema) protected voidgeneratePojo(TableDefinition table) protected voidgeneratePojo(TableDefinition table, JavaWriter out) protected voidgeneratePojoClassFooter(TableDefinition table, JavaWriter out) Subclasses may override this method to provide POJO class footer code.protected voidgeneratePojoClassJavadoc(TableDefinition table, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidgeneratePojoCopyConstructor(Definition tableOrUDT, JavaWriter out) Subclasses may override this method to provide their own pojo copy constructors.protected voidgeneratePojoDefaultConstructor(Definition tableOrUDT, JavaWriter out) Subclasses may override this method to provide their own pojo default constructors.protected voidgeneratePojoEqualsAndHashCode(Definition tableOrUDT, JavaWriter out) protected voidgeneratePojoGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own pojo getters.protected voidgeneratePojoMultiConstructor(Definition tableOrUDT, JavaWriter out) Subclasses may override this method to provide their own pojo copy constructors.booleanWhether POJO's should be generated in addition to recordsprotected voidgeneratePojos(SchemaDefinition schema) booleanWhether POJOs should be generated as Java records by theJavaGenerator.booleanWhether POJOs should be generated as Kotlin data classes by theKotlinGenerator.booleanWhether POJOs should be generated as Scala case classes by theScalaGenerator.booleanWhetherequals()andhashCode()methods should be generated on POJOsprotected voidgeneratePojoSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own pojo setters.booleanWhether atoString()method should be generated on POJOsprotected voidgeneratePojoToString(Definition tableOrUDT, JavaWriter out) intThe print margin for Javadoc and other block comments to be used in generated code.booleanWhether queue related code should be generatedprotected voidgenerateRecord(TableDefinition table) protected voidgenerateRecord(TableDefinition table, JavaWriter out) protected voidgenerateRecordClassFooter(TableDefinition table, JavaWriter out) Subclasses may override this method to provide record class footer code.protected voidgenerateRecordClassJavadoc(TableDefinition table, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidgenerateRecordGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own record getters.booleanWhether TableRecords should be generated in addition to tablesprotected voidgenerateRecords(SchemaDefinition schema) protected voidgenerateRecordSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own record setters.booleanWhether TableRecords should be generated in addition to tables, which implement Record[N] typesbooleanWhether foreign key relations should be resolvedprotected voidgenerateRelations(SchemaDefinition schema) protected voidgenerateRelationsClassFooter(SchemaDefinition schema, JavaWriter out) Subclasses may override this method to provide relations references class footer code.booleanWhether to generate overrides forand related overloads (see https://github.com/jOOQ/jOOQ/issues/13937).invalid reference
Table#rename(Name)protected voidgenerateRoutine(RoutineDefinition routine, JavaWriter out) protected voidgenerateRoutine(SchemaDefinition schema, RoutineDefinition routine) protected voidgenerateRoutineClassFooter(RoutineDefinition routine, JavaWriter out) Subclasses may override this method to provide routine class footer code.protected voidgenerateRoutineClassJavadoc(RoutineDefinition routine, JavaWriter out) Subclasses may override this method to provide their own Javadoc.booleanWhether Routines should be generated.protected voidgenerateRoutines(SchemaDefinition schema) protected voidgenerateRoutinesClassFooter(SchemaDefinition schema, JavaWriter out) Subclasses may override this method to provide routine references class footer code.protected voidgenerateSchema(SchemaDefinition schema) protected voidgenerateSchema(SchemaDefinition schema, JavaWriter out) protected voidgenerateSchemaClassFooter(SchemaDefinition schema, JavaWriter out) Subclasses may override this method to provide schema class footer code.protected voidgenerateSchemaClassJavadoc(SchemaDefinition schema, JavaWriter out) Subclasses may override this method to provide their own Javadoc.booleanWhether sequence flags should be generated.booleanWhether Sequences should be generated.protected voidgenerateSequences(SchemaDefinition schema) protected voidgenerateSequencesClassFooter(SchemaDefinition schema, JavaWriter out) Subclasses may override this method to provide sequence references class footer code.booleanWhether generated interfaces should extendSerializable.booleanWhether generated POJO's should beSerializable.booleanWhether source code should be generated on any object type.booleanWhether source code should be generated on views.booleanA flag indicating whether theSpatialtype support should be enabled.booleanWhether DAOs should be annotated with useful spring annotations such as@Repositoryor@AutowiredbooleanWhether a Spring specificDAOImplsubclass should be generated, which may contain Spring specific stuff, such as the@Transactionalannotation (ifGenerator.generateSpringAnnotations()is set).protected voidgenerateSpringDao(CatalogDefinition catalog) protected voidgenerateSpringDao(CatalogDefinition catalog, JavaWriter out) protected voidgenerateSpringDaoClassFooter(CatalogDefinition catalog, JavaWriter out) Subclasses may override this method to provide table references class footer code.protected voidprotected voidprotected voidSubclasses may override this method to provide dao class footer code.protected voidSubclasses may override this method to provide their own Javadoc.protected voidprotected voidgenerateTable(SchemaDefinition schema, TableDefinition table) protected voidgenerateTable(TableDefinition table, JavaWriter out) protected voidgenerateTableClassFooter(TableDefinition table, JavaWriter out) Subclasses may override this method to provide table class footer code.protected voidgenerateTableClassJavadoc(TableDefinition table, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidGenerating central static table accessprotected voidgenerateTableReferencesClassFooter(SchemaDefinition schema, JavaWriter out) Subclasses may override this method to provide table references class footer code.booleanWhether Tables should be generatedprotected voidgenerateTables(SchemaDefinition schema) booleanWhether table-valued functions should be generated as tables.Whether to generate String in text block format.protected voidgenerateUDT(SchemaDefinition schema, UDTDefinition udt) protected voidgenerateUDT(UDTDefinition udt, JavaWriter out) protected voidgenerateUDTClassFooter(UDTDefinition udt, JavaWriter out) Subclasses may override this method to provide udt class footer code.protected voidgenerateUDTClassJavadoc(UDTDefinition udt, JavaWriter out) Subclasses may override this method to provide their own Javadoc.protected voidprotected voidgenerateUDTInterface(UDTDefinition udt, JavaWriter out) protected voidSubclasses may override this method to provide UDT interface class footer code.protected voidSubclasses may override this method to provide their own Javadoc.protected voidgenerateUDTInterfaceGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own interface getters.protected voidprotected voidgenerateUDTInterfaceSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own interface setters.protected voidgenerateUDTPath(SchemaDefinition schema, UDTDefinition udt) protected voidgenerateUDTPath(UDTDefinition udt, JavaWriter out) protected voidSubclasses may override this method to provide udt class footer code.protected voidSubclasses may override this method to provide their own Javadoc.booleanWhether to generate UDT path expressions on tables and UDTs.protected voidprotected voidgenerateUDTPojo(UDTDefinition udt, JavaWriter out) protected voidSubclasses may override this method to provide UDT POJO class footer code.protected voidSubclasses may override this method to provide their own Javadoc.protected voidgenerateUDTPojoGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own pojo getters.protected voidgenerateUDTPojos(SchemaDefinition schema) protected voidgenerateUDTPojoSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own pojo setters.protected voidprotected voidgenerateUDTRecord(UDTDefinition udt, JavaWriter out) protected voidSubclasses may override this method to provide udt record class footer code.protected voidSubclasses may override this method to provide their own Javadoc.protected voidgenerateUDTRecordGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own record getters.protected voidgenerateUDTRecords(SchemaDefinition schema) Generating UDT record classesprotected voidgenerateUDTRecordSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own record setters.protected voidgenerateUDTReferences(Definition schemaOrPackage) Generating central static udt accessprotected voidgenerateUDTReferencesClassFooter(Definition schemaOrPackage, JavaWriter out) Subclasses may override this method to provide UDT references class footer code.protected voidSubclasses may override this method to provide UDT references class footer code.protected voidgenerateUDTRoutines(SchemaDefinition schema) booleanWhether UDTs should be generated.protected voidgenerateUDTs(SchemaDefinition schema) booleanWhether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.booleanWhether POJO's and records should be annotated with JSR-303 validation annotationsbooleanWhether varargs setters should be generated for array types.TheVisibilityModifierthat should be used in generated code.booleanWhether to generate overrides forTable.where(Condition)and related overloads.booleanA flag indicating whether theXMLtype support should be enabled.protected StringgetArrayBaseType(String javaType) protected FilegetFile(Definition definition) protected FilegetFile(Definition definition, GeneratorStrategy.Mode mode) protected StringgetJavaType(DataTypeDefinition type, JavaWriter out) protected StringgetJavaType(DataTypeDefinition type, JavaWriter out, GeneratorStrategy.Mode udtMode) protected StringgetJavaTypeReference(Database db, DataTypeDefinition type, JavaWriter out) Get this generator's underlying naming strategybooleanWhether the target package should be cleaned to contain only generated code after a generation run.The target directoryThe target encodingThe target locale.protected StringgetType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, String u, String javaType, String defaultType) Deprecated.- 3.9.0 - [#330] - Useinstead.invalid reference
#getType(Database, SchemaDefinition, String, int, int, Name, String, String)protected StringgetType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, String u, String javaType, String defaultType, GeneratorStrategy.Mode udtMode) Deprecated.- 3.9.0 - [#330] - Useinstead.invalid reference
#getType(Database, SchemaDefinition, String, int, int, Name, String, String, Mode)protected StringgetType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, Name u, String javaType, String defaultType) protected StringgetType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, Name u, String javaType, String defaultType, GeneratorStrategy.Mode udtMode) protected StringgetType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, Name u, String javaType, String defaultType, GeneratorStrategy.Mode udtMode, XMLTypeDefinition xmlType) protected StringgetTypeReference(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, int l, boolean n, boolean i, boolean r, String g, QOM.GenerationOption go, String ge, String d, Name u) Deprecated.protected booleanisArrayType(String javaType) protected booleanisObjectArrayType(String javaType) intThe maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.protected JavaWriternewJavaWriter(File file) protected JavaWriternewJavaWriter(File file, GeneratorStrategy.Mode mode) protected JavaWriternewJavaWriter(Definition definition) protected JavaWriternewJavaWriter(Definition definition, GeneratorStrategy.Mode mode) protected voidprintClassAnnotations(JavaWriter out, Definition definition, GeneratorStrategy.Mode mode) protected final voidprintClassAnnotations(JavaWriter out, SchemaDefinition schema) Deprecated.- [#10355] - 3.14.0 - This method is no longer used by the code generator.protected final voidprintClassAnnotations(JavaWriter out, SchemaDefinition schema, CatalogDefinition catalog) Deprecated.- [#10355] - 3.14.0 - This method is no longer used by the code generator.protected voidprintClassJavadoc(JavaWriter out, String comment) protected voidprintClassJavadoc(JavaWriter out, Definition definition) protected voidprintClassJavadoc(JavaWriter out, Definition definition, String comment) protected voidprintColumnJPAAnnotation(JavaWriter out, ColumnDefinition column) protected voidprintColumnValidationAnnotation(JavaWriter out, ColumnDefinition column) Deprecated.- This method is no longer used by the generator.protected voidprintConstant(JavaWriter out, AttributeDefinition constant) protected voidprintConvenienceMethodFunction(JavaWriter out, RoutineDefinition function, boolean instance) protected voidprintConvenienceMethodFunctionAsField(JavaWriter out, RoutineDefinition function, boolean parametersAsField) protected voidprintConvenienceMethodProcedure(JavaWriter out, RoutineDefinition procedure, boolean instance) protected voidprintConvenienceMethodTableValuedFunction(JavaWriter out, TableDefinition function, String methodName) protected voidprintConvenienceMethodTableValuedFunctionAsField(JavaWriter out, TableDefinition function, boolean parametersAsField, String methodName) protected voidSubclasses may override this method to provide alternative DAO constructor annotations, such as DI annotations.protected voidprintDaoConstructorAnnotations(TableDefinition table, JavaWriter out) Subclasses may override this method to provide alternative DAO constructor annotations, such as DI annotations.protected voidprintForeignKey(JavaWriter out, int foreignKeyCounter, ForeignKeyDefinition foreignKey, boolean distributeForeignKey) protected voidprintFromAndInto(JavaWriter out, TableDefinition table) protected voidprintGlobalNamesPackage(JavaWriter out, Definition container, Class<? extends Definition> objectType) protected voidprintGlobalNamesPackageComment(JavaWriter out, Definition container, Class<? extends Definition> objectType) protected voidprintGlobalReferencesPackage(JavaWriter out, Definition container, Class<? extends Definition> objectType) protected voidprintGlobalReferencesPackageComment(JavaWriter out, Definition container, Class<? extends Definition> objectType) protected voidprintIndex(JavaWriter out, int indexCounter, IndexDefinition index, boolean distributeIndexes) protected voidprintKotlinSetterAnnotation(JavaWriter out, TypedElementDefinition<?> column, GeneratorStrategy.Mode mode) protected voidprotected voidprotected voidprintPackage(JavaWriter out, Definition definition) protected voidprintPackage(JavaWriter out, Definition definition, GeneratorStrategy.Mode mode) protected voidprintPackageComment(JavaWriter out, Definition definition, GeneratorStrategy.Mode mode) protected voidprintRecordTypeMethod(JavaWriter out, Definition tableOrUDT) protected voidprintReferences(JavaWriter out, List<? extends Definition> definitions, Class<?> type) protected voidprintRoutine(JavaWriter out, RoutineDefinition routine) protected voidprintSingletonInstance(JavaWriter out, Definition definition) protected voidprintTableJPAAnnotation(JavaWriter out, TableDefinition table) protected voidprintTableValuedFunction(JavaWriter out, TableDefinition table, String javaMethodName) protected voidprintUniqueKey(JavaWriter out, int uniqueKeyCounter, UniqueKeyDefinition uniqueKey, boolean distributeUniqueKeys) protected StringrefExtendsNumberType(JavaWriter out, DataTypeDefinition type) protected StringrefNumberType(JavaWriter out, DataTypeDefinition type) protected JavaTypeResolverresolver(JavaWriter out) protected JavaTypeResolverresolver(JavaWriter out, GeneratorStrategy.Mode mode) voidsetFluentSetters(boolean fluentSetters) Deprecated.voidsetFullyQualifiedTypes(String fullyQualifiedTypes) Deprecated.voidsetGenerateAsMethodOverrides(boolean asMethodOverrides) Whether to generate overrides forTable.as(Name)and related overloads.voidsetGenerateComments(boolean comments) Whether any SQL comments should be generated as Javadoc.voidsetGenerateCommentsOnAttributes(boolean commentsOnAttributes) Whether SQL comments on attributes should be generated as Javadoc.voidsetGenerateCommentsOnCatalogs(boolean commentsOnCatalogs) Whether SQL comments on catalogs should be generated as Javadoc.voidsetGenerateCommentsOnColumns(boolean commentsOnColumns) Whether SQL comments on columns should be generated as Javadoc.voidsetGenerateCommentsOnEmbeddables(boolean generateCommentsOnEmbeddables) Whether SQL comments on embeddables should be generated as Javadoc.voidsetGenerateCommentsOnKeys(boolean commentsOnKeys) Whether SQL comments on keys should be generated as Javadoc.voidsetGenerateCommentsOnLinks(boolean commentsOnLinks) Whether SQL comments on links should be generated as Javadoc.voidsetGenerateCommentsOnPackages(boolean commentsOnPackages) Whether SQL comments on packages should be generated as Javadoc.voidsetGenerateCommentsOnParameters(boolean commentsOnParameters) Whether SQL comments on parameters should be generated as Javadoc.voidsetGenerateCommentsOnQueues(boolean commentsOnQueues) Whether SQL comments on queues should be generated as Javadoc.voidsetGenerateCommentsOnRoutines(boolean commentsOnRoutines) Whether SQL comments on routines should be generated as Javadoc.voidsetGenerateCommentsOnSchemas(boolean commentsOnSchemas) Whether SQL comments on schemas should be generated as Javadoc.voidsetGenerateCommentsOnSequences(boolean commentsOnSequences) Whether SQL comments on sequences should be generated as Javadoc.voidsetGenerateCommentsOnTables(boolean commentsOnTables) Whether SQL comments on tables should be generated as Javadoc.voidsetGenerateCommentsOnUDTs(boolean commentsOnUDTs) Whether SQL comments on UDTs should be generated as Javadoc.voidsetGenerateConstructorPropertiesAnnotation(boolean generateConstructorPropertiesAnnotation) Whether theConstructorPropertiesannotation should be generated.voidsetGenerateConstructorPropertiesAnnotationOnPojos(boolean generateConstructorPropertiesAnnotationOnPojos) Whether theConstructorPropertiesannotation should be generated on POJOs.voidsetGenerateConstructorPropertiesAnnotationOnRecords(boolean generateConstructorPropertiesAnnotationOnRecords) Whether theConstructorPropertiesannotation should be generated on records.voidsetGenerateDaos(boolean generateDaos) Whether DAO's should be generated in addition to pojosvoidsetGenerateDefaultCatalog(boolean defaultCatalog) Whether default catalog instances should be generatedvoidsetGenerateDefaultSchema(boolean defaultSchema) Whether default schema instances should be generatedvoidsetGenerateDeprecated(boolean generateDeprecated) Whether deprecated code should be generatedvoidsetGenerateDeprecationOnUnknownTypes(boolean generateDeprecationOnUnknownTypes) Whether deprecation should be generated on unknown types.voidsetGeneratedNonnullAnnotationType(String generatedNonnullAnnotationType) Which type of Nonnull annotation should be generated.voidsetGeneratedNullableAnnotationType(String generatedNullableAnnotationType) Which type of Nullable annotation should be generated.voidsetGenerateEmbeddables(boolean generateEmbeddables) Whether embeddable types should be generatedvoidsetGenerateEmptyCatalogs(boolean generateEmptyCatalogs) Whether empty catalogs should still be generated.voidsetGenerateEmptySchemas(boolean generateEmptySchemas) Whether empty schemas should still be generated.voidsetGenerateEnumsAsScalaSealedTraits(boolean generateEnumsAsScalaSealedTraits) Whether enums generated as Scala sealed traits by theScalaGenerator.voidsetGenerateFluentSetters(boolean fluentSetters) Whether fluent setters should be generatedvoidsetGenerateFullyQualifiedTypes(String generateFullyQualifiedTypes) A regular expression matching all the types in generated code that should be fully qualified.voidsetGenerateGeneratedAnnotation(boolean generateGeneratedAnnotation) Whether theGeneratedannotation should be generated.voidsetGenerateGeneratedAnnotationDate(boolean generateGeneratedAnnotationDate) Whether theGeneratedannotation should include thedateattribute.voidsetGenerateGeneratedAnnotationJooqVersion(boolean generateGeneratedAnnotationJooqVersion) Whether theGeneratedannotation should include the jOOQ version.voidsetGenerateGeneratedAnnotationType(GeneratedAnnotationType generateGeneratedAnnotationType) Whether theGeneratedannotation should be generated.voidsetGenerateGeneratedSerialVersionUID(GeneratedSerialVersionUID generatedSerialVersionUID) The type ofserialVersionUIDthat should be generated.voidsetGenerateGlobalCatalogReferences(boolean globalCatalogReferences) Whether global catalog references should be generatedvoidsetGenerateGlobalDomainReferences(boolean globalDomainReferences) Whether global domain references should be generatedvoidsetGenerateGlobalIndexReferences(boolean globalIndexReferences) Whether global index references should be generatedvoidsetGenerateGlobalKeyReferences(boolean globalKeyReferences) Whether global key references should be generatedvoidsetGenerateGlobalLinkReferences(boolean globalLinkReferences) Whether global link references should be generatedvoidsetGenerateGlobalObjectNames(boolean generateGlobalObjectNames) Whether global object names should be generatedvoidsetGenerateGlobalObjectReferences(boolean generateGlobalObjectReferences) Whether global object references should be generatedvoidsetGenerateGlobalQueueReferences(boolean globalQueueReferences) Whether global queue references should be generatedvoidsetGenerateGlobalRoutineReferences(boolean generateGlobalRoutineReferences) Whether global routine references should be generatedvoidsetGenerateGlobalSchemaReferences(boolean globalSchemaReferences) Whether global schema references should be generatedvoidsetGenerateGlobalSequenceReferences(boolean generateGlobalSequenceReferences) Whether global sequence references should be generatedvoidsetGenerateGlobalTableReferences(boolean generateGlobalTableReferences) Whether global table references should be generatedvoidsetGenerateGlobalUDTReferences(boolean generateGlobalUDTReferences) Whether global UDT references should be generatedvoidsetGenerateImmutableInterfaces(boolean generateImmutableInterfaces) Whether immutable interfaces should be generated in addition to recordsvoidsetGenerateImmutablePojos(boolean generateImmutablePojos) Whether immutable POJO's should be generated in addition to recordsvoidsetGenerateImplicitJoinPathsAsKotlinProperties(boolean generateImplicitJoinPathsAsKotlinProperties) Whether implicit join path constructors should be offered as properties in Kotlin.voidsetGenerateImplicitJoinPathsToMany(boolean generateImplicitJoinPathsToMany) Whether implicit join path constructors on generated tables for incoming foreign key relationships (to-many relationships) should be generated.voidsetGenerateImplicitJoinPathsToOne(boolean generateImplicitJoinPathsToOne) Whether implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) should be generated.voidsetGenerateImplicitJoinPathTableSubtypes(boolean generateImplicitJoinPathTableSubtypes) Whether to generate implicit join path table subtypes implementingPathfor increased JOIN convenience.voidsetGenerateImplicitJoinPathUnusedConstructors(boolean generateImplicitJoinPathUnusedConstructors) Whether implicit join path constructors should also be generated if there isn't any outgoing or incoming foreign key relationship.voidsetGenerateIndentation(String indentation) The indentation character(s) to be used in generated code.voidsetGenerateIndexes(boolean generateIndexes) Whether indexes should be generated.voidsetGenerateInstanceFields(boolean generateInstanceFields) Whether instance fields should be generated (as opposed to static fields).voidsetGenerateInterfaces(boolean generateInterfaces) Whether interfaces should be generated to be implemented by records and POJO'svoidsetGenerateIntervalTypes(boolean generateIntervalTypes) A flag indicating whether theIntervaltype support should be enabled.voidsetGenerateJavaBeansGettersAndSetters(boolean javaBeansGettersAndSetters) Whether getters and setters should be generated JavaBeans style (or jOOQ style).voidsetGenerateJavadoc(boolean javadoc) Whether any Javadoc should be generated.voidsetGenerateJavaTimeTypes(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.voidsetGenerateJooqVersionReference(boolean generateJooqVersionReference) Whether generated objects should reference the runtime jOOQ version inConstants, to help debug code generator / runtime version mismatches.voidsetGenerateJPAAnnotations(boolean generateJPAAnnotations) Whether POJO's and records should be annotated with JPA annotationsvoidsetGenerateJPAVersion(String generateJPAVersion) The minimum JPA version that is supported by generated code (latest version if empty).voidsetGenerateJsonTypes(boolean generateJsonTypes) voidsetGenerateKeys(boolean keys) Whether key related code should be generatedvoidsetGenerateKotlinDefaultedNullablePojoAttributes(boolean generateKotlinDefaultedNullablePojoAttributes) Generate defaulted nullable POJO attributes.voidsetGenerateKotlinDefaultedNullableRecordAttributes(boolean generateKotlinDefaultedNullableRecordAttributes) Generate defaulted nullable Record attributes.voidsetGenerateKotlinNotNullInterfaceAttributes(boolean generateKotlinNotNullInterfaceAttributes) Generate non-nullable types on interface attributes, where column is not null.voidsetGenerateKotlinNotNullPojoAttributes(boolean generateKotlinNotNullPojoAttributes) Generate non-nullable types on POJO attributes, where column is not null.voidsetGenerateKotlinNotNullRecordAttributes(boolean generateKotlinNotNullRecordAttributes) Generate non-nullable types on Record attributes, where column is not null.voidsetGenerateKotlinSetterJvmNameAnnotationsOnIsPrefix(boolean generateKotlinSetterJvmNameAnnotationsOnIsPrefix) Whether kotlin mutable properties should be annotated withset:JvmNameas a workaround for problems occurring when kotlin producessetX()instead ofsetIsX()setters for anisXproperty.voidsetGenerateLinks(boolean links) Whether link related code should be generatedvoidsetGenerateNewline(String newline) The newline character(s) to be used in generated code.voidsetGenerateNonnullAnnotation(boolean generateNonnullAnnotation) Whether Nonnull annotations should be generated.voidsetGenerateNullableAnnotation(boolean generateNullableAnnotation) Whether Nullable annotations should be generated.voidsetGeneratePojos(boolean generatePojos) Whether POJO's should be generated in addition to recordsvoidsetGeneratePojosAsJavaRecordClasses(boolean pojosAsJavaRecordClasses) Whether POJOs should be generated as Java records by theJavaGenerator.voidsetGeneratePojosAsKotlinDataClasses(boolean pojosAsKotlinDataClasses) Whether POJOs should be generated as Kotlin data classes by theKotlinGenerator.voidsetGeneratePojosAsScalaCaseClasses(boolean pojosAsScalaCaseClasses) Whether POJOs should be generated as Scala case classes by theScalaGenerator.voidsetGeneratePojosEqualsAndHashCode(boolean generatePojosEqualsAndHashCode) Whetherequals()andhashCode()methods should be generated on POJOsvoidsetGeneratePojosToString(boolean generatePojosToString) Whether atoString()method should be generated on POJOsvoidsetGeneratePrintMarginForBlockComment(int printMarginForBlockComment) The print margin for Javadoc and other block comments to be used in generated code.voidsetGenerateQueues(boolean queues) Whether queue related code should be generatedvoidsetGenerateRecords(boolean generateRecords) Whether TableRecords should be generated in addition to tablesvoidsetGenerateRecordsImplementingRecordN(boolean generateRecordsImplementingRecordN) Whether TableRecords should be generated in addition to tables, which implement Record[N] typesvoidsetGenerateRelations(boolean generateRelations) Whether foreign key relations should be resolvedvoidsetGenerateRenameMethodOverrides(boolean renameMethodOverrides) Whether to generate overrides forand related overloads (see https://github.com/jOOQ/jOOQ/issues/13937).invalid reference
Table#rename(Name)voidsetGenerateRoutines(boolean generateRoutines) Whether Routines should be generated.voidsetGenerateSequenceFlags(boolean generateSequenceFlags) Whether sequence flags should be generated.voidsetGenerateSequences(boolean generateSequences) Whether Sequences should be generated.voidsetGenerateSerializableInterfaces(boolean generateSerializableInterfaces) Whether generated interfaces should extendSerializable.voidsetGenerateSerializablePojos(boolean generateSerializablePojos) Whether generated POJO's should beSerializable.voidsetGenerateSources(boolean sources) Whether source code should be generated on any object type.voidsetGenerateSourcesOnViews(boolean sourcesOnViews) Whether source code should be generated on views.voidsetGenerateSpatialTypes(boolean generateSpatialTypes) A flag indicating whether theSpatialtype support should be enabled.voidsetGenerateSpringAnnotations(boolean generateSpringAnnotations) Whether DAOs should be annotated with useful spring annotations such as@Repositoryor@AutowiredvoidsetGenerateSpringDao(boolean generateSpringDao) Whether a Spring specificDAOImplsubclass should be generated, which may contain Spring specific stuff, such as the@Transactionalannotation (ifGenerator.generateSpringAnnotations()is set).voidsetGenerateTables(boolean generateTables) Whether Tables should be generatedvoidsetGenerateTableValuedFunctions(boolean generateTableValuedFunctions) Whether table-valued functions should be generated as tables.voidsetGenerateTextBlocks(GeneratedTextBlocks textBlocks) Whether to generate String in text block format.voidsetGenerateUDTPaths(boolean generateUDTPaths) Whether to generate UDT path expressions on tables and UDTs.voidsetGenerateUDTs(boolean generateUDTs) Whether UDTs should be generated.voidsetGenerateUseTableNameForUnambiguousFKs(boolean useTableNameForUnambiguousFKs) Whether names of unambiguousForeignKeyDefinitionshould be based on the referencedTableDefinition.voidsetGenerateValidationAnnotations(boolean generateValidationAnnotations) Whether POJO's and records should be annotated with JSR-303 validation annotationsvoidsetGenerateVarargsSetters(boolean varargsSetters) Whether varargs setters should be generated for array types.voidsetGenerateVisibilityModifier(VisibilityModifier generateVisibilityModifier) TheVisibilityModifierthat should be used in generated code.voidsetGenerateWhereMethodOverrides(boolean whereMethodOverrides) Whether to generate overrides forTable.where(Condition)and related overloads.voidsetGenerateXmlTypes(boolean generateXmlTypes) A flag indicating whether theXMLtype support should be enabled.voidsetMaxMembersPerInitialiser(int maxMembersPerInitialiser) The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.voidsetStrategy(GeneratorStrategy strategy) Set a naming strategy to this generatorvoidsetTargetClean(boolean clean) Whether the target package should be cleaned to contain only generated code after a generation run.voidsetTargetDirectory(String directory) Initialise the target directoryvoidsetTargetEncoding(String encoding) Initialise the target encodingvoidsetTargetLocale(Locale targetLocale) The target locale.voidsetTargetPackage(String packageName) Initialise the target package namevoidsetUseCatalogVersionProvider(boolean useCatalogVersionProvider) voidsetUseSchemaVersionProvider(boolean useSchemaVersionProvider) booleanboolean
-
Field Details
-
strategy
protected org.jooq.codegen.GeneratorStrategyWrapper strategy -
targetEncoding
-
targetClean
protected boolean targetClean
-
-
Constructor Details
-
JavaGenerator
public JavaGenerator()
-
-
Method Details
-
generate0
-
generateRelations
-
generateIndexes
-
printIndex
protected void printIndex(JavaWriter out, int indexCounter, IndexDefinition index, boolean distributeIndexes) -
printUniqueKey
protected void printUniqueKey(JavaWriter out, int uniqueKeyCounter, UniqueKeyDefinition uniqueKey, boolean distributeUniqueKeys) -
printForeignKey
protected void printForeignKey(JavaWriter out, int foreignKeyCounter, ForeignKeyDefinition foreignKey, boolean distributeForeignKey) -
generateRecords
-
generateRecord
-
generateUDTRecord
-
generateRecord
-
generateUDTRecord
-
generateRecordSetter
Subclasses may override this method to provide their own record setters. -
generateEmbeddableSetter
protected void generateEmbeddableSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own embeddable setters. -
generateUDTRecordSetter
Subclasses may override this method to provide their own record setters. -
generateEmbeddableRecordSetter
protected void generateEmbeddableRecordSetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own record getters for embeddables. -
generateRecordGetter
Subclasses may override this method to provide their own record getters. -
generateEmbeddableGetter
protected void generateEmbeddableGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own embeddable getters. -
generateUDTRecordGetter
Subclasses may override this method to provide their own record getters. -
generateEmbeddableRecordGetter
protected void generateEmbeddableRecordGetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own record getters for embeddables. -
generateRecordClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateEmbeddableClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateInterfaces
-
generateInterface
-
generateUDTInterface
-
generateEmbeddableInterface
-
generateInterface
-
generateUDTInterface
-
generateInterfaceSetter
Subclasses may override this method to provide their own interface setters. -
generateEmbeddableInterfaceSetter
protected void generateEmbeddableInterfaceSetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own interface setters. -
generateUDTInterfaceSetter
protected void generateUDTInterfaceSetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own interface setters. -
generateInterfaceGetter
Subclasses may override this method to provide their own interface getters. -
generateEmbeddableInterfaceGetter
protected void generateEmbeddableInterfaceGetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own interface getters. -
generateUDTInterfaceGetter
protected void generateUDTInterfaceGetter(TypedElementDefinition<?> column, int index, JavaWriter out) Subclasses may override this method to provide their own interface getters. -
generateInterfaceClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateUDTs
-
generateUDT
-
generateUDT
-
generateUDTClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateUDTPath
-
generateUDTPath
-
generateUDTPathClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateUDTPojos
-
generateUDTPojoClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateUDTInterfaces
-
generateUDTInterfaceClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateUDTRecords
Generating UDT record classes -
generateUDTRecordClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateUDTRoutines
-
generateUDTReferences
Generating central static udt access -
generateDomainReferences
Generating central static domain access -
generateArrays
-
generateArray
-
generateArray
-
generateArrayClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateEnums
-
generateDomains
Deprecated.- [#681] - 3.14.0 - This method is no longer being called -
generateEnum
-
generateEnum
-
generateEnumClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateDomain
Deprecated.- [#681] - 3.14.0 - This method is no longer being called -
generateDomain
Deprecated.- [#681] - 3.14.0 - This method is no longer being called -
generateDomainClassJavadoc
Deprecated.- [#681] - 3.14.0 - This method is no longer being called -
generateRoutines
-
printConstant
-
printRoutine
-
printTableValuedFunction
protected void printTableValuedFunction(JavaWriter out, TableDefinition table, String javaMethodName) -
generatePackages
-
generatePackage
-
generatePackage
-
generatePackageClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateTableReferences
Generating central static table access -
generateSyntheticDaos
-
generateSyntheticDao
-
generateSyntheticDao
-
printDaoConstructorAnnotations
Subclasses may override this method to provide alternative DAO constructor annotations, such as DI annotations. [#10801] -
generateSyntheticDaoClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateDaos
-
generateSpringDao
-
generateSpringDao
-
generateDao
-
generateDao
-
printDaoConstructorAnnotations
Subclasses may override this method to provide alternative DAO constructor annotations, such as DI annotations. [#10801] -
generateDaoClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generatePojos
-
generatePojo
-
generateEmbeddablePojo
-
generateUDTPojo
-
generatePojo
-
generateUDTPojo
-
generatePojoMultiConstructor
Subclasses may override this method to provide their own pojo copy constructors. -
generatePojoCopyConstructor
Subclasses may override this method to provide their own pojo copy constructors. -
generatePojoDefaultConstructor
Subclasses may override this method to provide their own pojo default constructors. -
generatePojoGetter
Subclasses may override this method to provide their own pojo getters. -
generateEmbeddablePojoGetter
protected void generateEmbeddablePojoGetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own pojo getters. -
generateUDTPojoGetter
Subclasses may override this method to provide their own pojo getters. -
generatePojoSetter
Subclasses may override this method to provide their own pojo setters. -
generateEmbeddablePojoSetter
protected void generateEmbeddablePojoSetter(EmbeddableDefinition embeddable, int index, JavaWriter out) Subclasses may override this method to provide their own pojo setters. -
generateUDTPojoSetter
Subclasses may override this method to provide their own pojo setters. -
generatePojoEqualsAndHashCode
-
generatePojoToString
-
generatePojoClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateTables
-
generateTable
-
generateTable
-
generateEmbeddables
-
generateEmbeddable
-
generateEmbeddablePojos
-
generateEmbeddablePojoClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateEmbeddableInterfaces
-
generateEmbeddableInterfaceClassJavadoc
protected void generateEmbeddableInterfaceClassJavadoc(EmbeddableDefinition embeddable, JavaWriter out) Subclasses may override this method to provide their own Javadoc. -
generateTableClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateSequences
-
generateGlobalObjectNames
protected void generateGlobalObjectNames(Definition container, Class<? extends Definition> objectType) -
generateCatalog
-
generateCatalog
-
generateCatalogClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
generateSchema
-
generateSchema
-
generateSchemaClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
printFromAndInto
-
printReferences
protected void printReferences(JavaWriter out, List<? extends Definition> definitions, Class<?> type) -
printTableJPAAnnotation
-
printColumnJPAAnnotation
-
printColumnValidationAnnotation
Deprecated.- This method is no longer used by the generator. -
printKotlinSetterAnnotation
protected void printKotlinSetterAnnotation(JavaWriter out, TypedElementDefinition<?> column, GeneratorStrategy.Mode mode) -
printNullableAnnotation
-
printNonnullAnnotation
-
generateRoutine
-
generateRoutine
-
generateRoutineClassJavadoc
Subclasses may override this method to provide their own Javadoc. -
printConvenienceMethodFunctionAsField
protected void printConvenienceMethodFunctionAsField(JavaWriter out, RoutineDefinition function, boolean parametersAsField) -
printConvenienceMethodTableValuedFunctionAsField
protected void printConvenienceMethodTableValuedFunctionAsField(JavaWriter out, TableDefinition function, boolean parametersAsField, String methodName) -
printConvenienceMethodFunction
protected void printConvenienceMethodFunction(JavaWriter out, RoutineDefinition function, boolean instance) -
printConvenienceMethodProcedure
protected void printConvenienceMethodProcedure(JavaWriter out, RoutineDefinition procedure, boolean instance) -
printConvenienceMethodTableValuedFunction
protected void printConvenienceMethodTableValuedFunction(JavaWriter out, TableDefinition function, String methodName) -
printRecordTypeMethod
-
printSingletonInstance
-
escapeEntities
-
printClassJavadoc
-
printClassJavadoc
-
printClassJavadoc
-
printClassAnnotations
Deprecated.- [#10355] - 3.14.0 - This method is no longer used by the code generator. Use aprintClassAnnotations(JavaWriter, Definition, Mode)instead. -
printClassAnnotations
@Deprecated protected final void printClassAnnotations(JavaWriter out, SchemaDefinition schema, CatalogDefinition catalog) Deprecated.- [#10355] - 3.14.0 - This method is no longer used by the code generator. Use aprintClassAnnotations(JavaWriter, Definition, Mode)instead. -
printClassAnnotations
protected void printClassAnnotations(JavaWriter out, Definition definition, GeneratorStrategy.Mode mode) -
printPackage
-
printPackage
-
printGlobalNamesPackage
protected void printGlobalNamesPackage(JavaWriter out, Definition container, Class<? extends Definition> objectType) -
printGlobalReferencesPackage
protected void printGlobalReferencesPackage(JavaWriter out, Definition container, Class<? extends Definition> objectType) -
printPackageComment
protected void printPackageComment(JavaWriter out, Definition definition, GeneratorStrategy.Mode mode) -
printGlobalNamesPackageComment
protected void printGlobalNamesPackageComment(JavaWriter out, Definition container, Class<? extends Definition> objectType) -
printGlobalReferencesPackageComment
protected void printGlobalReferencesPackageComment(JavaWriter out, Definition container, Class<? extends Definition> objectType) -
refExtendsNumberType
-
refNumberType
-
getJavaTypeReference
-
resolver
-
resolver
-
isObjectArrayType
-
isArrayType
-
getArrayBaseType
-
getJavaType
-
getJavaType
protected String getJavaType(DataTypeDefinition type, JavaWriter out, GeneratorStrategy.Mode udtMode) -
getType
@Deprecated protected String getType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, String u, String javaType, String defaultType) Deprecated.- 3.9.0 - [#330] - Useinstead.invalid reference
#getType(Database, SchemaDefinition, String, int, int, Name, String, String) -
getType
protected String getType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, Name u, String javaType, String defaultType) -
getType
@Deprecated protected String getType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, String u, String javaType, String defaultType, GeneratorStrategy.Mode udtMode) Deprecated.- 3.9.0 - [#330] - Useinstead.invalid reference
#getType(Database, SchemaDefinition, String, int, int, Name, String, String, Mode) -
getType
protected String getType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, Name u, String javaType, String defaultType, GeneratorStrategy.Mode udtMode) -
getType
protected String getType(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, Name u, String javaType, String defaultType, GeneratorStrategy.Mode udtMode, XMLTypeDefinition xmlType) -
getTypeReference
@Deprecated protected String getTypeReference(Database db, SchemaDefinition schema, JavaWriter out, String t, int p, int s, int l, boolean n, boolean i, boolean r, String g, QOM.GenerationOption go, String ge, String d, Name u) Deprecated. -
newJavaWriter
-
newJavaWriter
-
newJavaWriter
-
newJavaWriter
-
getFile
-
getFile
-
closeJavaWriter
-
generate
Description copied from interface:GeneratorDo the code generation -
setStrategy
Description copied from interface:GeneratorSet a naming strategy to this generator- Specified by:
setStrategyin interfaceGenerator
-
getStrategy
Description copied from interface:GeneratorGet this generator's underlying naming strategy- Specified by:
getStrategyin interfaceGenerator
-
generateDeprecated
public boolean generateDeprecated()Description copied from interface:GeneratorWhether deprecated code should be generated- Specified by:
generateDeprecatedin interfaceGenerator
-
setGenerateDeprecated
public void setGenerateDeprecated(boolean generateDeprecated) Description copied from interface:GeneratorWhether deprecated code should be generated- Specified by:
setGenerateDeprecatedin interfaceGenerator
-
generateDeprecationOnUnknownTypes
public boolean generateDeprecationOnUnknownTypes()Description copied from interface:GeneratorWhether deprecation should be generated on unknown types.- Specified by:
generateDeprecationOnUnknownTypesin interfaceGenerator
-
setGenerateDeprecationOnUnknownTypes
public void setGenerateDeprecationOnUnknownTypes(boolean generateDeprecationOnUnknownTypes) Description copied from interface:GeneratorWhether deprecation should be generated on unknown types.- Specified by:
setGenerateDeprecationOnUnknownTypesin interfaceGenerator
-
generateIndexes
public boolean generateIndexes()Description copied from interface:GeneratorWhether indexes should be generated.- Specified by:
generateIndexesin interfaceGenerator
-
setGenerateIndexes
public void setGenerateIndexes(boolean generateIndexes) Description copied from interface:GeneratorWhether indexes should be generated.- Specified by:
setGenerateIndexesin interfaceGenerator
-
generateRelations
public boolean generateRelations()Description copied from interface:GeneratorWhether foreign key relations should be resolved- Specified by:
generateRelationsin interfaceGenerator
-
setGenerateRelations
public void setGenerateRelations(boolean generateRelations) Description copied from interface:GeneratorWhether foreign key relations should be resolved- Specified by:
setGenerateRelationsin interfaceGenerator
-
generateUDTPaths
public boolean generateUDTPaths()Description copied from interface:GeneratorWhether to generate UDT path expressions on tables and UDTs.- Specified by:
generateUDTPathsin interfaceGenerator
-
setGenerateUDTPaths
public void setGenerateUDTPaths(boolean generateUDTPaths) Description copied from interface:GeneratorWhether to generate UDT path expressions on tables and UDTs.- Specified by:
setGenerateUDTPathsin interfaceGenerator
-
generateImplicitJoinPathsToOne
public boolean generateImplicitJoinPathsToOne()Description copied from interface:GeneratorWhether implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) should be generated.- Specified by:
generateImplicitJoinPathsToOnein interfaceGenerator
-
setGenerateImplicitJoinPathsToOne
public void setGenerateImplicitJoinPathsToOne(boolean generateImplicitJoinPathsToOne) Description copied from interface:GeneratorWhether implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships) should be generated.- Specified by:
setGenerateImplicitJoinPathsToOnein interfaceGenerator
-
generateImplicitJoinPathsToMany
public boolean generateImplicitJoinPathsToMany()Description copied from interface:GeneratorWhether implicit join path constructors on generated tables for incoming foreign key relationships (to-many relationships) should be generated.- Specified by:
generateImplicitJoinPathsToManyin interfaceGenerator
-
setGenerateImplicitJoinPathsToMany
public void setGenerateImplicitJoinPathsToMany(boolean generateImplicitJoinPathsToMany) Description copied from interface:GeneratorWhether implicit join path constructors on generated tables for incoming foreign key relationships (to-many relationships) should be generated.- Specified by:
setGenerateImplicitJoinPathsToManyin interfaceGenerator
-
generateImplicitJoinPathTableSubtypes
public boolean generateImplicitJoinPathTableSubtypes()Description copied from interface:GeneratorWhether to generate implicit join path table subtypes implementingPathfor increased JOIN convenience.- Specified by:
generateImplicitJoinPathTableSubtypesin interfaceGenerator
-
setGenerateImplicitJoinPathTableSubtypes
public void setGenerateImplicitJoinPathTableSubtypes(boolean generateImplicitJoinPathTableSubtypes) Description copied from interface:GeneratorWhether to generate implicit join path table subtypes implementingPathfor increased JOIN convenience.- Specified by:
setGenerateImplicitJoinPathTableSubtypesin interfaceGenerator
-
generateImplicitJoinPathUnusedConstructors
public boolean generateImplicitJoinPathUnusedConstructors()Description copied from interface:GeneratorWhether implicit join path constructors should also be generated if there isn't any outgoing or incoming foreign key relationship.- Specified by:
generateImplicitJoinPathUnusedConstructorsin interfaceGenerator
-
setGenerateImplicitJoinPathUnusedConstructors
public void setGenerateImplicitJoinPathUnusedConstructors(boolean generateImplicitJoinPathUnusedConstructors) Description copied from interface:GeneratorWhether implicit join path constructors should also be generated if there isn't any outgoing or incoming foreign key relationship.- Specified by:
setGenerateImplicitJoinPathUnusedConstructorsin interfaceGenerator
-
generateImplicitJoinPathsAsKotlinProperties
public boolean generateImplicitJoinPathsAsKotlinProperties()Description copied from interface:GeneratorWhether implicit join path constructors should be offered as properties in Kotlin.- Specified by:
generateImplicitJoinPathsAsKotlinPropertiesin interfaceGenerator
-
setGenerateImplicitJoinPathsAsKotlinProperties
public void setGenerateImplicitJoinPathsAsKotlinProperties(boolean generateImplicitJoinPathsAsKotlinProperties) Description copied from interface:GeneratorWhether implicit join path constructors should be offered as properties in Kotlin.- Specified by:
setGenerateImplicitJoinPathsAsKotlinPropertiesin interfaceGenerator
-
generateTableValuedFunctions
public boolean generateTableValuedFunctions()Description copied from interface:GeneratorWhether table-valued functions should be generated as tables.- Specified by:
generateTableValuedFunctionsin interfaceGenerator
-
setGenerateTableValuedFunctions
public void setGenerateTableValuedFunctions(boolean generateTableValuedFunctions) Description copied from interface:GeneratorWhether table-valued functions should be generated as tables.- Specified by:
setGenerateTableValuedFunctionsin interfaceGenerator
-
generateInstanceFields
public boolean generateInstanceFields()Description copied from interface:GeneratorWhether instance fields should be generated (as opposed to static fields).- Specified by:
generateInstanceFieldsin interfaceGenerator
-
setGenerateInstanceFields
public void setGenerateInstanceFields(boolean generateInstanceFields) Description copied from interface:GeneratorWhether instance fields should be generated (as opposed to static fields).- Specified by:
setGenerateInstanceFieldsin interfaceGenerator
-
setGenerateVisibilityModifier
Description copied from interface:GeneratorTheVisibilityModifierthat should be used in generated code.- Specified by:
setGenerateVisibilityModifierin interfaceGenerator
-
generateVisibilityModifier
Description copied from interface:GeneratorTheVisibilityModifierthat should be used in generated code.- Specified by:
generateVisibilityModifierin interfaceGenerator
-
generateGeneratedAnnotation
public boolean generateGeneratedAnnotation()Description copied from interface:GeneratorWhether theGeneratedannotation should be generated.- Specified by:
generateGeneratedAnnotationin interfaceGenerator
-
setGenerateGeneratedAnnotation
public void setGenerateGeneratedAnnotation(boolean generateGeneratedAnnotation) Description copied from interface:GeneratorWhether theGeneratedannotation should be generated.- Specified by:
setGenerateGeneratedAnnotationin interfaceGenerator
-
generateGeneratedAnnotationType
Description copied from interface:GeneratorWhether theGeneratedannotation should be generated.- Specified by:
generateGeneratedAnnotationTypein interfaceGenerator
-
setGenerateGeneratedAnnotationType
public void setGenerateGeneratedAnnotationType(GeneratedAnnotationType generateGeneratedAnnotationType) Description copied from interface:GeneratorWhether theGeneratedannotation should be generated.- Specified by:
setGenerateGeneratedAnnotationTypein interfaceGenerator
-
generateGeneratedAnnotationDate
public boolean generateGeneratedAnnotationDate()Description copied from interface:GeneratorWhether theGeneratedannotation should include thedateattribute.- Specified by:
generateGeneratedAnnotationDatein interfaceGenerator
-
setGenerateGeneratedAnnotationDate
public void setGenerateGeneratedAnnotationDate(boolean generateGeneratedAnnotationDate) Description copied from interface:GeneratorWhether theGeneratedannotation should include thedateattribute.- Specified by:
setGenerateGeneratedAnnotationDatein interfaceGenerator
-
generateGeneratedAnnotationJooqVersion
public boolean generateGeneratedAnnotationJooqVersion()Description copied from interface:GeneratorWhether theGeneratedannotation should include the jOOQ version.- Specified by:
generateGeneratedAnnotationJooqVersionin interfaceGenerator
-
setGenerateGeneratedAnnotationJooqVersion
public void setGenerateGeneratedAnnotationJooqVersion(boolean generateGeneratedAnnotationJooqVersion) Description copied from interface:GeneratorWhether theGeneratedannotation should include the jOOQ version.- Specified by:
setGenerateGeneratedAnnotationJooqVersionin interfaceGenerator
-
generateNonnullAnnotation
public boolean generateNonnullAnnotation()Description copied from interface:GeneratorWhether 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:
generateNonnullAnnotationin interfaceGenerator
-
setGenerateNonnullAnnotation
public void setGenerateNonnullAnnotation(boolean generateNonnullAnnotation) Description copied from interface:GeneratorWhether 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:
setGenerateNonnullAnnotationin interfaceGenerator
-
generatedNonnullAnnotationType
Description copied from interface:GeneratorWhich type of Nonnull annotation should be generated.- Specified by:
generatedNonnullAnnotationTypein interfaceGenerator
-
setGeneratedNonnullAnnotationType
Description copied from interface:GeneratorWhich type of Nonnull annotation should be generated.- Specified by:
setGeneratedNonnullAnnotationTypein interfaceGenerator
-
generateNullableAnnotation
public boolean generateNullableAnnotation()Description copied from interface:GeneratorWhether 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:
generateNullableAnnotationin interfaceGenerator
-
setGenerateNullableAnnotation
public void setGenerateNullableAnnotation(boolean generateNullableAnnotation) Description copied from interface:GeneratorWhether 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:
setGenerateNullableAnnotationin interfaceGenerator
-
generatedNullableAnnotationType
Description copied from interface:GeneratorWhich type of Nullable annotation should be generated.- Specified by:
generatedNullableAnnotationTypein interfaceGenerator
-
setGeneratedNullableAnnotationType
Description copied from interface:GeneratorWhich type of Nullable annotation should be generated.- Specified by:
setGeneratedNullableAnnotationTypein interfaceGenerator
-
setGenerateConstructorPropertiesAnnotation
public void setGenerateConstructorPropertiesAnnotation(boolean generateConstructorPropertiesAnnotation) Description copied from interface:GeneratorWhether theConstructorPropertiesannotation should be generated.- Specified by:
setGenerateConstructorPropertiesAnnotationin interfaceGenerator
-
generateConstructorPropertiesAnnotation
public boolean generateConstructorPropertiesAnnotation()Description copied from interface:GeneratorWhether theConstructorPropertiesannotation should be generated.- Specified by:
generateConstructorPropertiesAnnotationin interfaceGenerator
-
setGenerateConstructorPropertiesAnnotationOnPojos
public void setGenerateConstructorPropertiesAnnotationOnPojos(boolean generateConstructorPropertiesAnnotationOnPojos) Description copied from interface:GeneratorWhether theConstructorPropertiesannotation should be generated on POJOs.- Specified by:
setGenerateConstructorPropertiesAnnotationOnPojosin interfaceGenerator
-
generateConstructorPropertiesAnnotationOnPojos
public boolean generateConstructorPropertiesAnnotationOnPojos()Description copied from interface:GeneratorWhether theConstructorPropertiesannotation should be generated on POJOs.- Specified by:
generateConstructorPropertiesAnnotationOnPojosin interfaceGenerator
-
setGenerateConstructorPropertiesAnnotationOnRecords
public void setGenerateConstructorPropertiesAnnotationOnRecords(boolean generateConstructorPropertiesAnnotationOnRecords) Description copied from interface:GeneratorWhether theConstructorPropertiesannotation should be generated on records.- Specified by:
setGenerateConstructorPropertiesAnnotationOnRecordsin interfaceGenerator
-
generateConstructorPropertiesAnnotationOnRecords
public boolean generateConstructorPropertiesAnnotationOnRecords()Description copied from interface:GeneratorWhether theConstructorPropertiesannotation should be generated on records.- Specified by:
generateConstructorPropertiesAnnotationOnRecordsin interfaceGenerator
-
useSchemaVersionProvider
public boolean useSchemaVersionProvider()- Specified by:
useSchemaVersionProviderin interfaceGenerator
-
setUseSchemaVersionProvider
public void setUseSchemaVersionProvider(boolean useSchemaVersionProvider) - Specified by:
setUseSchemaVersionProviderin interfaceGenerator
-
useCatalogVersionProvider
public boolean useCatalogVersionProvider()- Specified by:
useCatalogVersionProviderin interfaceGenerator
-
setUseCatalogVersionProvider
public void setUseCatalogVersionProvider(boolean useCatalogVersionProvider) - Specified by:
setUseCatalogVersionProviderin interfaceGenerator
-
generateRoutines
public boolean generateRoutines()Description copied from interface:GeneratorWhether Routines should be generated.- Specified by:
generateRoutinesin interfaceGenerator
-
setGenerateRoutines
public void setGenerateRoutines(boolean generateRoutines) Description copied from interface:GeneratorWhether Routines should be generated.- Specified by:
setGenerateRoutinesin interfaceGenerator
-
generateSequences
public boolean generateSequences()Description copied from interface:GeneratorWhether Sequences should be generated.- Specified by:
generateSequencesin interfaceGenerator
-
setGenerateSequences
public void setGenerateSequences(boolean generateSequences) Description copied from interface:GeneratorWhether Sequences should be generated.- Specified by:
setGenerateSequencesin interfaceGenerator
-
generateSequenceFlags
public boolean generateSequenceFlags()Description copied from interface:GeneratorWhether sequence flags should be generated.- Specified by:
generateSequenceFlagsin interfaceGenerator
-
setGenerateSequenceFlags
public void setGenerateSequenceFlags(boolean generateSequenceFlags) Description copied from interface:GeneratorWhether sequence flags should be generated.- Specified by:
setGenerateSequenceFlagsin interfaceGenerator
-
generateUDTs
public boolean generateUDTs()Description copied from interface:GeneratorWhether UDTs should be generated.- Specified by:
generateUDTsin interfaceGenerator
-
setGenerateUDTs
public void setGenerateUDTs(boolean generateUDTs) Description copied from interface:GeneratorWhether UDTs should be generated.- Specified by:
setGenerateUDTsin interfaceGenerator
-
generateTables
public boolean generateTables()Description copied from interface:GeneratorWhether Tables should be generated- Specified by:
generateTablesin interfaceGenerator
-
setGenerateTables
public void setGenerateTables(boolean generateTables) Description copied from interface:GeneratorWhether Tables should be generated- Specified by:
setGenerateTablesin interfaceGenerator
-
generateEmbeddables
public boolean generateEmbeddables()Description copied from interface:GeneratorWhether embeddable types should be generated- Specified by:
generateEmbeddablesin interfaceGenerator
-
setGenerateEmbeddables
public void setGenerateEmbeddables(boolean generateEmbeddables) Description copied from interface:GeneratorWhether embeddable types should be generated- Specified by:
setGenerateEmbeddablesin interfaceGenerator
-
generateRecords
public boolean generateRecords()Description copied from interface:GeneratorWhether TableRecords should be generated in addition to tables- Specified by:
generateRecordsin interfaceGenerator
-
setGenerateRecords
public void setGenerateRecords(boolean generateRecords) Description copied from interface:GeneratorWhether TableRecords should be generated in addition to tables- Specified by:
setGenerateRecordsin interfaceGenerator
-
generateRecordsImplementingRecordN
public boolean generateRecordsImplementingRecordN()Description copied from interface:GeneratorWhether TableRecords should be generated in addition to tables, which implement Record[N] types- Specified by:
generateRecordsImplementingRecordNin interfaceGenerator
-
setGenerateRecordsImplementingRecordN
public void setGenerateRecordsImplementingRecordN(boolean generateRecordsImplementingRecordN) Description copied from interface:GeneratorWhether TableRecords should be generated in addition to tables, which implement Record[N] types- Specified by:
setGenerateRecordsImplementingRecordNin interfaceGenerator
-
generateEnumsAsScalaSealedTraits
public boolean generateEnumsAsScalaSealedTraits()Description copied from interface:GeneratorWhether enums generated as Scala sealed traits by theScalaGenerator.- Specified by:
generateEnumsAsScalaSealedTraitsin interfaceGenerator
-
setGenerateEnumsAsScalaSealedTraits
public void setGenerateEnumsAsScalaSealedTraits(boolean generateEnumsAsScalaSealedTraits) Description copied from interface:GeneratorWhether enums generated as Scala sealed traits by theScalaGenerator.- Specified by:
setGenerateEnumsAsScalaSealedTraitsin interfaceGenerator
-
generatePojos
public boolean generatePojos()Description copied from interface:GeneratorWhether POJO's should be generated in addition to records- Specified by:
generatePojosin interfaceGenerator
-
setGeneratePojos
public void setGeneratePojos(boolean generatePojos) Description copied from interface:GeneratorWhether POJO's should be generated in addition to records- Specified by:
setGeneratePojosin interfaceGenerator
-
generatePojosAsJavaRecordClasses
public boolean generatePojosAsJavaRecordClasses()Description copied from interface:GeneratorWhether POJOs should be generated as Java records by theJavaGenerator.- Specified by:
generatePojosAsJavaRecordClassesin interfaceGenerator
-
setGeneratePojosAsJavaRecordClasses
public void setGeneratePojosAsJavaRecordClasses(boolean pojosAsJavaRecordClasses) Description copied from interface:GeneratorWhether POJOs should be generated as Java records by theJavaGenerator.- Specified by:
setGeneratePojosAsJavaRecordClassesin interfaceGenerator
-
generatePojosAsScalaCaseClasses
public boolean generatePojosAsScalaCaseClasses()Description copied from interface:GeneratorWhether POJOs should be generated as Scala case classes by theScalaGenerator.- Specified by:
generatePojosAsScalaCaseClassesin interfaceGenerator
-
setGeneratePojosAsScalaCaseClasses
public void setGeneratePojosAsScalaCaseClasses(boolean pojosAsScalaCaseClasses) Description copied from interface:GeneratorWhether POJOs should be generated as Scala case classes by theScalaGenerator.- Specified by:
setGeneratePojosAsScalaCaseClassesin interfaceGenerator
-
generatePojosAsKotlinDataClasses
public boolean generatePojosAsKotlinDataClasses()Description copied from interface:GeneratorWhether POJOs should be generated as Kotlin data classes by theKotlinGenerator.- Specified by:
generatePojosAsKotlinDataClassesin interfaceGenerator
-
setGeneratePojosAsKotlinDataClasses
public void setGeneratePojosAsKotlinDataClasses(boolean pojosAsKotlinDataClasses) Description copied from interface:GeneratorWhether POJOs should be generated as Kotlin data classes by theKotlinGenerator.- Specified by:
setGeneratePojosAsKotlinDataClassesin interfaceGenerator
-
generateImmutablePojos
public boolean generateImmutablePojos()Description copied from interface:GeneratorWhether immutable POJO's should be generated in addition to records- Specified by:
generateImmutablePojosin interfaceGenerator
-
setGenerateImmutablePojos
public void setGenerateImmutablePojos(boolean generateImmutablePojos) Description copied from interface:GeneratorWhether immutable POJO's should be generated in addition to records- Specified by:
setGenerateImmutablePojosin interfaceGenerator
-
generateSerializablePojos
public boolean generateSerializablePojos()Description copied from interface:GeneratorWhether generated POJO's should beSerializable.- Specified by:
generateSerializablePojosin interfaceGenerator
-
setGenerateSerializablePojos
public void setGenerateSerializablePojos(boolean generateSerializablePojos) Description copied from interface:GeneratorWhether generated POJO's should beSerializable.- Specified by:
setGenerateSerializablePojosin interfaceGenerator
-
generateInterfaces
public boolean generateInterfaces()Description copied from interface:GeneratorWhether interfaces should be generated to be implemented by records and POJO's- Specified by:
generateInterfacesin interfaceGenerator
-
setGenerateInterfaces
public void setGenerateInterfaces(boolean generateInterfaces) Description copied from interface:GeneratorWhether interfaces should be generated to be implemented by records and POJO's- Specified by:
setGenerateInterfacesin interfaceGenerator
-
generateImmutableInterfaces
public boolean generateImmutableInterfaces()Description copied from interface:GeneratorWhether immutable interfaces should be generated in addition to records- Specified by:
generateImmutableInterfacesin interfaceGenerator
-
setGenerateImmutableInterfaces
public void setGenerateImmutableInterfaces(boolean generateImmutableInterfaces) Description copied from interface:GeneratorWhether immutable interfaces should be generated in addition to records- Specified by:
setGenerateImmutableInterfacesin interfaceGenerator
-
generateSerializableInterfaces
public boolean generateSerializableInterfaces()Description copied from interface:GeneratorWhether generated interfaces should extendSerializable.- Specified by:
generateSerializableInterfacesin interfaceGenerator
-
setGenerateSerializableInterfaces
public void setGenerateSerializableInterfaces(boolean generateSerializableInterfaces) Description copied from interface:GeneratorWhether generated interfaces should extendSerializable.- Specified by:
setGenerateSerializableInterfacesin interfaceGenerator
-
generateDaos
public boolean generateDaos()Description copied from interface:GeneratorWhether DAO's should be generated in addition to pojos- Specified by:
generateDaosin interfaceGenerator
-
setGenerateDaos
public void setGenerateDaos(boolean generateDaos) Description copied from interface:GeneratorWhether DAO's should be generated in addition to pojos- Specified by:
setGenerateDaosin interfaceGenerator
-
generateJooqVersionReference
public boolean generateJooqVersionReference()Description copied from interface:GeneratorWhether generated objects should reference the runtime jOOQ version inConstants, to help debug code generator / runtime version mismatches.- Specified by:
generateJooqVersionReferencein interfaceGenerator
-
setGenerateJooqVersionReference
public void setGenerateJooqVersionReference(boolean generateJooqVersionReference) Description copied from interface:GeneratorWhether generated objects should reference the runtime jOOQ version inConstants, to help debug code generator / runtime version mismatches.- Specified by:
setGenerateJooqVersionReferencein interfaceGenerator
-
generateJPAAnnotations
public boolean generateJPAAnnotations()Description copied from interface:GeneratorWhether POJO's and records should be annotated with JPA annotations- Specified by:
generateJPAAnnotationsin interfaceGenerator
-
setGenerateJPAAnnotations
public void setGenerateJPAAnnotations(boolean generateJPAAnnotations) Description copied from interface:GeneratorWhether POJO's and records should be annotated with JPA annotations- Specified by:
setGenerateJPAAnnotationsin interfaceGenerator
-
generateJPAVersion
Description copied from interface:GeneratorThe minimum JPA version that is supported by generated code (latest version if empty).- Specified by:
generateJPAVersionin interfaceGenerator
-
setGenerateJPAVersion
Description copied from interface:GeneratorThe minimum JPA version that is supported by generated code (latest version if empty).- Specified by:
setGenerateJPAVersionin interfaceGenerator
-
generateValidationAnnotations
public boolean generateValidationAnnotations()Description copied from interface:GeneratorWhether POJO's and records should be annotated with JSR-303 validation annotations- Specified by:
generateValidationAnnotationsin interfaceGenerator
-
setGenerateValidationAnnotations
public void setGenerateValidationAnnotations(boolean generateValidationAnnotations) Description copied from interface:GeneratorWhether POJO's and records should be annotated with JSR-303 validation annotations- Specified by:
setGenerateValidationAnnotationsin interfaceGenerator
-
generateSpringAnnotations
public boolean generateSpringAnnotations()Description copied from interface:GeneratorWhether DAOs should be annotated with useful spring annotations such as@Repositoryor@Autowired- Specified by:
generateSpringAnnotationsin interfaceGenerator
-
setGenerateSpringAnnotations
public void setGenerateSpringAnnotations(boolean generateSpringAnnotations) Description copied from interface:GeneratorWhether DAOs should be annotated with useful spring annotations such as@Repositoryor@Autowired- Specified by:
setGenerateSpringAnnotationsin interfaceGenerator
-
generateSpringDao
public boolean generateSpringDao()Description copied from interface:GeneratorWhether a Spring specificDAOImplsubclass should be generated, which may contain Spring specific stuff, such as the@Transactionalannotation (ifGenerator.generateSpringAnnotations()is set).- Specified by:
generateSpringDaoin interfaceGenerator
-
setGenerateSpringDao
public void setGenerateSpringDao(boolean generateSpringDao) Description copied from interface:GeneratorWhether a Spring specificDAOImplsubclass should be generated, which may contain Spring specific stuff, such as the@Transactionalannotation (ifGenerator.generateSpringAnnotations()is set).- Specified by:
setGenerateSpringDaoin interfaceGenerator
-
generateKotlinSetterJvmNameAnnotationsOnIsPrefix
public boolean generateKotlinSetterJvmNameAnnotationsOnIsPrefix()Description copied from interface:GeneratorWhether kotlin mutable properties should be annotated withset:JvmNameas a workaround for problems occurring when kotlin producessetX()instead ofsetIsX()setters for anisXproperty.- Specified by:
generateKotlinSetterJvmNameAnnotationsOnIsPrefixin interfaceGenerator
-
setGenerateKotlinSetterJvmNameAnnotationsOnIsPrefix
public void setGenerateKotlinSetterJvmNameAnnotationsOnIsPrefix(boolean generateKotlinSetterJvmNameAnnotationsOnIsPrefix) Description copied from interface:GeneratorWhether kotlin mutable properties should be annotated withset:JvmNameas a workaround for problems occurring when kotlin producessetX()instead ofsetIsX()setters for anisXproperty.- Specified by:
setGenerateKotlinSetterJvmNameAnnotationsOnIsPrefixin interfaceGenerator
-
generateKotlinNotNullPojoAttributes
public boolean generateKotlinNotNullPojoAttributes()Description copied from interface:GeneratorGenerate non-nullable types on POJO attributes, where column is not null.- Specified by:
generateKotlinNotNullPojoAttributesin interfaceGenerator
-
setGenerateKotlinNotNullPojoAttributes
public void setGenerateKotlinNotNullPojoAttributes(boolean generateKotlinNotNullPojoAttributes) Description copied from interface:GeneratorGenerate non-nullable types on POJO attributes, where column is not null.- Specified by:
setGenerateKotlinNotNullPojoAttributesin interfaceGenerator
-
generateKotlinNotNullRecordAttributes
public boolean generateKotlinNotNullRecordAttributes()Description copied from interface:GeneratorGenerate non-nullable types on Record attributes, where column is not null.- Specified by:
generateKotlinNotNullRecordAttributesin interfaceGenerator
-
setGenerateKotlinNotNullRecordAttributes
public void setGenerateKotlinNotNullRecordAttributes(boolean generateKotlinNotNullRecordAttributes) Description copied from interface:GeneratorGenerate non-nullable types on Record attributes, where column is not null.- Specified by:
setGenerateKotlinNotNullRecordAttributesin interfaceGenerator
-
generateKotlinNotNullInterfaceAttributes
public boolean generateKotlinNotNullInterfaceAttributes()Description copied from interface:GeneratorGenerate non-nullable types on interface attributes, where column is not null.- Specified by:
generateKotlinNotNullInterfaceAttributesin interfaceGenerator
-
setGenerateKotlinNotNullInterfaceAttributes
public void setGenerateKotlinNotNullInterfaceAttributes(boolean generateKotlinNotNullInterfaceAttributes) Description copied from interface:GeneratorGenerate non-nullable types on interface attributes, where column is not null.- Specified by:
setGenerateKotlinNotNullInterfaceAttributesin interfaceGenerator
-
generateKotlinDefaultedNullablePojoAttributes
public boolean generateKotlinDefaultedNullablePojoAttributes()Description copied from interface:GeneratorGenerate defaulted nullable POJO attributes.- Specified by:
generateKotlinDefaultedNullablePojoAttributesin interfaceGenerator
-
setGenerateKotlinDefaultedNullablePojoAttributes
public void setGenerateKotlinDefaultedNullablePojoAttributes(boolean generateKotlinDefaultedNullablePojoAttributes) Description copied from interface:GeneratorGenerate defaulted nullable POJO attributes.- Specified by:
setGenerateKotlinDefaultedNullablePojoAttributesin interfaceGenerator
-
generateKotlinDefaultedNullableRecordAttributes
public boolean generateKotlinDefaultedNullableRecordAttributes()Description copied from interface:GeneratorGenerate defaulted nullable Record attributes.- Specified by:
generateKotlinDefaultedNullableRecordAttributesin interfaceGenerator
-
setGenerateKotlinDefaultedNullableRecordAttributes
public void setGenerateKotlinDefaultedNullableRecordAttributes(boolean generateKotlinDefaultedNullableRecordAttributes) Description copied from interface:GeneratorGenerate defaulted nullable Record attributes.- Specified by:
setGenerateKotlinDefaultedNullableRecordAttributesin interfaceGenerator
-
generatedSerialVersionUID
Description copied from interface:GeneratorThe type ofserialVersionUIDthat should be generated.- Specified by:
generatedSerialVersionUIDin interfaceGenerator
-
setGenerateGeneratedSerialVersionUID
public void setGenerateGeneratedSerialVersionUID(GeneratedSerialVersionUID generatedSerialVersionUID) Description copied from interface:GeneratorThe type ofserialVersionUIDthat should be generated.- Specified by:
setGenerateGeneratedSerialVersionUIDin interfaceGenerator
-
maxMembersPerInitialiser
public int maxMembersPerInitialiser()Description copied from interface:GeneratorThe maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.- Specified by:
maxMembersPerInitialiserin interfaceGenerator
-
setMaxMembersPerInitialiser
public void setMaxMembersPerInitialiser(int maxMembersPerInitialiser) Description copied from interface:GeneratorThe maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.- Specified by:
setMaxMembersPerInitialiserin interfaceGenerator
-
generateGlobalObjectNames
public boolean generateGlobalObjectNames()Description copied from interface:GeneratorWhether global object names should be generated- Specified by:
generateGlobalObjectNamesin interfaceGenerator
-
setGenerateGlobalObjectNames
public void setGenerateGlobalObjectNames(boolean generateGlobalObjectNames) Description copied from interface:GeneratorWhether global object names should be generated- Specified by:
setGenerateGlobalObjectNamesin interfaceGenerator
-
generateGlobalObjectReferences
public boolean generateGlobalObjectReferences()Description copied from interface:GeneratorWhether global object references should be generated- Specified by:
generateGlobalObjectReferencesin interfaceGenerator
-
setGenerateGlobalObjectReferences
public void setGenerateGlobalObjectReferences(boolean generateGlobalObjectReferences) Description copied from interface:GeneratorWhether global object references should be generated- Specified by:
setGenerateGlobalObjectReferencesin interfaceGenerator
-
generateGlobalCatalogReferences
public boolean generateGlobalCatalogReferences()Description copied from interface:GeneratorWhether global catalog references should be generated- Specified by:
generateGlobalCatalogReferencesin interfaceGenerator
-
setGenerateGlobalCatalogReferences
public void setGenerateGlobalCatalogReferences(boolean globalCatalogReferences) Description copied from interface:GeneratorWhether global catalog references should be generated- Specified by:
setGenerateGlobalCatalogReferencesin interfaceGenerator
-
generateGlobalSchemaReferences
public boolean generateGlobalSchemaReferences()Description copied from interface:GeneratorWhether global schema references should be generated- Specified by:
generateGlobalSchemaReferencesin interfaceGenerator
-
setGenerateGlobalSchemaReferences
public void setGenerateGlobalSchemaReferences(boolean globalSchemaReferences) Description copied from interface:GeneratorWhether global schema references should be generated- Specified by:
setGenerateGlobalSchemaReferencesin interfaceGenerator
-
generateGlobalRoutineReferences
public boolean generateGlobalRoutineReferences()Description copied from interface:GeneratorWhether global routine references should be generated- Specified by:
generateGlobalRoutineReferencesin interfaceGenerator
-
setGenerateGlobalRoutineReferences
public void setGenerateGlobalRoutineReferences(boolean generateGlobalRoutineReferences) Description copied from interface:GeneratorWhether global routine references should be generated- Specified by:
setGenerateGlobalRoutineReferencesin interfaceGenerator
-
generateGlobalSequenceReferences
public boolean generateGlobalSequenceReferences()Description copied from interface:GeneratorWhether global sequence references should be generated- Specified by:
generateGlobalSequenceReferencesin interfaceGenerator
-
setGenerateGlobalSequenceReferences
public void setGenerateGlobalSequenceReferences(boolean generateGlobalSequenceReferences) Description copied from interface:GeneratorWhether global sequence references should be generated- Specified by:
setGenerateGlobalSequenceReferencesin interfaceGenerator
-
generateGlobalTableReferences
public boolean generateGlobalTableReferences()Description copied from interface:GeneratorWhether global table references should be generated- Specified by:
generateGlobalTableReferencesin interfaceGenerator
-
setGenerateGlobalTableReferences
public void setGenerateGlobalTableReferences(boolean generateGlobalTableReferences) Description copied from interface:GeneratorWhether global table references should be generated- Specified by:
setGenerateGlobalTableReferencesin interfaceGenerator
-
generateGlobalDomainReferences
public boolean generateGlobalDomainReferences()Description copied from interface:GeneratorWhether global domain references should be generated- Specified by:
generateGlobalDomainReferencesin interfaceGenerator
-
setGenerateGlobalDomainReferences
public void setGenerateGlobalDomainReferences(boolean globalDomainReferences) Description copied from interface:GeneratorWhether global domain references should be generated- Specified by:
setGenerateGlobalDomainReferencesin interfaceGenerator
-
generateGlobalUDTReferences
public boolean generateGlobalUDTReferences()Description copied from interface:GeneratorWhether global UDT references should be generated- Specified by:
generateGlobalUDTReferencesin interfaceGenerator
-
setGenerateGlobalUDTReferences
public void setGenerateGlobalUDTReferences(boolean generateGlobalUDTReferences) Description copied from interface:GeneratorWhether global UDT references should be generated- Specified by:
setGenerateGlobalUDTReferencesin interfaceGenerator
-
generateGlobalQueueReferences
public boolean generateGlobalQueueReferences()Description copied from interface:GeneratorWhether global queue references should be generated- Specified by:
generateGlobalQueueReferencesin interfaceGenerator
-
setGenerateGlobalQueueReferences
public void setGenerateGlobalQueueReferences(boolean globalQueueReferences) Description copied from interface:GeneratorWhether global queue references should be generated- Specified by:
setGenerateGlobalQueueReferencesin interfaceGenerator
-
generateGlobalLinkReferences
public boolean generateGlobalLinkReferences()Description copied from interface:GeneratorWhether global link references should be generated- Specified by:
generateGlobalLinkReferencesin interfaceGenerator
-
setGenerateGlobalLinkReferences
public void setGenerateGlobalLinkReferences(boolean globalLinkReferences) Description copied from interface:GeneratorWhether global link references should be generated- Specified by:
setGenerateGlobalLinkReferencesin interfaceGenerator
-
generateGlobalKeyReferences
public boolean generateGlobalKeyReferences()Description copied from interface:GeneratorWhether global key references should be generated- Specified by:
generateGlobalKeyReferencesin interfaceGenerator
-
setGenerateGlobalKeyReferences
public void setGenerateGlobalKeyReferences(boolean globalKeyReferences) Description copied from interface:GeneratorWhether global key references should be generated- Specified by:
setGenerateGlobalKeyReferencesin interfaceGenerator
-
generateGlobalIndexReferences
public boolean generateGlobalIndexReferences()Description copied from interface:GeneratorWhether global index references should be generated- Specified by:
generateGlobalIndexReferencesin interfaceGenerator
-
setGenerateGlobalIndexReferences
public void setGenerateGlobalIndexReferences(boolean globalIndexReferences) Description copied from interface:GeneratorWhether global index references should be generated- Specified by:
setGenerateGlobalIndexReferencesin interfaceGenerator
-
generateDefaultCatalog
public boolean generateDefaultCatalog()Description copied from interface:GeneratorWhether default catalog instances should be generated- Specified by:
generateDefaultCatalogin interfaceGenerator
-
setGenerateDefaultCatalog
public void setGenerateDefaultCatalog(boolean defaultCatalog) Description copied from interface:GeneratorWhether default catalog instances should be generated- Specified by:
setGenerateDefaultCatalogin interfaceGenerator
-
generateDefaultSchema
public boolean generateDefaultSchema()Description copied from interface:GeneratorWhether default schema instances should be generated- Specified by:
generateDefaultSchemain interfaceGenerator
-
setGenerateDefaultSchema
public void setGenerateDefaultSchema(boolean defaultSchema) Description copied from interface:GeneratorWhether default schema instances should be generated- Specified by:
setGenerateDefaultSchemain interfaceGenerator
-
generateQueues
public boolean generateQueues()Description copied from interface:GeneratorWhether queue related code should be generated- Specified by:
generateQueuesin interfaceGenerator
-
setGenerateQueues
public void setGenerateQueues(boolean queues) Description copied from interface:GeneratorWhether queue related code should be generated- Specified by:
setGenerateQueuesin interfaceGenerator
-
generateLinks
public boolean generateLinks()Description copied from interface:GeneratorWhether link related code should be generated- Specified by:
generateLinksin interfaceGenerator
-
setGenerateLinks
public void setGenerateLinks(boolean links) Description copied from interface:GeneratorWhether link related code should be generated- Specified by:
setGenerateLinksin interfaceGenerator
-
generateKeys
public boolean generateKeys()Description copied from interface:GeneratorWhether key related code should be generated- Specified by:
generateKeysin interfaceGenerator
-
setGenerateKeys
public void setGenerateKeys(boolean keys) Description copied from interface:GeneratorWhether key related code should be generated- Specified by:
setGenerateKeysin interfaceGenerator
-
generateJavadoc
public boolean generateJavadoc()Description copied from interface:GeneratorWhether any Javadoc should be generated.- Specified by:
generateJavadocin interfaceGenerator
-
setGenerateJavadoc
public void setGenerateJavadoc(boolean javadoc) Description copied from interface:GeneratorWhether any Javadoc should be generated.- Specified by:
setGenerateJavadocin interfaceGenerator
-
generateComments
public boolean generateComments()Description copied from interface:GeneratorWhether any SQL comments should be generated as Javadoc.- Specified by:
generateCommentsin interfaceGenerator
-
setGenerateComments
public void setGenerateComments(boolean comments) Description copied from interface:GeneratorWhether any SQL comments should be generated as Javadoc.- Specified by:
setGenerateCommentsin interfaceGenerator
-
generateCommentsOnAttributes
public boolean generateCommentsOnAttributes()Description copied from interface:GeneratorWhether SQL comments on attributes should be generated as Javadoc.- Specified by:
generateCommentsOnAttributesin interfaceGenerator
-
setGenerateCommentsOnAttributes
public void setGenerateCommentsOnAttributes(boolean commentsOnAttributes) Description copied from interface:GeneratorWhether SQL comments on attributes should be generated as Javadoc.- Specified by:
setGenerateCommentsOnAttributesin interfaceGenerator
-
generateCommentsOnCatalogs
public boolean generateCommentsOnCatalogs()Description copied from interface:GeneratorWhether SQL comments on catalogs should be generated as Javadoc.- Specified by:
generateCommentsOnCatalogsin interfaceGenerator
-
setGenerateCommentsOnCatalogs
public void setGenerateCommentsOnCatalogs(boolean commentsOnCatalogs) Description copied from interface:GeneratorWhether SQL comments on catalogs should be generated as Javadoc.- Specified by:
setGenerateCommentsOnCatalogsin interfaceGenerator
-
generateCommentsOnColumns
public boolean generateCommentsOnColumns()Description copied from interface:GeneratorWhether SQL comments on columns should be generated as Javadoc.- Specified by:
generateCommentsOnColumnsin interfaceGenerator
-
setGenerateCommentsOnColumns
public void setGenerateCommentsOnColumns(boolean commentsOnColumns) Description copied from interface:GeneratorWhether SQL comments on columns should be generated as Javadoc.- Specified by:
setGenerateCommentsOnColumnsin interfaceGenerator
-
generateCommentsOnKeys
public boolean generateCommentsOnKeys()Description copied from interface:GeneratorWhether SQL comments on keys should be generated as Javadoc.- Specified by:
generateCommentsOnKeysin interfaceGenerator
-
setGenerateCommentsOnKeys
public void setGenerateCommentsOnKeys(boolean commentsOnKeys) Description copied from interface:GeneratorWhether SQL comments on keys should be generated as Javadoc.- Specified by:
setGenerateCommentsOnKeysin interfaceGenerator
-
generateCommentsOnLinks
public boolean generateCommentsOnLinks()Description copied from interface:GeneratorWhether SQL comments on links should be generated as Javadoc.- Specified by:
generateCommentsOnLinksin interfaceGenerator
-
setGenerateCommentsOnLinks
public void setGenerateCommentsOnLinks(boolean commentsOnLinks) Description copied from interface:GeneratorWhether SQL comments on links should be generated as Javadoc.- Specified by:
setGenerateCommentsOnLinksin interfaceGenerator
-
generateCommentsOnPackages
public boolean generateCommentsOnPackages()Description copied from interface:GeneratorWhether SQL comments on packages should be generated as Javadoc.- Specified by:
generateCommentsOnPackagesin interfaceGenerator
-
setGenerateCommentsOnPackages
public void setGenerateCommentsOnPackages(boolean commentsOnPackages) Description copied from interface:GeneratorWhether SQL comments on packages should be generated as Javadoc.- Specified by:
setGenerateCommentsOnPackagesin interfaceGenerator
-
generateCommentsOnParameters
public boolean generateCommentsOnParameters()Description copied from interface:GeneratorWhether SQL comments on parameters should be generated as Javadoc.- Specified by:
generateCommentsOnParametersin interfaceGenerator
-
setGenerateCommentsOnParameters
public void setGenerateCommentsOnParameters(boolean commentsOnParameters) Description copied from interface:GeneratorWhether SQL comments on parameters should be generated as Javadoc.- Specified by:
setGenerateCommentsOnParametersin interfaceGenerator
-
generateCommentsOnQueues
public boolean generateCommentsOnQueues()Description copied from interface:GeneratorWhether SQL comments on queues should be generated as Javadoc.- Specified by:
generateCommentsOnQueuesin interfaceGenerator
-
setGenerateCommentsOnQueues
public void setGenerateCommentsOnQueues(boolean commentsOnQueues) Description copied from interface:GeneratorWhether SQL comments on queues should be generated as Javadoc.- Specified by:
setGenerateCommentsOnQueuesin interfaceGenerator
-
generateCommentsOnRoutines
public boolean generateCommentsOnRoutines()Description copied from interface:GeneratorWhether SQL comments on routines should be generated as Javadoc.- Specified by:
generateCommentsOnRoutinesin interfaceGenerator
-
setGenerateCommentsOnRoutines
public void setGenerateCommentsOnRoutines(boolean commentsOnRoutines) Description copied from interface:GeneratorWhether SQL comments on routines should be generated as Javadoc.- Specified by:
setGenerateCommentsOnRoutinesin interfaceGenerator
-
generateCommentsOnSchemas
public boolean generateCommentsOnSchemas()Description copied from interface:GeneratorWhether SQL comments on schemas should be generated as Javadoc.- Specified by:
generateCommentsOnSchemasin interfaceGenerator
-
setGenerateCommentsOnSchemas
public void setGenerateCommentsOnSchemas(boolean commentsOnSchemas) Description copied from interface:GeneratorWhether SQL comments on schemas should be generated as Javadoc.- Specified by:
setGenerateCommentsOnSchemasin interfaceGenerator
-
generateCommentsOnSequences
public boolean generateCommentsOnSequences()Description copied from interface:GeneratorWhether SQL comments on sequences should be generated as Javadoc.- Specified by:
generateCommentsOnSequencesin interfaceGenerator
-
setGenerateCommentsOnSequences
public void setGenerateCommentsOnSequences(boolean commentsOnSequences) Description copied from interface:GeneratorWhether SQL comments on sequences should be generated as Javadoc.- Specified by:
setGenerateCommentsOnSequencesin interfaceGenerator
-
generateCommentsOnTables
public boolean generateCommentsOnTables()Description copied from interface:GeneratorWhether SQL comments on tables should be generated as Javadoc.- Specified by:
generateCommentsOnTablesin interfaceGenerator
-
setGenerateCommentsOnTables
public void setGenerateCommentsOnTables(boolean commentsOnTables) Description copied from interface:GeneratorWhether SQL comments on tables should be generated as Javadoc.- Specified by:
setGenerateCommentsOnTablesin interfaceGenerator
-
generateCommentsOnEmbeddables
public boolean generateCommentsOnEmbeddables()Description copied from interface:GeneratorWhether SQL comments on embeddables should be generated as Javadoc.- Specified by:
generateCommentsOnEmbeddablesin interfaceGenerator
-
setGenerateCommentsOnEmbeddables
public void setGenerateCommentsOnEmbeddables(boolean generateCommentsOnEmbeddables) Description copied from interface:GeneratorWhether SQL comments on embeddables should be generated as Javadoc.- Specified by:
setGenerateCommentsOnEmbeddablesin interfaceGenerator
-
generateCommentsOnUDTs
public boolean generateCommentsOnUDTs()Description copied from interface:GeneratorWhether SQL comments on UDTs should be generated as Javadoc.- Specified by:
generateCommentsOnUDTsin interfaceGenerator
-
setGenerateCommentsOnUDTs
public void setGenerateCommentsOnUDTs(boolean commentsOnUDTs) Description copied from interface:GeneratorWhether SQL comments on UDTs should be generated as Javadoc.- Specified by:
setGenerateCommentsOnUDTsin interfaceGenerator
-
generateSources
public boolean generateSources()Description copied from interface:GeneratorWhether source code should be generated on any object type.- Specified by:
generateSourcesin interfaceGenerator
-
setGenerateSources
public void setGenerateSources(boolean sources) Description copied from interface:GeneratorWhether source code should be generated on any object type.- Specified by:
setGenerateSourcesin interfaceGenerator
-
generateSourcesOnViews
public boolean generateSourcesOnViews()Description copied from interface:GeneratorWhether source code should be generated on views.- Specified by:
generateSourcesOnViewsin interfaceGenerator
-
setGenerateSourcesOnViews
public void setGenerateSourcesOnViews(boolean sourcesOnViews) Description copied from interface:GeneratorWhether source code should be generated on views.- Specified by:
setGenerateSourcesOnViewsin interfaceGenerator
-
fluentSetters
Deprecated.Description copied from interface:GeneratorWhether fluent setters should be generated- Specified by:
fluentSettersin interfaceGenerator
-
setFluentSetters
Deprecated.Description copied from interface:GeneratorWhether fluent setters should be generated- Specified by:
setFluentSettersin interfaceGenerator
-
generateFluentSetters
public boolean generateFluentSetters()Description copied from interface:GeneratorWhether fluent setters should be generated- Specified by:
generateFluentSettersin interfaceGenerator
-
setGenerateFluentSetters
public void setGenerateFluentSetters(boolean fluentSetters) Description copied from interface:GeneratorWhether fluent setters should be generated- Specified by:
setGenerateFluentSettersin interfaceGenerator
-
generateJavaBeansGettersAndSetters
public boolean generateJavaBeansGettersAndSetters()Description copied from interface:GeneratorWhether getters and setters should be generated JavaBeans style (or jOOQ style).- Specified by:
generateJavaBeansGettersAndSettersin interfaceGenerator
-
setGenerateJavaBeansGettersAndSetters
public void setGenerateJavaBeansGettersAndSetters(boolean javaBeansGettersAndSetters) Description copied from interface:GeneratorWhether getters and setters should be generated JavaBeans style (or jOOQ style).- Specified by:
setGenerateJavaBeansGettersAndSettersin interfaceGenerator
-
generateUseTableNameForUnambiguousFKs
public boolean generateUseTableNameForUnambiguousFKs()Description copied from interface:GeneratorWhether 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 ofGeneratorStrategy.getJavaMethodName(Definition), instead of theForeignKeyDefinition, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
- Specified by:
generateUseTableNameForUnambiguousFKsin interfaceGenerator
-
setGenerateUseTableNameForUnambiguousFKs
public void setGenerateUseTableNameForUnambiguousFKs(boolean useTableNameForUnambiguousFKs) Description copied from interface:GeneratorWhether 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 ofGeneratorStrategy.getJavaMethodName(Definition), instead of theForeignKeyDefinition, e.g. for implicit join paths.This flag allows for turning off this default behaviour.
- Specified by:
setGenerateUseTableNameForUnambiguousFKsin interfaceGenerator
-
generateVarargsSetters
public boolean generateVarargsSetters()Description copied from interface:GeneratorWhether varargs setters should be generated for array types.- Specified by:
generateVarargsSettersin interfaceGenerator
-
setGenerateVarargsSetters
public void setGenerateVarargsSetters(boolean varargsSetters) Description copied from interface:GeneratorWhether varargs setters should be generated for array types.- Specified by:
setGenerateVarargsSettersin interfaceGenerator
-
generatePojosEqualsAndHashCode
public boolean generatePojosEqualsAndHashCode()Description copied from interface:GeneratorWhetherequals()andhashCode()methods should be generated on POJOs- Specified by:
generatePojosEqualsAndHashCodein interfaceGenerator
-
setGeneratePojosEqualsAndHashCode
public void setGeneratePojosEqualsAndHashCode(boolean generatePojosEqualsAndHashCode) Description copied from interface:GeneratorWhetherequals()andhashCode()methods should be generated on POJOs- Specified by:
setGeneratePojosEqualsAndHashCodein interfaceGenerator
-
generatePojosToString
public boolean generatePojosToString()Description copied from interface:GeneratorWhether atoString()method should be generated on POJOs- Specified by:
generatePojosToStringin interfaceGenerator
-
setGeneratePojosToString
public void setGeneratePojosToString(boolean generatePojosToString) Description copied from interface:GeneratorWhether atoString()method should be generated on POJOs- Specified by:
setGeneratePojosToStringin interfaceGenerator
-
fullyQualifiedTypes
Deprecated.Description copied from interface:GeneratorA regular expression matching all the types in generated code that should be fully qualified.- Specified by:
fullyQualifiedTypesin interfaceGenerator
-
setFullyQualifiedTypes
Deprecated.Description copied from interface:GeneratorA regular expression matching all the types in generated code that should be fully qualified.- Specified by:
setFullyQualifiedTypesin interfaceGenerator
-
generateFullyQualifiedTypes
Description copied from interface:GeneratorA regular expression matching all the types in generated code that should be fully qualified.- Specified by:
generateFullyQualifiedTypesin interfaceGenerator
-
setGenerateFullyQualifiedTypes
Description copied from interface:GeneratorA regular expression matching all the types in generated code that should be fully qualified.- Specified by:
setGenerateFullyQualifiedTypesin interfaceGenerator
-
generateJavaTimeTypes
public boolean generateJavaTimeTypes()Description copied from interface:GeneratorA 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:
generateJavaTimeTypesin interfaceGenerator
-
setGenerateJavaTimeTypes
public void setGenerateJavaTimeTypes(boolean generateJavaTimeTypes) Description copied from interface:GeneratorA 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:
setGenerateJavaTimeTypesin interfaceGenerator
-
generateSpatialTypes
public boolean generateSpatialTypes()Description copied from interface:GeneratorA flag indicating whether theSpatialtype support should be enabled.- Specified by:
generateSpatialTypesin interfaceGenerator
-
setGenerateSpatialTypes
public void setGenerateSpatialTypes(boolean generateSpatialTypes) Description copied from interface:GeneratorA flag indicating whether theSpatialtype support should be enabled.- Specified by:
setGenerateSpatialTypesin interfaceGenerator
-
generateXmlTypes
public boolean generateXmlTypes()Description copied from interface:GeneratorA flag indicating whether theXMLtype support should be enabled.- Specified by:
generateXmlTypesin interfaceGenerator
-
setGenerateXmlTypes
public void setGenerateXmlTypes(boolean generateXmlTypes) Description copied from interface:GeneratorA flag indicating whether theXMLtype support should be enabled.- Specified by:
setGenerateXmlTypesin interfaceGenerator
-
generateJsonTypes
public boolean generateJsonTypes()Description copied from interface:Generator- Specified by:
generateJsonTypesin interfaceGenerator
-
setGenerateJsonTypes
public void setGenerateJsonTypes(boolean generateJsonTypes) Description copied from interface:Generator- Specified by:
setGenerateJsonTypesin interfaceGenerator
-
generateIntervalTypes
public boolean generateIntervalTypes()Description copied from interface:GeneratorA flag indicating whether theIntervaltype support should be enabled.- Specified by:
generateIntervalTypesin interfaceGenerator
-
setGenerateIntervalTypes
public void setGenerateIntervalTypes(boolean generateIntervalTypes) Description copied from interface:GeneratorA flag indicating whether theIntervaltype support should be enabled.- Specified by:
setGenerateIntervalTypesin interfaceGenerator
-
generateEmptyCatalogs
public boolean generateEmptyCatalogs()Description copied from interface:GeneratorWhether empty catalogs should still be generated.- Specified by:
generateEmptyCatalogsin interfaceGenerator
-
setGenerateEmptyCatalogs
public void setGenerateEmptyCatalogs(boolean generateEmptyCatalogs) Description copied from interface:GeneratorWhether empty catalogs should still be generated.- Specified by:
setGenerateEmptyCatalogsin interfaceGenerator
-
generateEmptySchemas
public boolean generateEmptySchemas()Description copied from interface:GeneratorWhether empty schemas should still be generated.- Specified by:
generateEmptySchemasin interfaceGenerator
-
setGenerateEmptySchemas
public void setGenerateEmptySchemas(boolean generateEmptySchemas) Description copied from interface:GeneratorWhether empty schemas should still be generated.- Specified by:
setGenerateEmptySchemasin interfaceGenerator
-
generateNewline
Description copied from interface:GeneratorThe newline character(s) to be used in generated code.- Specified by:
generateNewlinein interfaceGenerator
-
setGenerateNewline
Description copied from interface:GeneratorThe newline character(s) to be used in generated code.- Specified by:
setGenerateNewlinein interfaceGenerator
-
generateIndentation
Description copied from interface:GeneratorThe indentation character(s) to be used in generated code.- Specified by:
generateIndentationin interfaceGenerator
-
setGenerateIndentation
Description copied from interface:GeneratorThe indentation character(s) to be used in generated code.- Specified by:
setGenerateIndentationin interfaceGenerator
-
generatePrintMarginForBlockComment
public int generatePrintMarginForBlockComment()Description copied from interface:GeneratorThe print margin for Javadoc and other block comments to be used in generated code.- Specified by:
generatePrintMarginForBlockCommentin interfaceGenerator
-
setGeneratePrintMarginForBlockComment
public void setGeneratePrintMarginForBlockComment(int printMarginForBlockComment) Description copied from interface:GeneratorThe print margin for Javadoc and other block comments to be used in generated code.- Specified by:
setGeneratePrintMarginForBlockCommentin interfaceGenerator
-
generateTextBlocks
Description copied from interface:GeneratorWhether to generate String in text block format.- Specified by:
generateTextBlocksin interfaceGenerator
-
setGenerateTextBlocks
Description copied from interface:GeneratorWhether to generate String in text block format.- Specified by:
setGenerateTextBlocksin interfaceGenerator
-
generateWhereMethodOverrides
public boolean generateWhereMethodOverrides()Description copied from interface:GeneratorWhether to generate overrides forTable.where(Condition)and related overloads.- Specified by:
generateWhereMethodOverridesin interfaceGenerator
-
setGenerateWhereMethodOverrides
public void setGenerateWhereMethodOverrides(boolean whereMethodOverrides) Description copied from interface:GeneratorWhether to generate overrides forTable.where(Condition)and related overloads.- Specified by:
setGenerateWhereMethodOverridesin interfaceGenerator
-
generateRenameMethodOverrides
public boolean generateRenameMethodOverrides()Description copied from interface:GeneratorWhether to generate overrides forand related overloads (see https://github.com/jOOQ/jOOQ/issues/13937).invalid reference
Table#rename(Name)- Specified by:
generateRenameMethodOverridesin interfaceGenerator
-
setGenerateRenameMethodOverrides
public void setGenerateRenameMethodOverrides(boolean renameMethodOverrides) Description copied from interface:GeneratorWhether to generate overrides forand related overloads (see https://github.com/jOOQ/jOOQ/issues/13937).invalid reference
Table#rename(Name)- Specified by:
setGenerateRenameMethodOverridesin interfaceGenerator
-
generateAsMethodOverrides
public boolean generateAsMethodOverrides()Description copied from interface:GeneratorWhether to generate overrides forTable.as(Name)and related overloads.- Specified by:
generateAsMethodOverridesin interfaceGenerator
-
setGenerateAsMethodOverrides
public void setGenerateAsMethodOverrides(boolean asMethodOverrides) Description copied from interface:GeneratorWhether to generate overrides forTable.as(Name)and related overloads.- Specified by:
setGenerateAsMethodOverridesin interfaceGenerator
-
setTargetDirectory
Description copied from interface:GeneratorInitialise the target directory- Specified by:
setTargetDirectoryin interfaceGenerator
-
getTargetDirectory
Description copied from interface:GeneratorThe target directory- Specified by:
getTargetDirectoryin interfaceGenerator
-
setTargetPackage
Description copied from interface:GeneratorInitialise the target package name- Specified by:
setTargetPackagein interfaceGenerator
-
getTargetPackage
- Specified by:
getTargetPackagein interfaceGenerator- Returns:
- Get the target package for the current configuration
-
getTargetEncoding
Description copied from interface:GeneratorThe target encoding- Specified by:
getTargetEncodingin interfaceGenerator
-
setTargetEncoding
Description copied from interface:GeneratorInitialise the target encoding- Specified by:
setTargetEncodingin interfaceGenerator
-
getTargetLocale
Description copied from interface:GeneratorThe target locale.- Specified by:
getTargetLocalein interfaceGenerator
-
setTargetLocale
Description copied from interface:GeneratorThe target locale.- Specified by:
setTargetLocalein interfaceGenerator
-
getTargetClean
public boolean getTargetClean()Description copied from interface:GeneratorWhether the target package should be cleaned to contain only generated code after a generation run.- Specified by:
getTargetCleanin interfaceGenerator
-
setTargetClean
public void setTargetClean(boolean clean) Description copied from interface:GeneratorWhether the target package should be cleaned to contain only generated code after a generation run.- Specified by:
setTargetCleanin 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.
-