Package org.spincast.plugins.flywayutils
Class SpincastFlywayMigrationContextDefault
java.lang.Object
org.spincast.plugins.flywayutils.SpincastFlywayMigrationContextDefault
- All Implemented Interfaces:
org.flywaydb.core.api.resolver.MigrationResolver
,SpincastFlywayMigrationContext
public class SpincastFlywayMigrationContextDefault
extends Object
implements SpincastFlywayMigrationContext
-
Constructor Summary
ConstructorDescriptionSpincastFlywayMigrationContextDefault
(DataSource dataSource, String migrationsPackage, com.google.inject.Provider<com.google.inject.Injector> injectorProvider, JdbcUtils jdbcUtils, SpincastConfig spincastConfig, SpincastDataSourceFactory spincastDataSourceFactory) SpincastFlywayMigrationContextDefault
(DataSource dataSource, String schema, String migrationsPackage, com.google.inject.Provider<com.google.inject.Injector> injectorProvider, JdbcUtils jdbcUtils, SpincastConfig spincastConfig, SpincastDataSourceFactory spincastDataSourceFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.flywaydb.core.api.resolver.ResolvedMigration
convertToResolvedMigration
(SpincastFlywayMigration spincastFlywayMigration) protected org.flywaydb.core.Flyway
protected DataSource
protected com.google.inject.Injector
protected JdbcUtils
protected String
protected String
protected SpincastConfig
protected SpincastDataSourceFactory
protected boolean
void
migrate()
Collection<org.flywaydb.core.api.resolver.ResolvedMigration>
resolveMigrations
(org.flywaydb.core.api.resolver.Context context)
-
Constructor Details
-
SpincastFlywayMigrationContextDefault
public SpincastFlywayMigrationContextDefault(DataSource dataSource, String migrationsPackage, com.google.inject.Provider<com.google.inject.Injector> injectorProvider, JdbcUtils jdbcUtils, SpincastConfig spincastConfig, SpincastDataSourceFactory spincastDataSourceFactory) -
SpincastFlywayMigrationContextDefault
public SpincastFlywayMigrationContextDefault(DataSource dataSource, @Nullable String schema, String migrationsPackage, com.google.inject.Provider<com.google.inject.Injector> injectorProvider, JdbcUtils jdbcUtils, SpincastConfig spincastConfig, SpincastDataSourceFactory spincastDataSourceFactory)
-
-
Method Details
-
getDataSource
-
getMigrationsPackage
-
getInjector
protected com.google.inject.Injector getInjector() -
getJdbcUtils
-
getSchema
-
getSpincastConfig
-
getSpincastDataSourceFactory
-
migrate
public void migrate()- Specified by:
migrate
in interfaceSpincastFlywayMigrationContext
-
isValidateOnMigrate
protected boolean isValidateOnMigrate() -
createFlyway
protected org.flywaydb.core.Flyway createFlyway() -
resolveMigrations
public Collection<org.flywaydb.core.api.resolver.ResolvedMigration> resolveMigrations(org.flywaydb.core.api.resolver.Context context) - Specified by:
resolveMigrations
in interfaceorg.flywaydb.core.api.resolver.MigrationResolver
-
convertToResolvedMigration
protected org.flywaydb.core.api.resolver.ResolvedMigration convertToResolvedMigration(SpincastFlywayMigration spincastFlywayMigration)
-