- 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 booleanalterTableAddMultiple()WhetherALTER TABLEstatements should add multiple columns and constraints in a single statement where supported.MigrationConfigurationalterTableAddMultiple(boolean newAlterTableAddMultiple)WhetherALTER TABLEstatements should add multiple columns and constraints in a single statement where supported.booleanalterTableDropCascade()WhetherALTER TABLE ..MigrationConfigurationalterTableDropCascade(boolean newAlterTableDropCascade)WhetherALTER TABLE ..booleanalterTableDropMultiple()WhetherALTER TABLEstatements should add multiple columns and constraints in a single statement where supported.MigrationConfigurationalterTableDropMultiple(boolean newAlterTableDropMultiple)WhetherALTER TABLEstatements should drop multiple columns and constraints in a single statement where supported.booleancreateOrReplaceView()Whether the views should be (create-or-)replaced or dropped and re-created.MigrationConfigurationcreateOrReplaceView(boolean newCreateOrReplaceView)Whether the views should be (create-or-)replaced or dropped and re-created.booleandropSchemaCascade()WhetherDROP SCHEMAstatements should have aCASCADEclause where supported.MigrationConfigurationdropSchemaCascade(boolean newDropSchemaCascade)WhetherDROP SCHEMAstatements should have aCASCADEclause where supported.booleandropTableCascade()WhetherDROP TABLEstatements should have aCASCADE [ CONSTRAINTS ]clause where supported.MigrationConfigurationdropTableCascade(boolean newDropTableCascade)WhetherDROP TABLEstatements should have aCASCADE [ CONSTRAINTS ]clause where supported.booleanrespectColumnOrder()Whether the column order should be respected in a migration.MigrationConfigurationrespectColumnOrder(boolean newRespectColumnOrder)Whether the column order should be respected in a migration.
-
-
-
Method Detail
-
alterTableAddMultiple
public final boolean alterTableAddMultiple()
WhetherALTER TABLEstatements should add multiple columns and constraints in a single statement where supported.
-
alterTableAddMultiple
public final MigrationConfiguration alterTableAddMultiple(boolean newAlterTableAddMultiple)
WhetherALTER TABLEstatements should add multiple columns and constraints in a single statement where supported.
-
alterTableDropMultiple
public final boolean alterTableDropMultiple()
WhetherALTER TABLEstatements should add multiple columns and constraints in a single statement where supported.
-
alterTableDropMultiple
public final MigrationConfiguration alterTableDropMultiple(boolean newAlterTableDropMultiple)
WhetherALTER TABLEstatements should drop multiple columns and constraints in a single statement where supported.
-
dropSchemaCascade
public final boolean dropSchemaCascade()
WhetherDROP SCHEMAstatements should have aCASCADEclause where supported.
-
dropSchemaCascade
public final MigrationConfiguration dropSchemaCascade(boolean newDropSchemaCascade)
WhetherDROP SCHEMAstatements should have aCASCADEclause where supported.
-
dropTableCascade
public final boolean dropTableCascade()
WhetherDROP TABLEstatements should have aCASCADE [ CONSTRAINTS ]clause where supported.
-
dropTableCascade
public final MigrationConfiguration dropTableCascade(boolean newDropTableCascade)
WhetherDROP TABLEstatements should have aCASCADE [ CONSTRAINTS ]clause where supported.
-
alterTableDropCascade
public final boolean alterTableDropCascade()
WhetherALTER TABLE .. DROPstatements should have aCASCADE [ CONSTRAINTS ]clause where supported.
-
alterTableDropCascade
public final MigrationConfiguration alterTableDropCascade(boolean newAlterTableDropCascade)
WhetherALTER TABLE .. DROPstatements 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.
-
-