Meta.ddl()
methods.- Author:
- Lukas Eder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Whether to inline foreign key constraint definitions with the table definition. -
Constructor Summary
ConstructorDescriptionCreate a new default export configuration instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Whether to generateCREATE DOMAIN IF NOT EXISTS
statements.final DDLExportConfiguration
createDomainIfNotExists
(boolean newCreateDomainIfNotExists) Whether to generateCREATE DOMAIN IF NOT EXISTS
statements.final boolean
Whether to generateCREATE INDEX IF NOT EXISTS
statements.final DDLExportConfiguration
createIndexIfNotExists
(boolean newCreateIndexIfNotExists) Whether to generateCREATE INDEX IF NOT EXISTS
statements.final boolean
Whether to generateCREATE OR REPLACE VIEW
statements.final DDLExportConfiguration
createOrReplaceView
(boolean newCreateOrReplaceView) Whether to generateCREATE OR REPLACE VIEW
statements.final boolean
Whether to generateCREATE SCHEMA IF NOT EXISTS
statements.final DDLExportConfiguration
createSchemaIfNotExists
(boolean newCreateSchemaIfNotExists) Whether to generateCREATE SCHEMA IF NOT EXISTS
statements.final boolean
Whether to generateCREATE SEQUENCE IF NOT EXISTS
statements.final DDLExportConfiguration
createSequenceIfNotExists
(boolean newCreateSequenceIfNotExists) Whether to generateCREATE SEQUENCE IF NOT EXISTS
statements.final boolean
Whether to generateCREATE TABLE IF NOT EXISTS
statements.final DDLExportConfiguration
createTableIfNotExists
(boolean newCreateTableIfNotExists) Whether to generateCREATE TABLE IF NOT EXISTS
statements.final boolean
Whether to generateCREATE VIEW IF NOT EXISTS
statements.final DDLExportConfiguration
createViewIfNotExists
(boolean newCreateViewIfNotExists) Whether to generateCREATE VIEW IF NOT EXISTS
statements.final boolean
Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.final DDLExportConfiguration
defaultSequenceFlags
(boolean newDefaultSequenceFlags) Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.flags()
TheDDLFlag
that are enabled on this configuration.final DDLExportConfiguration
flags
(Collection<DDLFlag> newFlags) TheDDLFlag
that are enabled on this configuration.final DDLExportConfiguration
TheDDLFlag
that are enabled on this configuration.final boolean
Whether to include constraints on views.final DDLExportConfiguration
includeConstraintsOnViews
(boolean newIncludeConstraintsOnViews) Whether to include constraints on views.Whether to inline foreign key constraint definitions with the table definition.final DDLExportConfiguration
inlineForeignKeyConstraints
(DDLExportConfiguration.InlineForeignKeyConstraints newInlineForeignKeyConstraints) Whether to inline foreign key constraint definitions with the table definition.final boolean
Whether to respect the catalog order produced by theMeta
source when generated catalog DDL.final DDLExportConfiguration
respectCatalogOrder
(boolean newRespectCatalogOrder) Whether to respect the catalog order produced by theMeta
source when generated catalog DDL.final boolean
Whether to respect the column order produced by theMeta
source when generated column DDL.final DDLExportConfiguration
respectColumnOrder
(boolean newRespectColumnOrder) Whether to respect the column order produced by theMeta
source when generated column DDL.final boolean
Whether to respect the constraint order produced by theMeta
source when generated constraint DDL.final DDLExportConfiguration
respectConstraintOrder
(boolean newRespectConstraintOrder) Whether to respect the constraint order produced by theMeta
source when generated constraint DDL.final boolean
Whether to respect the domain order produced by theMeta
source when generated domain DDL.final DDLExportConfiguration
respectDomainOrder
(boolean newRespectDomainOrder) Whether to respect the sequence order produced by theMeta
source when generated sequence DDL.final boolean
Whether to respect the index order produced by theMeta
source when generated index DDL.final DDLExportConfiguration
respectIndexOrder
(boolean newRespectIndexOrder) Whether to respect the index order produced by theMeta
source when generated index DDL.final boolean
Whether to respect the schema order produced by theMeta
source when generated schema DDL.final DDLExportConfiguration
respectSchemaOrder
(boolean newRespectSchemaOrder) Whether to respect the schema order produced by theMeta
source when generated schema DDL.final boolean
Whether to respect the sequence order produced by theMeta
source when generated sequence DDL.final DDLExportConfiguration
respectSequenceOrder
(boolean newRespectSequenceOrder) Whether to respect the sequence order produced by theMeta
source when generated sequence DDL.final boolean
Whether to respect the table order produced by theMeta
source when generated table DDL.final DDLExportConfiguration
respectTableOrder
(boolean newRespectTableOrder) Whether to respect the table order produced by theMeta
source when generated table DDL.
-
Constructor Details
-
DDLExportConfiguration
public DDLExportConfiguration()Create a new default export configuration instance.
-
-
Method Details
-
flags
TheDDLFlag
that are enabled on this configuration. -
flags
TheDDLFlag
that are enabled on this configuration. -
flags
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
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
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
Whether to generateCREATE INDEX IF NOT EXISTS
statements. -
createDomainIfNotExists
public final boolean createDomainIfNotExists()Whether to generateCREATE DOMAIN IF NOT EXISTS
statements.Not all RDBMS support this flag. Check
DSLContext.createDomainIfNotExists(Domain)
to see if yourSQLDialect
supports the clause. -
createDomainIfNotExists
Whether to generateCREATE DOMAIN 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
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
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
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
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
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
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
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
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
Whether to respect the index order produced by theMeta
source when generated index DDL. -
respectDomainOrder
public final boolean respectDomainOrder()Whether to respect the domain order produced by theMeta
source when generated domain DDL. -
respectDomainOrder
Whether to respect the sequence order produced by theMeta
source when generated sequence DDL. -
respectSequenceOrder
public final boolean respectSequenceOrder()Whether to respect the sequence order produced by theMeta
source when generated sequence DDL. -
respectSequenceOrder
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
Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly. -
includeConstraintsOnViews
public final boolean includeConstraintsOnViews()Whether to include constraints on views. -
includeConstraintsOnViews
Whether to include constraints on views. -
inlineForeignKeyConstraints
Whether to inline foreign key constraint definitions with the table definition. -
inlineForeignKeyConstraints
public final DDLExportConfiguration inlineForeignKeyConstraints(DDLExportConfiguration.InlineForeignKeyConstraints newInlineForeignKeyConstraints) Whether to inline foreign key constraint definitions with the table definition.
-