org.arquillian.ape.rdbms.flyway.FlywayOptions Maven / Gradle / Ivy
package org.arquillian.ape.rdbms.flyway;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.flywaydb.core.api.callback.FlywayCallback;
import org.flywaydb.core.api.resolver.MigrationResolver;
public class FlywayOptions implements Map {
final static String INSTALLED_BY = "installedBy";
final static String ALLOW_MIXED_MIGRATIONS = "allowMixedMigrations";
final static String IGNORE_MISSING_MIGRATIONS = "ignoreMissingMigrations";
final static String IGNORE_FUTURE_MIGRATIONS = "ignoreFutureMigrations";
final static String IGNORE_FAILED_FUTURE_MIGRATIONS = "ignoreFailedFutureMigrations";
final static String VALIDATE_ON_MIGRATE = "validateOnMigrate";
final static String CLEAN_ON_VALIDATION_ERROR= "cleanOnValidationError";
final static String ENCODING = "encoding";
final static String SCHEMAS = "schemas";
final static String TABLE = "table";
final static String TARGET = "target";
final static String PLACEHOLDER_REPLACEMENT = "placeholderReplacement";
final static String PLACEHOLDERS = "placeholders";
final static String PLACEHOLDER_SUFFIX = "placeholderSuffix";
final static String PLACEHOLDER_PREFIX = "placeholderPrefix";
final static String SQL_MIGRATION_PREFIX = "sqlMigrationPrefix";
final static String REPEATABLE_SQL_MIGRATION_PREFIX = "repeatableSqlMigrationPrefix";
final static String SQL_MIGRATION_SEPARATOR = "sqlMigrationSeparator";
final static String SQL_MIGRATION_SUFFIX = "sqlMigrationSuffix";
final static String BASELINE_VERSION = "baselineVersion";
final static String BASELINE_DESCRIPTION = "baselineDescription";
final static String BASELINE_ON_MIGRATE = "baselineOnMigrate";
final static String OUT_OF_ORDER = "outOfOrder";
final static String CALLBACKS = "callbacks";
final static String SKIP_DEFAULT_CALLBACK = "skipDefaultCallback";
final static String RESOLVERS = "resolvers";
final static String SKIP_DEFAULT_RESOLVERS = "skipDefaultResolvers";
private Map options = new HashMap<>();
private FlywayOptions() {
}
FlywayOptions(Map options) {
this.options.putAll(options);
}
public static FlywayConfigurationOptions options() {
return new FlywayConfigurationOptions();
}
@Override
public int size() {
return options.size();
}
@Override
public boolean isEmpty() {
return options.isEmpty();
}
@Override
public boolean containsKey(Object key) {
return options.containsKey(key);
}
@Override
public boolean containsValue(Object value) {
return options.containsValue(value);
}
@Override
public Object get(Object key) {
return options.get(key);
}
@Override
public Object put(String key, Object value) {
return options.put(key, value);
}
@Override
public Object remove(Object key) {
return options.remove(key);
}
@Override
public void putAll(Map extends String, ?> m) {
options.putAll(m);
}
@Override
public void clear() {
options.clear();
}
@Override
public Set keySet() {
return options.keySet();
}
@Override
public Collection