public.javadoc.org.spincast.plugins.flywayutils.SpincastFlywayMigrationContextDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastFlywayMigrationContextDefault (org.spincast:spincast-framework 1.2.0 API)
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
Constructors
Constructor and Description
SpincastFlywayMigrationContextDefault(DataSource dataSource,
String migrationsPackage,
com.google.inject.Provider<com.google.inject.Injector> injectorProvider,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory)
SpincastFlywayMigrationContextDefault(DataSource dataSource,
String schema,
String migrationsPackage,
com.google.inject.Provider<com.google.inject.Injector> injectorProvider,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected org.flywaydb.core.api.resolver.ResolvedMigration
convertToResolvedMigration(SpincastFlywayMigration spincastFlywayMigration)
protected org.flywaydb.core.Flyway
createFlyway()
protected DataSource
getDataSource()
protected com.google.inject.Injector
getInjector()
protected JdbcUtils
getJdbcUtils()
protected String
getMigrationsPackage()
protected String
getSchema()
protected SpincastDataSourceFactory
getSpincastDataSourceFactory()
void
migrate()
Collection<org.flywaydb.core.api.resolver.ResolvedMigration>
resolveMigrations()
-
-
Constructor Detail
-
SpincastFlywayMigrationContextDefault
public SpincastFlywayMigrationContextDefault(DataSource dataSource,
String migrationsPackage,
com.google.inject.Provider<com.google.inject.Injector> injectorProvider,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory)
-
SpincastFlywayMigrationContextDefault
public SpincastFlywayMigrationContextDefault(DataSource dataSource,
@Nullable
String schema,
String migrationsPackage,
com.google.inject.Provider<com.google.inject.Injector> injectorProvider,
JdbcUtils jdbcUtils,
SpincastDataSourceFactory spincastDataSourceFactory)
-
Method Detail
-
getDataSource
protected DataSource getDataSource()
-
getMigrationsPackage
protected String getMigrationsPackage()
-
getInjector
protected com.google.inject.Injector getInjector()
-
getJdbcUtils
protected JdbcUtils getJdbcUtils()
-
getSchema
protected String getSchema()
-
getSpincastDataSourceFactory
protected SpincastDataSourceFactory getSpincastDataSourceFactory()
-
migrate
public void migrate()
- Specified by:
migrate
in interface SpincastFlywayMigrationContext
-
createFlyway
protected org.flywaydb.core.Flyway createFlyway()
-
resolveMigrations
public Collection<org.flywaydb.core.api.resolver.ResolvedMigration> resolveMigrations()
- Specified by:
resolveMigrations
in interface org.flywaydb.core.api.resolver.MigrationResolver
-
convertToResolvedMigration
protected org.flywaydb.core.api.resolver.ResolvedMigration convertToResolvedMigration(SpincastFlywayMigration spincastFlywayMigration)
Copyright © 2019. All rights reserved.