- 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 boolean
createIndexIfNotExists()
Whether to generateCREATE INDEX IF NOT EXISTS
statements.DDLExportConfiguration
createIndexIfNotExists(boolean newCreateIndexIfNotExists)
Whether to generateCREATE INDEX IF NOT EXISTS
statements.boolean
createOrReplaceView()
Whether to generateCREATE OR REPLACE VIEW
statements.DDLExportConfiguration
createOrReplaceView(boolean newCreateOrReplaceView)
Whether to generateCREATE OR REPLACE VIEW
statements.boolean
createSchemaIfNotExists()
Whether to generateCREATE SCHEMA IF NOT EXISTS
statements.DDLExportConfiguration
createSchemaIfNotExists(boolean newCreateSchemaIfNotExists)
Whether to generateCREATE SCHEMA IF NOT EXISTS
statements.boolean
createSequenceIfNotExists()
Whether to generateCREATE SEQUENCE IF NOT EXISTS
statements.DDLExportConfiguration
createSequenceIfNotExists(boolean newCreateSequenceIfNotExists)
Whether to generateCREATE SEQUENCE 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.boolean
createViewIfNotExists()
Whether to generateCREATE VIEW IF NOT EXISTS
statements.DDLExportConfiguration
createViewIfNotExists(boolean newCreateViewIfNotExists)
Whether to generateCREATE VIEW IF NOT EXISTS
statements.boolean
defaultSequenceFlags()
Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.DDLExportConfiguration
defaultSequenceFlags(boolean newDefaultSequenceFlags)
Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.Set<DDLFlag>
flags()
TheDDLFlag
that are enabled on this configuration.DDLExportConfiguration
flags(Collection<DDLFlag> newFlags)
TheDDLFlag
that are enabled on this configuration.DDLExportConfiguration
flags(DDLFlag... newFlags)
TheDDLFlag
that are enabled on this configuration.boolean
respectCatalogOrder()
Whether to respect the catalog order produced by theMeta
source when generated catalog DDL.DDLExportConfiguration
respectCatalogOrder(boolean newRespectCatalogOrder)
Whether to respect the catalog order produced by theMeta
source when generated catalog DDL.boolean
respectColumnOrder()
Whether to respect the column order produced by theMeta
source when generated column DDL.DDLExportConfiguration
respectColumnOrder(boolean newRespectColumnOrder)
Whether to respect the column order produced by theMeta
source when generated column DDL.boolean
respectConstraintOrder()
Whether to respect the constraint order produced by theMeta
source when generated constraint DDL.DDLExportConfiguration
respectConstraintOrder(boolean newRespectConstraintOrder)
Whether to respect the constraint order produced by theMeta
source when generated constraint DDL.boolean
respectIndexOrder()
Whether to respect the index order produced by theMeta
source when generated index DDL.DDLExportConfiguration
respectIndexOrder(boolean newRespectIndexOrder)
Whether to respect the index order produced by theMeta
source when generated index DDL.boolean
respectSchemaOrder()
Whether to respect the schema order produced by theMeta
source when generated schema DDL.DDLExportConfiguration
respectSchemaOrder(boolean newRespectSchemaOrder)
Whether to respect the schema order produced by theMeta
source when generated schema DDL.boolean
respectSequenceOrder()
Whether to respect the sequence order produced by theMeta
source when generated sequence DDL.DDLExportConfiguration
respectSequenceOrder(boolean newRespectSequenceOrder)
Whether to respect the sequence order produced by theMeta
source when generated sequence DDL.boolean
respectTableOrder()
Whether to respect the table order produced by theMeta
source when generated table DDL.DDLExportConfiguration
respectTableOrder(boolean newRespectTableOrder)
Whether to respect the table order produced by theMeta
source when generated table DDL.
-
-
-
Method Detail
-
flags
public final DDLExportConfiguration flags(DDLFlag... newFlags)
TheDDLFlag
that are enabled on this configuration.
-
flags
public final DDLExportConfiguration flags(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.
-
createIndexIfNotExists
public final boolean createIndexIfNotExists()
Whether to generateCREATE INDEX IF NOT EXISTS
statements.Not all RDBMS support this flag. Check
DSLContext.createIndexIfNotExists(Index)
to see if yourSQLDialect
supports the clause.
-
createIndexIfNotExists
public final DDLExportConfiguration createIndexIfNotExists(boolean newCreateIndexIfNotExists)
Whether to generateCREATE INDEX IF NOT EXISTS
statements.
-
createSequenceIfNotExists
public final boolean createSequenceIfNotExists()
Whether to generateCREATE SEQUENCE IF NOT EXISTS
statements.Not all RDBMS support this flag. Check
DSLContext.createSequenceIfNotExists(Sequence)
to see if yourSQLDialect
supports the clause.
-
createSequenceIfNotExists
public final DDLExportConfiguration createSequenceIfNotExists(boolean newCreateSequenceIfNotExists)
Whether to generateCREATE SEQUENCE IF NOT EXISTS
statements.
-
createViewIfNotExists
public final boolean createViewIfNotExists()
Whether to generateCREATE VIEW IF NOT EXISTS
statements.Not all RDBMS support this flag. Check
DSLContext.createViewIfNotExists(Table, Field...)
to see if yourSQLDialect
supports the clause.
-
createViewIfNotExists
public final DDLExportConfiguration createViewIfNotExists(boolean newCreateViewIfNotExists)
Whether to generateCREATE VIEW IF NOT EXISTS
statements.
-
createOrReplaceView
public final boolean createOrReplaceView()
Whether to generateCREATE OR REPLACE VIEW
statements.Not all RDBMS support this flag. Check
DSLContext.createOrReplaceView(Table, Field...)
to see if yourSQLDialect
supports the clause.
-
createOrReplaceView
public final DDLExportConfiguration createOrReplaceView(boolean newCreateOrReplaceView)
Whether to generateCREATE OR REPLACE VIEW
statements.
-
respectCatalogOrder
public final boolean respectCatalogOrder()
Whether to respect the catalog order produced by theMeta
source when generated catalog DDL.
-
respectCatalogOrder
public final DDLExportConfiguration respectCatalogOrder(boolean newRespectCatalogOrder)
Whether to respect the catalog order produced by theMeta
source when generated catalog DDL.
-
respectSchemaOrder
public final boolean respectSchemaOrder()
Whether to respect the schema order produced by theMeta
source when generated schema DDL.
-
respectSchemaOrder
public final DDLExportConfiguration respectSchemaOrder(boolean newRespectSchemaOrder)
Whether to respect the schema order produced by theMeta
source when generated schema DDL.
-
respectTableOrder
public final boolean respectTableOrder()
Whether to respect the table order produced by theMeta
source when generated table DDL.
-
respectTableOrder
public final DDLExportConfiguration respectTableOrder(boolean newRespectTableOrder)
Whether to respect the table order produced by theMeta
source when generated table DDL.
-
respectColumnOrder
public final boolean respectColumnOrder()
Whether to respect the column order produced by theMeta
source when generated column DDL.
-
respectColumnOrder
public final DDLExportConfiguration respectColumnOrder(boolean newRespectColumnOrder)
Whether to respect the column order produced by theMeta
source when generated column DDL.
-
respectConstraintOrder
public final boolean respectConstraintOrder()
Whether to respect the constraint order produced by theMeta
source when generated constraint DDL.
-
respectConstraintOrder
public final DDLExportConfiguration respectConstraintOrder(boolean newRespectConstraintOrder)
Whether to respect the constraint order produced by theMeta
source when generated constraint DDL.
-
respectIndexOrder
public final boolean respectIndexOrder()
Whether to respect the index order produced by theMeta
source when generated index DDL.
-
respectIndexOrder
public final DDLExportConfiguration respectIndexOrder(boolean newRespectIndexOrder)
Whether to respect the index order produced by theMeta
source when generated index DDL.
-
respectSequenceOrder
public final boolean respectSequenceOrder()
Whether to respect the sequence order produced by theMeta
source when generated sequence DDL.
-
respectSequenceOrder
public final DDLExportConfiguration respectSequenceOrder(boolean newRespectSequenceOrder)
Whether to respect the sequence order produced by theMeta
source 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.
-
-