public class ClusterStoreAndForward_SQL_DbMigrations
extends java.lang.Object
ClusterStoreAndForward_SQL
needs, using Flyway. These needs to be
run before the CSAF_SQL is booted up.Modifier and Type | Class and Description |
---|---|
static class |
ClusterStoreAndForward_SQL_DbMigrations.Database
Defines the String and Binary datatypes for some databases.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_binaryType |
protected java.lang.String |
_textType |
Modifier | Constructor and Description |
---|---|
protected |
ClusterStoreAndForward_SQL_DbMigrations() |
Modifier and Type | Method and Description |
---|---|
static ClusterStoreAndForward_SQL_DbMigrations |
create(ClusterStoreAndForward_SQL_DbMigrations.Database database) |
static ClusterStoreAndForward_SQL_DbMigrations |
create(java.lang.String textType,
java.lang.String binaryType) |
java.lang.String |
getMigrationsLocation() |
java.util.Map<java.lang.String,java.lang.String> |
getPlaceHolders() |
void |
migrateUsingFlyway(javax.sql.DataSource dataSource)
Perform migrations using Flyway, getting the placeholder (interpolated values for "texttype" and "binarytype")
from
getPlaceHolders() , and the migration scrips from getMigrationsLocation() . |
void |
setTextAndBinaryTypes(ClusterStoreAndForward_SQL_DbMigrations.Database database) |
void |
setTextAndBinaryTypes(java.lang.String textType,
java.lang.String binaryType) |
protected java.lang.String _textType
protected java.lang.String _binaryType
protected ClusterStoreAndForward_SQL_DbMigrations()
public static ClusterStoreAndForward_SQL_DbMigrations create(ClusterStoreAndForward_SQL_DbMigrations.Database database)
public static ClusterStoreAndForward_SQL_DbMigrations create(java.lang.String textType, java.lang.String binaryType)
public void setTextAndBinaryTypes(ClusterStoreAndForward_SQL_DbMigrations.Database database)
public void setTextAndBinaryTypes(java.lang.String textType, java.lang.String binaryType)
public java.util.Map<java.lang.String,java.lang.String> getPlaceHolders()
public java.lang.String getMigrationsLocation()
getPlaceHolders()
.public void migrateUsingFlyway(javax.sql.DataSource dataSource)
getPlaceHolders()
, and the migration scrips from getMigrationsLocation()
.