@ConfigurationProperties(prefix="cassandra.migration") public class CassandraMigrationConfigurationProperties extends Object
| Constructor and Description |
|---|
CassandraMigrationConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
com.datastax.driver.core.ConsistencyLevel |
getConsistencyLevel() |
String |
getKeyspaceName() |
String |
getScriptLocation() |
ScriptCollectorStrategy |
getStrategy() |
String |
getTablePrefix() |
boolean |
hasKeyspaceName() |
void |
setConsistencyLevel(com.datastax.driver.core.ConsistencyLevel consistencyLevel)
Sets the consistency level which should be used to execute the schema migrations.
|
void |
setKeyspaceName(String keyspaceName)
Sets the name of the keyspace that should be migrated.
|
void |
setScriptLocation(String scriptLocation)
The location where the scripts reside on the classpath.
|
void |
setStrategy(ScriptCollectorStrategy strategy)
Sets the strategy that should be used when scripts are collected
from the repository.
|
CassandraMigrationConfigurationProperties |
setTablePrefix(String tablePrefix) |
public CassandraMigrationConfigurationProperties()
public String getScriptLocation()
public void setScriptLocation(String scriptLocation)
MigrationRepository.DEFAULT_SCRIPT_PATH which
points to cassandra/migration on the classpath.scriptLocation - the location of the migration scripts. Must not be null.IllegalArgumentException - when scriptLocation is null or emptypublic String getKeyspaceName()
public void setKeyspaceName(String keyspaceName)
keyspaceName - the name of the keyspace to be migratedpublic ScriptCollectorStrategy getStrategy()
public void setStrategy(ScriptCollectorStrategy strategy)
strategy - the collector strategy. This setting is optional.public boolean hasKeyspaceName()
public com.datastax.driver.core.ConsistencyLevel getConsistencyLevel()
public void setConsistencyLevel(com.datastax.driver.core.ConsistencyLevel consistencyLevel)
ConsistencyLevel.QUORUMconsistencyLevel - the consistency level to be used for migrationspublic String getTablePrefix()
public CassandraMigrationConfigurationProperties setTablePrefix(String tablePrefix)
Copyright © 2019. All rights reserved.