-
- All Superinterfaces:
Scope
@Internal public interface MigrationContext extends Scope
The context in which aMigration
is executed.This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
- Author:
- Lukas Eder
- See Also:
MigrationListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Version
migrationFrom()
@NotNull Queries
migrationQueries()
@NotNull Version
migrationTo()
@NotNull Queries
queries()
@NotNull Version
queriesFrom()
@NotNull Version
queriesTo()
@NotNull Query
query()
The currentQuery
that is being executed.
-
-
-
Method Detail
-
migrationFrom
@NotNull @NotNull Version migrationFrom()
TheVersion
from which aMigration
has started.migrationFrom()
andmigrationTo()
versions need not be consecutive versions for any given migration. If a migration jumps a few versions, these two methods will only return the endpoints.This is available on all
MigrationListener
events.
-
migrationTo
@NotNull @NotNull Version migrationTo()
TheVersion
to which aMigration
is headed.migrationFrom()
andmigrationTo()
versions need not be consecutive versions for any given migration. If a migration jumps a few versions, these two methods will only return the endpoints.This is available on all
MigrationListener
events.
-
migrationQueries
@NotNull @NotNull Queries migrationQueries()
The complete set ofQueries
that are executed betweenmigrationFrom()
andmigrationTo()
.This is available on all
MigrationListener
events.
-
queriesFrom
@NotNull @NotNull Version queriesFrom()
TheVersion
from which an individual set ofQueries
has started.queriesFrom()
andqueriesTo()
versions are consecutive versions in a migration. If a migration jumps a few versions, these two methods might return those intermediate versions on these events:
-
queriesTo
@NotNull @NotNull Version queriesTo()
TheVersion
to which an individual set ofQueries
is headed.queriesFrom()
andqueriesTo()
versions are consecutive versions in a migration. If a migration jumps a few versions, these two methods might return those intermediate versions on these events:
-
queries
@NotNull @NotNull Queries queries()
The complete set ofQueries
that are executed betweenqueriesFrom()
andqueriesTo()
.This is available on the same
MigrationListener
events asqueriesFrom()
andqueriesTo()
.
-
query
@NotNull @NotNull Query query()
The currentQuery
that is being executed.This is available on
MigrationListener.queryStart(MigrationContext)
andMigrationListener.queryEnd(MigrationContext)
.
-
-