Package org.spincast.plugins.flywayutils
Class SpincastFlywayMigrationBase
java.lang.Object
org.spincast.plugins.flywayutils.SpincastFlywayMigrationBase
- All Implemented Interfaces:
SpincastFlywayMigration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataSourceprotected JdbcUtilsfinal voidmigrate(Connection connection) Override {runMigration(Connection)} instead of this method.protected abstract voidrunMigration(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:
migratein 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()).
-