- java.lang.Object
-
- org.jooq.DDLExportConfiguration
-
public final class DDLExportConfiguration extends 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 booleancreateIndexIfNotExists()Whether to generateCREATE INDEX IF NOT EXISTSstatements.DDLExportConfigurationcreateIndexIfNotExists(boolean newCreateIndexIfNotExists)Whether to generateCREATE INDEX IF NOT EXISTSstatements.booleancreateOrReplaceView()Whether to generateCREATE OR REPLACE VIEWstatements.DDLExportConfigurationcreateOrReplaceView(boolean newCreateOrReplaceView)Whether to generateCREATE OR REPLACE VIEWstatements.booleancreateSchemaIfNotExists()Whether to generateCREATE SCHEMA IF NOT EXISTSstatements.DDLExportConfigurationcreateSchemaIfNotExists(boolean newCreateSchemaIfNotExists)Whether to generateCREATE SCHEMA IF NOT EXISTSstatements.booleancreateSequenceIfNotExists()Whether to generateCREATE SEQUENCE IF NOT EXISTSstatements.DDLExportConfigurationcreateSequenceIfNotExists(boolean newCreateSequenceIfNotExists)Whether to generateCREATE SEQUENCE IF NOT EXISTSstatements.booleancreateTableIfNotExists()Whether to generateCREATE TABLE IF NOT EXISTSstatements.DDLExportConfigurationcreateTableIfNotExists(boolean newCreateTableIfNotExists)Whether to generateCREATE TABLE IF NOT EXISTSstatements.booleancreateViewIfNotExists()Whether to generateCREATE VIEW IF NOT EXISTSstatements.DDLExportConfigurationcreateViewIfNotExists(boolean newCreateViewIfNotExists)Whether to generateCREATE VIEW IF NOT EXISTSstatements.booleandefaultSequenceFlags()Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.DDLExportConfigurationdefaultSequenceFlags(boolean newDefaultSequenceFlags)Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.Set<DDLFlag>flags()TheDDLFlagthat are enabled on this configuration.DDLExportConfigurationflags(Collection<DDLFlag> newFlags)TheDDLFlagthat are enabled on this configuration.DDLExportConfigurationflags(DDLFlag... newFlags)TheDDLFlagthat are enabled on this configuration.booleanrespectCatalogOrder()Whether to respect the catalog order produced by theMetasource when generated catalog DDL.DDLExportConfigurationrespectCatalogOrder(boolean newRespectCatalogOrder)Whether to respect the catalog order produced by theMetasource when generated catalog DDL.booleanrespectColumnOrder()Whether to respect the column order produced by theMetasource when generated column DDL.DDLExportConfigurationrespectColumnOrder(boolean newRespectColumnOrder)Whether to respect the column order produced by theMetasource when generated column DDL.booleanrespectConstraintOrder()Whether to respect the constraint order produced by theMetasource when generated constraint DDL.DDLExportConfigurationrespectConstraintOrder(boolean newRespectConstraintOrder)Whether to respect the constraint order produced by theMetasource when generated constraint DDL.booleanrespectIndexOrder()Whether to respect the index order produced by theMetasource when generated index DDL.DDLExportConfigurationrespectIndexOrder(boolean newRespectIndexOrder)Whether to respect the index order produced by theMetasource when generated index DDL.booleanrespectSchemaOrder()Whether to respect the schema order produced by theMetasource when generated schema DDL.DDLExportConfigurationrespectSchemaOrder(boolean newRespectSchemaOrder)Whether to respect the schema order produced by theMetasource when generated schema DDL.booleanrespectSequenceOrder()Whether to respect the sequence order produced by theMetasource when generated sequence DDL.DDLExportConfigurationrespectSequenceOrder(boolean newRespectSequenceOrder)Whether to respect the sequence order produced by theMetasource when generated sequence DDL.booleanrespectTableOrder()Whether to respect the table order produced by theMetasource when generated table DDL.DDLExportConfigurationrespectTableOrder(boolean newRespectTableOrder)Whether to respect the table order produced by theMetasource when generated table DDL.
-
-
-
Method Detail
-
flags
public final DDLExportConfiguration flags(DDLFlag... newFlags)
TheDDLFlagthat are enabled on this configuration.
-
flags
public final DDLExportConfiguration flags(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.
-
createIndexIfNotExists
public final boolean createIndexIfNotExists()
Whether to generateCREATE INDEX IF NOT EXISTSstatements.Not all RDBMS support this flag. Check
DSLContext.createIndexIfNotExists(Index)to see if yourSQLDialectsupports the clause.
-
createIndexIfNotExists
public final DDLExportConfiguration createIndexIfNotExists(boolean newCreateIndexIfNotExists)
Whether to generateCREATE INDEX IF NOT EXISTSstatements.
-
createSequenceIfNotExists
public final boolean createSequenceIfNotExists()
Whether to generateCREATE SEQUENCE IF NOT EXISTSstatements.Not all RDBMS support this flag. Check
DSLContext.createSequenceIfNotExists(Sequence)to see if yourSQLDialectsupports the clause.
-
createSequenceIfNotExists
public final DDLExportConfiguration createSequenceIfNotExists(boolean newCreateSequenceIfNotExists)
Whether to generateCREATE SEQUENCE IF NOT EXISTSstatements.
-
createViewIfNotExists
public final boolean createViewIfNotExists()
Whether to generateCREATE VIEW IF NOT EXISTSstatements.Not all RDBMS support this flag. Check
DSLContext.createViewIfNotExists(Table, Field...)to see if yourSQLDialectsupports the clause.
-
createViewIfNotExists
public final DDLExportConfiguration createViewIfNotExists(boolean newCreateViewIfNotExists)
Whether to generateCREATE VIEW IF NOT EXISTSstatements.
-
createOrReplaceView
public final boolean createOrReplaceView()
Whether to generateCREATE OR REPLACE VIEWstatements.Not all RDBMS support this flag. Check
DSLContext.createOrReplaceView(Table, Field...)to see if yourSQLDialectsupports the clause.
-
createOrReplaceView
public final DDLExportConfiguration createOrReplaceView(boolean newCreateOrReplaceView)
Whether to generateCREATE OR REPLACE VIEWstatements.
-
respectCatalogOrder
public final boolean respectCatalogOrder()
Whether to respect the catalog order produced by theMetasource when generated catalog DDL.
-
respectCatalogOrder
public final DDLExportConfiguration respectCatalogOrder(boolean newRespectCatalogOrder)
Whether to respect the catalog order produced by theMetasource when generated catalog DDL.
-
respectSchemaOrder
public final boolean respectSchemaOrder()
Whether to respect the schema order produced by theMetasource when generated schema DDL.
-
respectSchemaOrder
public final DDLExportConfiguration respectSchemaOrder(boolean newRespectSchemaOrder)
Whether to respect the schema order produced by theMetasource when generated schema DDL.
-
respectTableOrder
public final boolean respectTableOrder()
Whether to respect the table order produced by theMetasource when generated table DDL.
-
respectTableOrder
public final DDLExportConfiguration respectTableOrder(boolean newRespectTableOrder)
Whether to respect the table order produced by theMetasource when generated table DDL.
-
respectColumnOrder
public final boolean respectColumnOrder()
Whether to respect the column order produced by theMetasource when generated column DDL.
-
respectColumnOrder
public final DDLExportConfiguration respectColumnOrder(boolean newRespectColumnOrder)
Whether to respect the column order produced by theMetasource when generated column DDL.
-
respectConstraintOrder
public final boolean respectConstraintOrder()
Whether to respect the constraint order produced by theMetasource when generated constraint DDL.
-
respectConstraintOrder
public final DDLExportConfiguration respectConstraintOrder(boolean newRespectConstraintOrder)
Whether to respect the constraint order produced by theMetasource when generated constraint DDL.
-
respectIndexOrder
public final boolean respectIndexOrder()
Whether to respect the index order produced by theMetasource when generated index DDL.
-
respectIndexOrder
public final DDLExportConfiguration respectIndexOrder(boolean newRespectIndexOrder)
Whether to respect the index order produced by theMetasource when generated index DDL.
-
respectSequenceOrder
public final boolean respectSequenceOrder()
Whether to respect the sequence order produced by theMetasource when generated sequence DDL.
-
respectSequenceOrder
public final DDLExportConfiguration respectSequenceOrder(boolean newRespectSequenceOrder)
Whether to respect the sequence order produced by theMetasource when generated sequence DDL.
-
defaultSequenceFlags
public final boolean defaultSequenceFlags()
Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.
-
defaultSequenceFlags
public final DDLExportConfiguration defaultSequenceFlags(boolean newDefaultSequenceFlags)
Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.
-
-