Package org.spincast.plugins.flywayutils
Class SpincastFlywayMigrationBase
java.lang.Object
org.spincast.plugins.flywayutils.SpincastFlywayMigrationBase
- All Implemented Interfaces:
SpincastFlywayMigration
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DataSource
protected JdbcUtils
final void
migrate
(Connection connection) Override {runMigration(Connection)
} instead of this method.protected abstract void
runMigration
(Connection connection) Runs the migrations inside a scope where the proper connection will used, even by indirect components (ex: a service is called that uses a repository which gets a connection usingJdbcScope.transactional(org.spincast.plugins.jdbc.TransactionalScope)
transactional()).
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
SpincastFlywayMigrationBase
-
-
Method Details
-
getDataSource
-
getJdbcUtils
-
migrate
Override {runMigration(Connection)
} instead of this method.- Specified by:
migrate
in interfaceSpincastFlywayMigration
- Throws:
Exception
-
runMigration
Runs the migrations inside a scope where the proper connection will used, even by indirect components (ex: a service is called that uses a repository which gets a connection usingJdbcScope.transactional(org.spincast.plugins.jdbc.TransactionalScope)
transactional()).
-