Meta.ddl() methods.- Author:
- Lukas Eder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhether to inline foreign key constraint definitions with the table definition. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new default export configuration instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanWhether to generateCREATE DOMAIN IF NOT EXISTSstatements.final DDLExportConfigurationcreateDomainIfNotExists(boolean newCreateDomainIfNotExists) Whether to generateCREATE DOMAIN IF NOT EXISTSstatements.final booleanWhether to generateCREATE INDEX IF NOT EXISTSstatements.final DDLExportConfigurationcreateIndexIfNotExists(boolean newCreateIndexIfNotExists) Whether to generateCREATE INDEX IF NOT EXISTSstatements.final booleanWhether to generateCREATE MATERIALIZED VIEW IF NOT EXISTSstatements.final DDLExportConfigurationcreateMaterializedViewIfNotExists(boolean newCreateMaterializedViewIfNotExists) Whether to generateCREATE MATERIALIZED VIEW IF NOT EXISTSstatements.final booleanWhether to generateCREATE OR REPLACE MATERIALIZED VIEWstatements.final DDLExportConfigurationcreateOrReplaceMaterializedView(boolean newCreateOrReplaceMaterializedView) Whether to generateCREATE OR REPLACE MATERIALIZED VIEWstatements.final booleanWhether to generateCREATE OR REPLACE TRIGGERstatements.final DDLExportConfigurationcreateOrReplaceTrigger(boolean newCreateOrReplaceTrigger) Whether to generateCREATE OR REPLACE TRIGGERstatements.final booleanWhether to generateCREATE OR REPLACE VIEWstatements.final DDLExportConfigurationcreateOrReplaceView(boolean newCreateOrReplaceView) Whether to generateCREATE OR REPLACE VIEWstatements.final booleanWhether to generateCREATE SCHEMA IF NOT EXISTSstatements.final DDLExportConfigurationcreateSchemaIfNotExists(boolean newCreateSchemaIfNotExists) Whether to generateCREATE SCHEMA IF NOT EXISTSstatements.final booleanWhether to generateCREATE SEQUENCE IF NOT EXISTSstatements.final DDLExportConfigurationcreateSequenceIfNotExists(boolean newCreateSequenceIfNotExists) Whether to generateCREATE SEQUENCE IF NOT EXISTSstatements.final booleanWhether to generateCREATE TABLE IF NOT EXISTSstatements.final DDLExportConfigurationcreateTableIfNotExists(boolean newCreateTableIfNotExists) Whether to generateCREATE TABLE IF NOT EXISTSstatements.final booleanWhether to generateCREATE VIEW IF NOT EXISTSstatements.final DDLExportConfigurationcreateViewIfNotExists(boolean newCreateViewIfNotExists) Whether to generateCREATE VIEW IF NOT EXISTSstatements.final booleanWhether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.final DDLExportConfigurationdefaultSequenceFlags(boolean newDefaultSequenceFlags) Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.flags()TheDDLFlagthat are enabled on this configuration.final DDLExportConfigurationflags(Collection<DDLFlag> newFlags) TheDDLFlagthat are enabled on this configuration.final DDLExportConfigurationTheDDLFlagthat are enabled on this configuration.final booleanWhether to include constraints on views.final DDLExportConfigurationincludeConstraintsOnViews(boolean newIncludeConstraintsOnViews) Whether to include constraints on views.Whether to inline foreign key constraint definitions with the table definition.final DDLExportConfigurationinlineForeignKeyConstraints(DDLExportConfiguration.InlineForeignKeyConstraints newInlineForeignKeyConstraints) Whether to inline foreign key constraint definitions with the table definition.final booleanWhether to respect the catalog order produced by theMetasource when generated catalog DDL.final DDLExportConfigurationrespectCatalogOrder(boolean newRespectCatalogOrder) Whether to respect the catalog order produced by theMetasource when generated catalog DDL.final booleanWhether to respect the column order produced by theMetasource when generated column DDL.final DDLExportConfigurationrespectColumnOrder(boolean newRespectColumnOrder) Whether to respect the column order produced by theMetasource when generated column DDL.final booleanWhether to respect the constraint order produced by theMetasource when generated constraint DDL.final DDLExportConfigurationrespectConstraintOrder(boolean newRespectConstraintOrder) Whether to respect the constraint order produced by theMetasource when generated constraint DDL.final booleanWhether to respect the domain order produced by theMetasource when generated domain DDL.final DDLExportConfigurationrespectDomainOrder(boolean newRespectDomainOrder) Whether to respect the sequence order produced by theMetasource when generated sequence DDL.final booleanWhether to respect the index order produced by theMetasource when generated index DDL.final DDLExportConfigurationrespectIndexOrder(boolean newRespectIndexOrder) Whether to respect the index order produced by theMetasource when generated index DDL.final booleanWhether to respect the schema order produced by theMetasource when generated schema DDL.final DDLExportConfigurationrespectSchemaOrder(boolean newRespectSchemaOrder) Whether to respect the schema order produced by theMetasource when generated schema DDL.final booleanWhether to respect the sequence order produced by theMetasource when generated sequence DDL.final DDLExportConfigurationrespectSequenceOrder(boolean newRespectSequenceOrder) Whether to respect the sequence order produced by theMetasource when generated sequence DDL.final booleanWhether to respect the table order produced by theMetasource when generated table DDL.final DDLExportConfigurationrespectTableOrder(boolean newRespectTableOrder) Whether to respect the table order produced by theMetasource when generated table DDL.final booleanWhether to respect the trigger order produced by theMetasource when generated trigger DDL.final DDLExportConfigurationrespectTriggerOrder(boolean newRespectTriggerOrder) Whether to respect the trigger order produced by theMetasource when generated trigger DDL.
-
Constructor Details
-
DDLExportConfiguration
public DDLExportConfiguration()Create a new default export configuration instance.
-
-
Method Details
-
flags
TheDDLFlagthat are enabled on this configuration. -
flags
TheDDLFlagthat are enabled on this configuration. -
flags
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
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
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
Whether to generateCREATE INDEX IF NOT EXISTSstatements. -
createDomainIfNotExists
public final boolean createDomainIfNotExists()Whether to generateCREATE DOMAIN IF NOT EXISTSstatements.Not all RDBMS support this flag. Check
DSLContext.createDomainIfNotExists(Domain)to see if yourSQLDialectsupports the clause. -
createDomainIfNotExists
Whether to generateCREATE DOMAIN 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
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
Whether to generateCREATE VIEW IF NOT EXISTSstatements. -
createMaterializedViewIfNotExists
public final boolean createMaterializedViewIfNotExists()Whether to generateCREATE MATERIALIZED VIEW IF NOT EXISTSstatements.Not all RDBMS support this flag. Check
DSLContext.createMaterializedViewIfNotExists(Table, Field...)to see if yourSQLDialectsupports the clause. -
createMaterializedViewIfNotExists
public final DDLExportConfiguration createMaterializedViewIfNotExists(boolean newCreateMaterializedViewIfNotExists) Whether to generateCREATE MATERIALIZED 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
Whether to generateCREATE OR REPLACE VIEWstatements. -
createOrReplaceMaterializedView
public final boolean createOrReplaceMaterializedView()Whether to generateCREATE OR REPLACE MATERIALIZED VIEWstatements.Not all RDBMS support this flag. Check
DSLContext.createOrReplaceMaterializedView(Table, Field...)to see if yourSQLDialectsupports the clause. -
createOrReplaceMaterializedView
public final DDLExportConfiguration createOrReplaceMaterializedView(boolean newCreateOrReplaceMaterializedView) Whether to generateCREATE OR REPLACE MATERIALIZED VIEWstatements. -
createOrReplaceTrigger
Whether to generateCREATE OR REPLACE TRIGGERstatements.Not all RDBMS support this flag. Check
DSLContext.createOrReplaceTrigger(Trigger)to see if yourSQLDialectsupports the clause. -
createOrReplaceTrigger
Whether to generateCREATE OR REPLACE TRIGGERstatements. -
respectCatalogOrder
public final boolean respectCatalogOrder()Whether to respect the catalog order produced by theMetasource when generated catalog DDL. -
respectCatalogOrder
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
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
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
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
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
Whether to respect the index order produced by theMetasource when generated index DDL. -
respectDomainOrder
public final boolean respectDomainOrder()Whether to respect the domain order produced by theMetasource when generated domain DDL. -
respectDomainOrder
Whether to respect the sequence order produced by theMetasource when generated sequence DDL. -
respectSequenceOrder
public final boolean respectSequenceOrder()Whether to respect the sequence order produced by theMetasource when generated sequence DDL. -
respectSequenceOrder
Whether to respect the sequence order produced by theMetasource when generated sequence DDL. -
respectTriggerOrder
Whether to respect the trigger order produced by theMetasource when generated trigger DDL. -
respectTriggerOrder
Whether to respect the trigger order produced by theMetasource when generated trigger 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.
-