Top Inners Fields Constructors Methods
org.jooq.impl

pack-priv final Class MigrationImpl

extends AbstractScope
implements Migration
Class Inheritance
All Implemented Interfaces
org.jooq.Migration, org.jooq.Scope
Static Imports
java.lang.Boolean.FALSE, .Boolean.TRUE, java.util.Arrays.asList, org.jooq.impl.DSL.createSchemaIfNotExists, .DSL.dropSchemaIfExists, .DSL.dropTableIfExists, .DSL.inline, .DSL.name, .DSL.schema, .MigrationImpl.Status.FAILURE, .MigrationImpl.Status.MIGRATING, .MigrationImpl.Status.REVERTING, .MigrationImpl.Status.STARTING, .MigrationImpl.Status.SUCCESS

Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
MigrationImpl.JooqMigrationsChangelog

Deprecated as a consequence of TableImpl being deprecated.
The migration log of jOOQ Migrations.
pack-priv static class
MigrationImpl.JooqMigrationsChangelogRecord

The migration log of jOOQ Migrations.

pack-priv static enum

Field Summary

Modifier and TypeField and Description
private static final MigrationImpl.JooqMigrationsChangelog
CHANGELOG

Deprecated as a consequence of MigrationImpl.JooqMigrationsChangelog being deprecated.
private Commits
private Commit
private static final JooqLogger
private Queries
private final Commit
Inherited from org.jooq.impl.AbstractScope:
configurationcreationTimedata

Constructor Summary

AccessConstructor and Description
pack-priv
MigrationImpl(Configuration configuration, Commit to)

Method Summary

Modifier and TypeMethod and Description
private final Commits
private final MigrationImpl.JooqMigrationsChangelogRecord
private final Commit
public final void
execute()

Implements org.jooq.Migration.execute.

Apply the migration.
private final void
private final boolean
public final Commit
from()

Implements org.jooq.Migration.from.

The version that is being migrated from.
public final void
init()

Initialise the underlying Configuration with the jOOQ Migrations Changelog.

private final Collection<Schema>
lookup(List<Schema> schemas)

private final DefaultMigrationContext
public final Queries
queries()

Implements org.jooq.Migration.queries.

The queries that are executed by the migration.
private final void
private final Queries
revertUntrackedQueries(Set<Schema> includedSchemas)

private final void
private final Set<Schema>
public final Commit
to()

Implements org.jooq.Migration.to.

The version that is being migrated to.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public final void
validate()

Implements org.jooq.Migration.validate.

Validate a migration.
private final void
private final void
Inherited from org.jooq.impl.AbstractScope:
configurationcreationTimedatadatadatadialectdslfamilysettings

Field Detail

CHANGELOGback to summary
private static final MigrationImpl.JooqMigrationsChangelog CHANGELOG

Deprecated

as a consequence of MigrationImpl.JooqMigrationsChangelog being deprecated. See corresponding docs for further information.

commitsback to summary
private Commits commits
fromback to summary
private Commit from
logback to summary
private static final JooqLogger log
queriesback to summary
private Queries queries
toback to summary
private final Commit to

Constructor Detail

MigrationImplback to summary
pack-priv MigrationImpl(Configuration configuration, Commit to)

Method Detail

commitsback to summary
private final Commits commits()
currentChangelogRecordback to summary
private final MigrationImpl.JooqMigrationsChangelogRecord currentChangelogRecord()
currentCommitback to summary
private final Commit currentCommit()
executeback to summary
public final void execute()

Implements org.jooq.Migration.execute.

Doc from org.jooq.Migration.execute.

Apply the migration.

Annotations
@Override
executeback to summary
private final void execute(DefaultMigrationContext ctx, MigrationListener listener, Queries q)
existsChangelogback to summary
private final boolean existsChangelog()
fromback to summary
public final Commit from()

Implements org.jooq.Migration.from.

Doc from org.jooq.Migration.from.

The version that is being migrated from.

Annotations
@Override
initback to summary
public final void init()

Initialise the underlying Configuration with the jOOQ Migrations Changelog.

lookupback to summary
private final Collection<Schema> lookup(List<Schema> schemas)
migrationContextback to summary
private final DefaultMigrationContext migrationContext()
queriesback to summary
public final Queries queries()

Implements org.jooq.Migration.queries.

Doc from org.jooq.Migration.queries.

The queries that are executed by the migration.

Annotations
@Override
revertUntrackedback to summary
private final void revertUntracked(DefaultMigrationContext ctx, MigrationListener listener, MigrationImpl.JooqMigrationsChangelogRecord currentRecord)
revertUntrackedQueriesback to summary
private final Queries revertUntrackedQueries(Set<Schema> includedSchemas)
runback to summary
private final void run(final ContextTransactionalRunnable runnable)
schemasback to summary
private final Set<Schema> schemas()
toback to summary
public final Commit to()

Implements org.jooq.Migration.to.

Doc from org.jooq.Migration.to.

The version that is being migrated to.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
validateback to summary
public final void validate()

Implements org.jooq.Migration.validate.

Doc from org.jooq.Migration.validate.

Validate a migration.

Annotations
@Override
validate0back to summary
private final void validate0(DefaultMigrationContext ctx)
validateCommitProviderback to summary
private final void validateCommitProvider(DefaultMigrationContext ctx, Commit commit)
org.jooq.impl back to summary

pack-priv Class MigrationImpl.JooqMigrationsChangelog

extends TableImpl<MigrationImpl.JooqMigrationsChangelogRecord>
Class Inheritance
Annotations
@SuppressWarnings:all, unchecked, rawtypes

Deprecated

as a consequence of TableImpl being deprecated. See corresponding docs for further information.

The migration log of jOOQ Migrations.

Field Summary

Modifier and TypeField and Description
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, Long>
ID

The column JOOQ_MIGRATIONS_CHANGELOG.ID.

public static final MigrationImpl.JooqMigrationsChangelog
JOOQ_MIGRATIONS_CHANGELOG

The reference instance of JOOQ_MIGRATIONS_CHANGELOG

public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, String>
JOOQ_VERSION

The column JOOQ_MIGRATIONS_CHANGELOG.JOOQ_VERSION.

public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, Timestamp>
MIGRATED_AT

The column JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_AT.

public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, String>
MIGRATED_FROM

The column JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_FROM.

public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, String>
MIGRATED_TO

The column JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_TO.

public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, Long>
MIGRATION_TIME

The column JOOQ_MIGRATIONS_CHANGELOG.MIGRATION_TIME.

public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, String>
SQL

The column JOOQ_MIGRATIONS_CHANGELOG.SQL.

public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, Integer>
SQL_COUNT

The column JOOQ_MIGRATIONS_CHANGELOG.SQL_COUNT.

public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, MigrationImpl.Status>
STATUS

The column JOOQ_MIGRATIONS_CHANGELOG.JOOQ_VERSION.

Inherited from org.jooq.impl.TableImpl:
aliaschildchildPathfieldsparameters

Constructor Summary

AccessConstructor and Description
public
JooqMigrationsChangelog()

Create a JOOQ_MIGRATIONS_CHANGELOG table reference

public
JooqMigrationsChangelog(String alias)

Create an aliased JOOQ_MIGRATIONS_CHANGELOG table reference

public
JooqMigrationsChangelog(Name alias)

Create an aliased JOOQ_MIGRATIONS_CHANGELOG table reference

private
private
JooqMigrationsChangelog(Name alias, Table<MigrationImpl.JooqMigrationsChangelogRecord> aliased, Field<?>[] parameters)

Deprecated as a consequence of Field being deprecated.

Method Summary

Modifier and TypeMethod and Description
public UniqueKey<MigrationImpl.JooqMigrationsChangelogRecord>
getPrimaryKey()

Overrides org.jooq.impl.AbstractTable.getPrimaryKey.

Implements org.jooq.Table.getPrimaryKey.

Retrieve the table's primary key

Subclasses may override this method

public Class<MigrationImpl.JooqMigrationsChangelogRecord>
getRecordType()

Overrides org.jooq.impl.TableImpl.getRecordType.

Implements org.jooq.RecordQualifier.getRecordType.

The class holding records for this type
Inherited from org.jooq.impl.TableImpl:
acceptaliasedasasclausesdeclaresTablesequalsfieldfieldfieldfieldfieldfieldfields0fieldsRowgetAliasedTablehashCodeisSimpleisSyntheticjoinrenamerenamerenamerootChild

Field Detail

IDback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, Long> ID

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.ID. The database version ID.

JOOQ_MIGRATIONS_CHANGELOGback to summary
public static final MigrationImpl.JooqMigrationsChangelog JOOQ_MIGRATIONS_CHANGELOG

Deprecated

as a consequence of MigrationImpl.JooqMigrationsChangelog being deprecated. See corresponding docs for further information.

The reference instance of JOOQ_MIGRATIONS_CHANGELOG

JOOQ_VERSIONback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, String> JOOQ_VERSION

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.JOOQ_VERSION. The jOOQ version used to migrate to this database version.

MIGRATED_ATback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, Timestamp> MIGRATED_AT

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_AT. The date/time when the database version was migrated to.

MIGRATED_FROMback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, String> MIGRATED_FROM

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_FROM. The previous database version ID.

MIGRATED_TOback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, String> MIGRATED_TO

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_TO.

MIGRATION_TIMEback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, Long> MIGRATION_TIME

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.MIGRATION_TIME. The time in milliseconds it took to migrate to this database version.

SQLback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, String> SQL

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.SQL. The jOOQ version used to migrate to this database version.

SQL_COUNTback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, Integer> SQL_COUNT

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.SQL_COUNT. The number of SQL statements that were run to install this database version.

STATUSback to summary
public final TableField<MigrationImpl.JooqMigrationsChangelogRecord, MigrationImpl.Status> STATUS

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The column JOOQ_MIGRATIONS_CHANGELOG.JOOQ_VERSION. The jOOQ version used to migrate to this database version.

Constructor Detail

JooqMigrationsChangelogback to summary
public JooqMigrationsChangelog()

Create a JOOQ_MIGRATIONS_CHANGELOG table reference

JooqMigrationsChangelogback to summary
public JooqMigrationsChangelog(String alias)

Create an aliased JOOQ_MIGRATIONS_CHANGELOG table reference

JooqMigrationsChangelogback to summary
public JooqMigrationsChangelog(Name alias)

Create an aliased JOOQ_MIGRATIONS_CHANGELOG table reference

JooqMigrationsChangelogback to summary
private JooqMigrationsChangelog(Name alias, Table<MigrationImpl.JooqMigrationsChangelogRecord> aliased)
JooqMigrationsChangelogback to summary
private JooqMigrationsChangelog(Name alias, Table<MigrationImpl.JooqMigrationsChangelogRecord> aliased, Field<?>[] parameters)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Method Detail

getPrimaryKeyback to summary
public UniqueKey<MigrationImpl.JooqMigrationsChangelogRecord> getPrimaryKey()

Overrides org.jooq.impl.AbstractTable.getPrimaryKey.

Implements org.jooq.Table.getPrimaryKey.

Doc from org.jooq.impl.AbstractTable.getPrimaryKey.

Retrieve the table's primary key

Subclasses may override this method

Returns:UniqueKey<MigrationImpl.JooqMigrationsChangelogRecord>

Doc from org.jooq.Table.getPrimaryKey.

The primary key. This is never null for an updatable table.

Annotations
@Override
getRecordTypeback to summary
public Class<MigrationImpl.JooqMigrationsChangelogRecord> getRecordType()

Overrides org.jooq.impl.TableImpl.getRecordType.

Implements org.jooq.RecordQualifier.getRecordType.

The class holding records for this type

Annotations
@Override
org.jooq.impl back to summary

pack-priv Class MigrationImpl.JooqMigrationsChangelogRecord

extends UpdatableRecordImpl<MigrationImpl.JooqMigrationsChangelogRecord>
Class Inheritance
Annotations
@SuppressWarnings:all, unchecked, rawtypes

The migration log of jOOQ Migrations.

Constructor Summary

AccessConstructor and Description
public
JooqMigrationsChangelogRecord()

Create a detached JooqMigrationsChangelogRecord

public
JooqMigrationsChangelogRecord(Long id, String migratedFrom, String migratedTo, Timestamp migratedAt, Long migrationTime, String jooqVersion, String sql, String status)

Create a detached, initialised JooqMigrationsChangelogRecord

Method Summary

Modifier and TypeMethod and Description
public Long
getId()

Getter for JOOQ_MIGRATIONS_CHANGELOG.ID.

public String
getJooqVersion()

Getter for JOOQ_MIGRATIONS_CHANGELOG.JOOQ_VERSION.

public Timestamp
getMigratedAt()

Getter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_AT.

public String
getMigratedFrom()

Getter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_FROM.

public String
getMigratedTo()

Getter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_TO.

public Long
getMigrationTime()

Getter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATION_TIME.

public String
getSql()

Getter for JOOQ_MIGRATIONS_CHANGELOG.SQL.

public Integer
getSqlCount()

Getter for JOOQ_MIGRATIONS_CHANGELOG.SQL_COUNT.

public MigrationImpl.Status
getStatus()

Getter for JOOQ_MIGRATIONS_CHANGELOG.STATUS.

public Record1<Long>
key()

Overrides org.jooq.impl.UpdatableRecordImpl.key.

Implements org.jooq.UpdatableRecord.key.

A Record copy holding values for the Table#getPrimaryKey().
public MigrationImpl.JooqMigrationsChangelogRecord
setId(Long value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.ID.

public MigrationImpl.JooqMigrationsChangelogRecord
setJooqVersion(String value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.JOOQ_VERSION.

public MigrationImpl.JooqMigrationsChangelogRecord
setMigratedAt(Timestamp value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_AT.

public MigrationImpl.JooqMigrationsChangelogRecord
setMigratedFrom(String value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_FROM.

public MigrationImpl.JooqMigrationsChangelogRecord
setMigratedTo(String value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_TO.

public MigrationImpl.JooqMigrationsChangelogRecord
setMigrationTime(Long value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATION_TIME.

public MigrationImpl.JooqMigrationsChangelogRecord
setSql(String value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.SQL.

public MigrationImpl.JooqMigrationsChangelogRecord
setSqlCount(Integer value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.SQL_COUNT.

public MigrationImpl.JooqMigrationsChangelogRecord
setStatus(MigrationImpl.Status value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.STATUS.

Inherited from org.jooq.impl.UpdatableRecordImpl:
childrencopydeletefetchChildfetchChildrengetPrimaryKeymergemergemergerefreshrefreshrefreshstorestorestoreupdateupdateupdate

Constructor Detail

JooqMigrationsChangelogRecordback to summary
public JooqMigrationsChangelogRecord()

Create a detached JooqMigrationsChangelogRecord

JooqMigrationsChangelogRecordback to summary
public JooqMigrationsChangelogRecord(Long id, String migratedFrom, String migratedTo, Timestamp migratedAt, Long migrationTime, String jooqVersion, String sql, String status)

Create a detached, initialised JooqMigrationsChangelogRecord

Method Detail

getIdback to summary
public Long getId()

Getter for JOOQ_MIGRATIONS_CHANGELOG.ID. The database version ID.

getJooqVersionback to summary
public String getJooqVersion()

Getter for JOOQ_MIGRATIONS_CHANGELOG.JOOQ_VERSION. The jOOQ version used to migrate to this database version.

getMigratedAtback to summary
public Timestamp getMigratedAt()

Getter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_AT. The date/time when the database version was migrated to.

getMigratedFromback to summary
public String getMigratedFrom()

Getter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_FROM. The previous database version ID.

getMigratedToback to summary
public String getMigratedTo()

Getter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_TO.

getMigrationTimeback to summary
public Long getMigrationTime()

Getter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATION_TIME. The time in milliseconds it took to migrate to this database version.

getSqlback to summary
public String getSql()

Getter for JOOQ_MIGRATIONS_CHANGELOG.SQL. The SQL statements that were run to install this database version.

getSqlCountback to summary
public Integer getSqlCount()

Getter for JOOQ_MIGRATIONS_CHANGELOG.SQL_COUNT. The number of SQL statements that were run to install this database version.

getStatusback to summary
public MigrationImpl.Status getStatus()

Getter for JOOQ_MIGRATIONS_CHANGELOG.STATUS. The database version installation status.

keyback to summary
public Record1<Long> key()

Overrides org.jooq.impl.UpdatableRecordImpl.key.

Implements org.jooq.UpdatableRecord.key.

Doc from org.jooq.UpdatableRecord.key.

A Record copy holding values for the Table#getPrimaryKey().

The returned record consists exactly of those fields as returned by the table's primary key: UniqueKey#getFields().

Generated subtypes may covariantly override this method to add more record type information. For instance, they may return Record1, Record2, ...

Annotations
@Override
setIdback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setId(Long value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.ID. The database version ID.

setJooqVersionback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setJooqVersion(String value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.JOOQ_VERSION. The jOOQ version used to migrate to this database version.

setMigratedAtback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setMigratedAt(Timestamp value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_AT. The date/time when the database version was migrated to.

setMigratedFromback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setMigratedFrom(String value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_FROM. The previous database version ID.

setMigratedToback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setMigratedTo(String value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATED_TO.

setMigrationTimeback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setMigrationTime(Long value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.MIGRATION_TIME. The time in milliseconds it took to migrate to this database version.

setSqlback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setSql(String value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.SQL. The SQL statements that were run to install this database version.

setSqlCountback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setSqlCount(Integer value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.SQL_COUNT. The number of SQL statements that were run to install this database version.

setStatusback to summary
public MigrationImpl.JooqMigrationsChangelogRecord setStatus(MigrationImpl.Status value)

Setter for JOOQ_MIGRATIONS_CHANGELOG.STATUS. The database version installation status.

org.jooq.impl back to summary

pack-priv final Enum MigrationImpl.Status

extends Enum<MigrationImpl.Status>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final MigrationImpl.Status
public static final MigrationImpl.Status
public static final MigrationImpl.Status
public static final MigrationImpl.Status
public static final MigrationImpl.Status

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static MigrationImpl.Status
public static MigrationImpl.Status[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FAILUREback to summary
public static final MigrationImpl.Status FAILURE
MIGRATINGback to summary
public static final MigrationImpl.Status MIGRATING
REVERTINGback to summary
public static final MigrationImpl.Status REVERTING
STARTINGback to summary
public static final MigrationImpl.Status STARTING
SUCCESSback to summary
public static final MigrationImpl.Status SUCCESS

Constructor Detail

Statusback to summary
private Status()

Method Detail

valueOfback to summary
public static MigrationImpl.Status valueOf(String name)
valuesback to summary
public static MigrationImpl.Status[] values()