Top Description Fields Constructors Methods
org.jooq

public final Class MigrationConfiguration

extends Object
Class Inheritance
Annotations
@Experimental
Imports
org.jetbrains.annotations.ApiStatus.Experimental

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

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean

Constructor Summary

AccessConstructor and Description
public
MigrationConfiguration()

Create a new default export configuration instance.

private
MigrationConfiguration(boolean alterTableAddMultiple, boolean alterTableDropMultiple, boolean dropSchemaCascade, boolean dropTableCascade, boolean alterTableDropCascade, boolean createOrReplaceView, boolean respectColumnOrder)

Method Summary

Modifier and TypeMethod and Description
public final boolean
alterTableAddMultiple()

Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.

public final MigrationConfiguration
alterTableAddMultiple(boolean newAlterTableAddMultiple)

Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.

public final boolean
alterTableDropCascade()

Whether ALTER TABLE … DROP statements should have a CASCADE [ CONSTRAINTS ] clause where supported.

public final MigrationConfiguration
alterTableDropCascade(boolean newAlterTableDropCascade)

Whether ALTER TABLE … DROP statements should have a CASCADE [ CONSTRAINTS ] clause where supported.

public final boolean
alterTableDropMultiple()

Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.

public final MigrationConfiguration
alterTableDropMultiple(boolean newAlterTableDropMultiple)

Whether ALTER TABLE statements should drop multiple columns and constraints in a single statement where supported.

public final boolean
createOrReplaceView()

Whether the views should be (create-or-)replaced or dropped and re-created.

public final MigrationConfiguration
createOrReplaceView(boolean newCreateOrReplaceView)

Whether the views should be (create-or-)replaced or dropped and re-created.

public final boolean
dropSchemaCascade()

Whether DROP SCHEMA statements should have a CASCADE clause where supported.

public final MigrationConfiguration
dropSchemaCascade(boolean newDropSchemaCascade)

Whether DROP SCHEMA statements should have a CASCADE clause where supported.

public final boolean
dropTableCascade()

Whether DROP TABLE statements should have a CASCADE [ CONSTRAINTS ] clause where supported.

public final MigrationConfiguration
dropTableCascade(boolean newDropTableCascade)

Whether DROP TABLE statements should have a CASCADE [ CONSTRAINTS ] clause where supported.

public final boolean
respectColumnOrder()

Whether the column order should be respected in a migration.

public final MigrationConfiguration
respectColumnOrder(boolean newRespectColumnOrder)

Whether the column order should be respected in a migration.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alterTableAddMultipleback to summary
private final boolean alterTableAddMultiple
alterTableDropCascadeback to summary
private final boolean alterTableDropCascade
alterTableDropMultipleback to summary
private final boolean alterTableDropMultiple
createOrReplaceViewback to summary
private final boolean createOrReplaceView
dropSchemaCascadeback to summary
private final boolean dropSchemaCascade
dropTableCascadeback to summary
private final boolean dropTableCascade
respectColumnOrderback to summary
private final boolean respectColumnOrder

Constructor Detail

MigrationConfigurationback to summary
public MigrationConfiguration()

Create a new default export configuration instance.

MigrationConfigurationback to summary
private MigrationConfiguration(boolean alterTableAddMultiple, boolean alterTableDropMultiple, boolean dropSchemaCascade, boolean dropTableCascade, boolean alterTableDropCascade, boolean createOrReplaceView, boolean respectColumnOrder)

Method Detail

alterTableAddMultipleback to summary
public final boolean alterTableAddMultiple()

Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.

alterTableAddMultipleback to summary
public final MigrationConfiguration alterTableAddMultiple(boolean newAlterTableAddMultiple)

Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.

alterTableDropCascadeback to summary
public final boolean alterTableDropCascade()

Whether ALTER TABLE … DROP statements should have a CASCADE [ CONSTRAINTS ] clause where supported.

alterTableDropCascadeback to summary
public final MigrationConfiguration alterTableDropCascade(boolean newAlterTableDropCascade)

Whether ALTER TABLE … DROP statements should have a CASCADE [ CONSTRAINTS ] clause where supported.

alterTableDropMultipleback to summary
public final boolean alterTableDropMultiple()

Whether ALTER TABLE statements should add multiple columns and constraints in a single statement where supported.

alterTableDropMultipleback to summary
public final MigrationConfiguration alterTableDropMultiple(boolean newAlterTableDropMultiple)

Whether ALTER TABLE statements should drop multiple columns and constraints in a single statement where supported.

createOrReplaceViewback to summary
public final boolean createOrReplaceView()

Whether the views should be (create-or-)replaced or dropped and re-created.

createOrReplaceViewback to summary
public final MigrationConfiguration createOrReplaceView(boolean newCreateOrReplaceView)

Whether the views should be (create-or-)replaced or dropped and re-created.

dropSchemaCascadeback to summary
public final boolean dropSchemaCascade()

Whether DROP SCHEMA statements should have a CASCADE clause where supported.

dropSchemaCascadeback to summary
public final MigrationConfiguration dropSchemaCascade(boolean newDropSchemaCascade)

Whether DROP SCHEMA statements should have a CASCADE clause where supported.

dropTableCascadeback to summary
public final boolean dropTableCascade()

Whether DROP TABLE statements should have a CASCADE [ CONSTRAINTS ] clause where supported.

dropTableCascadeback to summary
public final MigrationConfiguration dropTableCascade(boolean newDropTableCascade)

Whether DROP TABLE statements should have a CASCADE [ CONSTRAINTS ] clause where supported.

respectColumnOrderback to summary
public final boolean respectColumnOrder()

Whether the column order should be respected in a migration.

respectColumnOrderback to summary
public final MigrationConfiguration respectColumnOrder(boolean newRespectColumnOrder)

Whether the column order should be respected in a migration.