Module org.jooq
Package org.jooq

Class MigrationConfiguration


  • @Internal
    public final class MigrationConfiguration
    extends Object
    A configuration type for use with the various Meta.migrateTo(Meta) methods.

    This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.

    Author:
    Lukas Eder
    • Constructor Detail

      • MigrationConfiguration

        public MigrationConfiguration()
        Create a new default export configuration instance.
    • Method Detail

      • alterTableAddMultiple

        public final boolean alterTableAddMultiple()
        Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.
      • alterTableAddMultiple

        public final MigrationConfiguration alterTableAddMultiple​(boolean newAlterTableAddMultiple)
        Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.
      • alterTableDropMultiple

        public final boolean alterTableDropMultiple()
        Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.
      • alterTableDropMultiple

        public final MigrationConfiguration alterTableDropMultiple​(boolean newAlterTableDropMultiple)
        Whether ALTER TABLE statements should drop multiple columns and constraints in a single statement where supported.
      • dropSchemaCascade

        public final boolean dropSchemaCascade()
        Whether DROP SCHEMA statements should have a CASCADE clause where supported.
      • dropSchemaCascade

        public final MigrationConfiguration dropSchemaCascade​(boolean newDropSchemaCascade)
        Whether DROP SCHEMA statements should have a CASCADE clause where supported.
      • dropTableCascade

        public final boolean dropTableCascade()
        Whether DROP TABLE statements should have a CASCADE [ CONSTRAINTS ] clause where supported.
      • dropTableCascade

        public final MigrationConfiguration dropTableCascade​(boolean newDropTableCascade)
        Whether DROP TABLE statements should have a CASCADE [ CONSTRAINTS ] clause where supported.
      • alterTableDropCascade

        public final boolean alterTableDropCascade()
        Whether ALTER TABLE .. DROP statements should have a CASCADE [ CONSTRAINTS ] clause where supported.
      • alterTableDropCascade

        public final MigrationConfiguration alterTableDropCascade​(boolean newAlterTableDropCascade)
        Whether ALTER TABLE .. DROP statements should have a CASCADE [ CONSTRAINTS ] clause where supported.
      • createOrReplaceView

        public final boolean createOrReplaceView()
        Whether the views should be (create-or-)replaced or dropped and re-created.
      • createOrReplaceView

        public final MigrationConfiguration createOrReplaceView​(boolean newCreateOrReplaceView)
        Whether the views should be (create-or-)replaced or dropped and re-created.
      • respectColumnOrder

        public final boolean respectColumnOrder()
        Whether the column order should be respected in a migration.
      • respectColumnOrder

        public final MigrationConfiguration respectColumnOrder​(boolean newRespectColumnOrder)
        Whether the column order should be respected in a migration.