Package org.jooq
Class DDLExportConfiguration
- java.lang.Object
-
- org.jooq.DDLExportConfiguration
-
public final class DDLExportConfiguration extends java.lang.ObjectA 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 booleancreateSchemaIfNotExists()Whether to generateCREATE SCHEMA IF NOT EXISTSstatements.DDLExportConfigurationcreateSchemaIfNotExists(boolean newCreateSchemaIfNotExists)Whether to generateCREATE SCHEMA IF NOT EXISTSstatements.booleancreateTableIfNotExists()Whether to generateCREATE TABLE IF NOT EXISTSstatements.DDLExportConfigurationcreateTableIfNotExists(boolean newCreateTableIfNotExists)Whether to generateCREATE TABLE IF NOT EXISTSstatements.java.util.Set<DDLFlag>flags()TheDDLFlagthat are enabled on this configuration.DDLExportConfigurationflags(java.util.Collection<DDLFlag> newFlags)TheDDLFlagthat are enabled on this configuration.DDLExportConfigurationflags(DDLFlag... newFlags)TheDDLFlagthat are enabled on this configuration.
-
-
-
Method Detail
-
flags
public final java.util.Set<DDLFlag> flags()
TheDDLFlagthat are enabled on this configuration.
-
flags
public final DDLExportConfiguration flags(DDLFlag... newFlags)
TheDDLFlagthat are enabled on this configuration.
-
flags
public final DDLExportConfiguration flags(java.util.Collection<DDLFlag> newFlags)
TheDDLFlagthat are enabled on this configuration.
-
createSchemaIfNotExists
public final boolean createSchemaIfNotExists()
Whether to generateCREATE SCHEMA IF NOT EXISTSstatements.Not all RDBMS support this flag. Check
DSLContext.createSchemaIfNotExists(Schema)to see if yourSQLDialectsupports the clause.
-
createSchemaIfNotExists
public final DDLExportConfiguration createSchemaIfNotExists(boolean newCreateSchemaIfNotExists)
Whether to generateCREATE SCHEMA IF NOT EXISTSstatements.
-
createTableIfNotExists
public final boolean createTableIfNotExists()
Whether to generateCREATE TABLE IF NOT EXISTSstatements.Not all RDBMS support this flag. Check
DSLContext.createTableIfNotExists(Table)to see if yourSQLDialectsupports the clause.
-
createTableIfNotExists
public final DDLExportConfiguration createTableIfNotExists(boolean newCreateTableIfNotExists)
Whether to generateCREATE TABLE IF NOT EXISTSstatements.
-
-