Top Description Fields Constructors Methods
org.jooq.impl

public Class DefaultCommitProvider

extends Object
implements CommitProvider
Class Inheritance
All Implemented Interfaces
org.jooq.CommitProvider
Annotations
@Experimental
Imports
org.jooq.CommitProvider, .Commits, .Configuration, .DSLContext, org.jooq.migrations.xml.jaxb.MigrationsType, org.jetbrains.annotations.ApiStatus.Experimental

A default implementation of the CommitProvider SPI, which provides a materialisation of the currently available database version graph.

It is based

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final DSLContext
private final MigrationsType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Commits
provide()

Implements org.jooq.CommitProvider.provide.

Provide a set of commits relevant to a migration.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ctxback to summary
private final DSLContext ctx
migrationsback to summary
private final MigrationsType migrations

Constructor Detail

DefaultCommitProviderback to summary
public DefaultCommitProvider(Configuration configuration, MigrationsType migrations)

Method Detail

provideback to summary
public Commits provide()

Implements org.jooq.CommitProvider.provide.

Doc from org.jooq.CommitProvider.provide.

Provide a set of commits relevant to a migration.

This can include the entire set of known versions, or a subset thereof. There is no requirement to provide a fully connected graph, although Version#migrateTo(Version) and other operations are undefined if two versions do not have a common ancestor.

Annotations
@Override