Module org.jooq
Package org.jooq

Class DDLExportConfiguration

java.lang.Object
org.jooq.DDLExportConfiguration

public final class DDLExportConfiguration extends Object
A configuration type for use with the various Meta.ddl() methods.
Author:
Lukas Eder
  • Constructor Details Link icon

    • DDLExportConfiguration Link icon

      public DDLExportConfiguration()
      Create a new default export configuration instance.
  • Method Details Link icon

    • flags Link icon

      public final Set<DDLFlag> flags()
      The DDLFlag that are enabled on this configuration.
    • flags Link icon

      public final DDLExportConfiguration flags(DDLFlag... newFlags)
      The DDLFlag that are enabled on this configuration.
    • flags Link icon

      public final DDLExportConfiguration flags(Collection<DDLFlag> newFlags)
      The DDLFlag that are enabled on this configuration.
    • createSchemaIfNotExists Link icon

      public final boolean createSchemaIfNotExists()
      Whether to generate CREATE SCHEMA IF NOT EXISTS statements.

      Not all RDBMS support this flag. Check DSLContext.createSchemaIfNotExists(Schema) to see if your SQLDialect supports the clause.

    • createSchemaIfNotExists Link icon

      public final DDLExportConfiguration createSchemaIfNotExists(boolean newCreateSchemaIfNotExists)
      Whether to generate CREATE SCHEMA IF NOT EXISTS statements.
    • createTableIfNotExists Link icon

      public final boolean createTableIfNotExists()
      Whether to generate CREATE TABLE IF NOT EXISTS statements.

      Not all RDBMS support this flag. Check DSLContext.createTableIfNotExists(Table) to see if your SQLDialect supports the clause.

    • createTableIfNotExists Link icon

      public final DDLExportConfiguration createTableIfNotExists(boolean newCreateTableIfNotExists)
      Whether to generate CREATE TABLE IF NOT EXISTS statements.
    • createIndexIfNotExists Link icon

      public final boolean createIndexIfNotExists()
      Whether to generate CREATE INDEX IF NOT EXISTS statements.

      Not all RDBMS support this flag. Check DSLContext.createIndexIfNotExists(Index) to see if your SQLDialect supports the clause.

    • createIndexIfNotExists Link icon

      public final DDLExportConfiguration createIndexIfNotExists(boolean newCreateIndexIfNotExists)
      Whether to generate CREATE INDEX IF NOT EXISTS statements.
    • createDomainIfNotExists Link icon

      public final boolean createDomainIfNotExists()
      Whether to generate CREATE DOMAIN IF NOT EXISTS statements.

      Not all RDBMS support this flag. Check DSLContext.createDomainIfNotExists(Domain) to see if your SQLDialect supports the clause.

    • createDomainIfNotExists Link icon

      public final DDLExportConfiguration createDomainIfNotExists(boolean newCreateDomainIfNotExists)
      Whether to generate CREATE DOMAIN IF NOT EXISTS statements.
    • createSequenceIfNotExists Link icon

      public final boolean createSequenceIfNotExists()
      Whether to generate CREATE SEQUENCE IF NOT EXISTS statements.

      Not all RDBMS support this flag. Check DSLContext.createSequenceIfNotExists(Sequence) to see if your SQLDialect supports the clause.

    • createSequenceIfNotExists Link icon

      public final DDLExportConfiguration createSequenceIfNotExists(boolean newCreateSequenceIfNotExists)
      Whether to generate CREATE SEQUENCE IF NOT EXISTS statements.
    • createViewIfNotExists Link icon

      public final boolean createViewIfNotExists()
      Whether to generate CREATE VIEW IF NOT EXISTS statements.

      Not all RDBMS support this flag. Check DSLContext.createViewIfNotExists(Table, Field...) to see if your SQLDialect supports the clause.

    • createViewIfNotExists Link icon

      public final DDLExportConfiguration createViewIfNotExists(boolean newCreateViewIfNotExists)
      Whether to generate CREATE VIEW IF NOT EXISTS statements.
    • createMaterializedViewIfNotExists Link icon

      public final boolean createMaterializedViewIfNotExists()
      Whether to generate CREATE MATERIALIZED VIEW IF NOT EXISTS statements.

      Not all RDBMS support this flag. Check DSLContext.createMaterializedViewIfNotExists(Table, Field...) to see if your SQLDialect supports the clause.

    • createMaterializedViewIfNotExists Link icon

      public final DDLExportConfiguration createMaterializedViewIfNotExists(boolean newCreateMaterializedViewIfNotExists)
      Whether to generate CREATE MATERIALIZED VIEW IF NOT EXISTS statements.
    • createOrReplaceView Link icon

      public final boolean createOrReplaceView()
      Whether to generate CREATE OR REPLACE VIEW statements.

      Not all RDBMS support this flag. Check DSLContext.createOrReplaceView(Table, Field...) to see if your SQLDialect supports the clause.

    • createOrReplaceView Link icon

      public final DDLExportConfiguration createOrReplaceView(boolean newCreateOrReplaceView)
      Whether to generate CREATE OR REPLACE VIEW statements.
    • createOrReplaceMaterializedView Link icon

      public final boolean createOrReplaceMaterializedView()
      Whether to generate CREATE OR REPLACE MATERIALIZED VIEW statements.

      Not all RDBMS support this flag. Check DSLContext.createOrReplaceMaterializedView(Table, Field...) to see if your SQLDialect supports the clause.

    • createOrReplaceMaterializedView Link icon

      public final DDLExportConfiguration createOrReplaceMaterializedView(boolean newCreateOrReplaceMaterializedView)
      Whether to generate CREATE OR REPLACE MATERIALIZED VIEW statements.
    • createOrReplaceTrigger Link icon

      @Pro public final boolean createOrReplaceTrigger()
      Whether to generate CREATE OR REPLACE TRIGGER statements.

      Not all RDBMS support this flag. Check DSLContext.createOrReplaceTrigger(Trigger) to see if your SQLDialect supports the clause.

    • createOrReplaceTrigger Link icon

      @Pro public final DDLExportConfiguration createOrReplaceTrigger(boolean newCreateOrReplaceTrigger)
      Whether to generate CREATE OR REPLACE TRIGGER statements.
    • respectCatalogOrder Link icon

      public final boolean respectCatalogOrder()
      Whether to respect the catalog order produced by the Meta source when generated catalog DDL.
    • respectCatalogOrder Link icon

      public final DDLExportConfiguration respectCatalogOrder(boolean newRespectCatalogOrder)
      Whether to respect the catalog order produced by the Meta source when generated catalog DDL.
    • respectSchemaOrder Link icon

      public final boolean respectSchemaOrder()
      Whether to respect the schema order produced by the Meta source when generated schema DDL.
    • respectSchemaOrder Link icon

      public final DDLExportConfiguration respectSchemaOrder(boolean newRespectSchemaOrder)
      Whether to respect the schema order produced by the Meta source when generated schema DDL.
    • respectTableOrder Link icon

      public final boolean respectTableOrder()
      Whether to respect the table order produced by the Meta source when generated table DDL.
    • respectTableOrder Link icon

      public final DDLExportConfiguration respectTableOrder(boolean newRespectTableOrder)
      Whether to respect the table order produced by the Meta source when generated table DDL.
    • respectColumnOrder Link icon

      public final boolean respectColumnOrder()
      Whether to respect the column order produced by the Meta source when generated column DDL.
    • respectColumnOrder Link icon

      public final DDLExportConfiguration respectColumnOrder(boolean newRespectColumnOrder)
      Whether to respect the column order produced by the Meta source when generated column DDL.
    • respectConstraintOrder Link icon

      public final boolean respectConstraintOrder()
      Whether to respect the constraint order produced by the Meta source when generated constraint DDL.
    • respectConstraintOrder Link icon

      public final DDLExportConfiguration respectConstraintOrder(boolean newRespectConstraintOrder)
      Whether to respect the constraint order produced by the Meta source when generated constraint DDL.
    • respectIndexOrder Link icon

      public final boolean respectIndexOrder()
      Whether to respect the index order produced by the Meta source when generated index DDL.
    • respectIndexOrder Link icon

      public final DDLExportConfiguration respectIndexOrder(boolean newRespectIndexOrder)
      Whether to respect the index order produced by the Meta source when generated index DDL.
    • respectDomainOrder Link icon

      public final boolean respectDomainOrder()
      Whether to respect the domain order produced by the Meta source when generated domain DDL.
    • respectDomainOrder Link icon

      public final DDLExportConfiguration respectDomainOrder(boolean newRespectDomainOrder)
      Whether to respect the sequence order produced by the Meta source when generated sequence DDL.
    • respectSequenceOrder Link icon

      public final boolean respectSequenceOrder()
      Whether to respect the sequence order produced by the Meta source when generated sequence DDL.
    • respectSequenceOrder Link icon

      public final DDLExportConfiguration respectSequenceOrder(boolean newRespectSequenceOrder)
      Whether to respect the sequence order produced by the Meta source when generated sequence DDL.
    • respectTriggerOrder Link icon

      @Pro public final boolean respectTriggerOrder()
      Whether to respect the trigger order produced by the Meta source when generated trigger DDL.
    • respectTriggerOrder Link icon

      @Pro public final DDLExportConfiguration respectTriggerOrder(boolean newRespectTriggerOrder)
      Whether to respect the trigger order produced by the Meta source when generated trigger DDL.
    • defaultSequenceFlags Link icon

      public final boolean defaultSequenceFlags()
      Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.
    • defaultSequenceFlags Link icon

      public final DDLExportConfiguration defaultSequenceFlags(boolean newDefaultSequenceFlags)
      Whether to explicitly produce defaults for all sequence flags, when they're not defined explicitly.
    • includeConstraintsOnViews Link icon

      public final boolean includeConstraintsOnViews()
      Whether to include constraints on views.
    • includeConstraintsOnViews Link icon

      public final DDLExportConfiguration includeConstraintsOnViews(boolean newIncludeConstraintsOnViews)
      Whether to include constraints on views.
    • inlineForeignKeyConstraints Link icon

      public final DDLExportConfiguration.InlineForeignKeyConstraints inlineForeignKeyConstraints()
      Whether to inline foreign key constraint definitions with the table definition.
    • inlineForeignKeyConstraints Link icon

      public final DDLExportConfiguration inlineForeignKeyConstraints(DDLExportConfiguration.InlineForeignKeyConstraints newInlineForeignKeyConstraints)
      Whether to inline foreign key constraint definitions with the table definition.