Package org.jooq
Class DDLExportConfiguration
- java.lang.Object
-
- org.jooq.DDLExportConfiguration
-
public final class DDLExportConfiguration extends java.lang.Object
A configuration type for use with the variousDSLContext.ddl(Catalog)
methods.- Author:
- Lukas Eder
-
-
Constructor Summary
Constructors Constructor Description DDLExportConfiguration()
Create a new default export configuration instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createSchemaIfNotExists()
Whether to generateCREATE SCHEMA IF NOT EXISTS
statements.DDLExportConfiguration
createSchemaIfNotExists(boolean newCreateSchemaIfNotExists)
Whether to generateCREATE SCHEMA IF NOT EXISTS
statements.boolean
createTableIfNotExists()
Whether to generateCREATE TABLE IF NOT EXISTS
statements.DDLExportConfiguration
createTableIfNotExists(boolean newCreateTableIfNotExists)
Whether to generateCREATE TABLE IF NOT EXISTS
statements.java.util.Set<DDLFlag>
flags()
TheDDLFlag
that are enabled on this configuration.DDLExportConfiguration
flags(java.util.Collection<DDLFlag> newFlags)
TheDDLFlag
that are enabled on this configuration.DDLExportConfiguration
flags(DDLFlag... newFlags)
TheDDLFlag
that are enabled on this configuration.
-
-
-
Method Detail
-
flags
public final java.util.Set<DDLFlag> flags()
TheDDLFlag
that are enabled on this configuration.
-
flags
public final DDLExportConfiguration flags(DDLFlag... newFlags)
TheDDLFlag
that are enabled on this configuration.
-
flags
public final DDLExportConfiguration flags(java.util.Collection<DDLFlag> newFlags)
TheDDLFlag
that are enabled on this configuration.
-
createSchemaIfNotExists
public final boolean createSchemaIfNotExists()
Whether to generateCREATE SCHEMA IF NOT EXISTS
statements.Not all RDBMS support this flag. Check
DSLContext.createSchemaIfNotExists(Schema)
to see if yourSQLDialect
supports the clause.
-
createSchemaIfNotExists
public final DDLExportConfiguration createSchemaIfNotExists(boolean newCreateSchemaIfNotExists)
Whether to generateCREATE SCHEMA IF NOT EXISTS
statements.
-
createTableIfNotExists
public final boolean createTableIfNotExists()
Whether to generateCREATE TABLE IF NOT EXISTS
statements.Not all RDBMS support this flag. Check
DSLContext.createTableIfNotExists(Table)
to see if yourSQLDialect
supports the clause.
-
createTableIfNotExists
public final DDLExportConfiguration createTableIfNotExists(boolean newCreateTableIfNotExists)
Whether to generateCREATE TABLE IF NOT EXISTS
statements.
-
-