- java.lang.Object
-
- org.jooq.MigrationConfiguration
-
@Internal public final class MigrationConfiguration extends Object
A configuration type for use with the variousMeta.migrateTo(Meta)
methods.This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
- Author:
- Lukas Eder
-
-
Constructor Summary
Constructors Constructor Description MigrationConfiguration()
Create a new default export configuration instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
alterTableAddMultiple()
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.MigrationConfiguration
alterTableAddMultiple(boolean newAlterTableAddMultiple)
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.boolean
alterTableDropCascade()
WhetherALTER TABLE ..
MigrationConfiguration
alterTableDropCascade(boolean newAlterTableDropCascade)
WhetherALTER TABLE ..
boolean
alterTableDropMultiple()
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.MigrationConfiguration
alterTableDropMultiple(boolean newAlterTableDropMultiple)
WhetherALTER TABLE
statements should drop multiple columns and constraints in a single statement where supported.boolean
createOrReplaceView()
Whether the views should be (create-or-)replaced or dropped and re-created.MigrationConfiguration
createOrReplaceView(boolean newCreateOrReplaceView)
Whether the views should be (create-or-)replaced or dropped and re-created.boolean
dropSchemaCascade()
WhetherDROP SCHEMA
statements should have aCASCADE
clause where supported.MigrationConfiguration
dropSchemaCascade(boolean newDropSchemaCascade)
WhetherDROP SCHEMA
statements should have aCASCADE
clause where supported.boolean
dropTableCascade()
WhetherDROP TABLE
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.MigrationConfiguration
dropTableCascade(boolean newDropTableCascade)
WhetherDROP TABLE
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.boolean
respectColumnOrder()
Whether the column order should be respected in a migration.MigrationConfiguration
respectColumnOrder(boolean newRespectColumnOrder)
Whether the column order should be respected in a migration.
-
-
-
Method Detail
-
alterTableAddMultiple
public final boolean alterTableAddMultiple()
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.
-
alterTableAddMultiple
public final MigrationConfiguration alterTableAddMultiple(boolean newAlterTableAddMultiple)
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.
-
alterTableDropMultiple
public final boolean alterTableDropMultiple()
WhetherALTER TABLE
statements should add multiple columns and constraints in a single statement where supported.
-
alterTableDropMultiple
public final MigrationConfiguration alterTableDropMultiple(boolean newAlterTableDropMultiple)
WhetherALTER TABLE
statements should drop multiple columns and constraints in a single statement where supported.
-
dropSchemaCascade
public final boolean dropSchemaCascade()
WhetherDROP SCHEMA
statements should have aCASCADE
clause where supported.
-
dropSchemaCascade
public final MigrationConfiguration dropSchemaCascade(boolean newDropSchemaCascade)
WhetherDROP SCHEMA
statements should have aCASCADE
clause where supported.
-
dropTableCascade
public final boolean dropTableCascade()
WhetherDROP TABLE
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.
-
dropTableCascade
public final MigrationConfiguration dropTableCascade(boolean newDropTableCascade)
WhetherDROP TABLE
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.
-
alterTableDropCascade
public final boolean alterTableDropCascade()
WhetherALTER TABLE .. DROP
statements should have aCASCADE [ CONSTRAINTS ]
clause where supported.
-
alterTableDropCascade
public final MigrationConfiguration alterTableDropCascade(boolean newAlterTableDropCascade)
WhetherALTER TABLE .. DROP
statements should have aCASCADE [ 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.
-
-