liquibase.configuration.GlobalConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
package liquibase.configuration;
import liquibase.configuration.core.DeprecatedConfigurationValueProvider;
import liquibase.integration.commandline.LiquibaseCommandLineConfiguration;
import java.util.Set;
/**
* @deprecated use {@link liquibase.GlobalConfiguration}
*/
public class GlobalConfiguration extends liquibase.GlobalConfiguration implements ConfigurationContainer {
/**
* @deprecated
*/
public static final String SHOULD_RUN = LiquibaseCommandLineConfiguration.SHOULD_RUN.getKey();
/**
* @deprecated
*/
public static final String DATABASECHANGELOG_TABLE_NAME = liquibase.GlobalConfiguration.DATABASECHANGELOG_TABLE_NAME.getKey();
/**
* @deprecated
*/
public static final String DATABASECHANGELOGLOCK_TABLE_NAME = liquibase.GlobalConfiguration.DATABASECHANGELOGLOCK_TABLE_NAME.getKey();
/**
* @deprecated
*/
public static final String LIQUIBASE_TABLESPACE_NAME = liquibase.GlobalConfiguration.LIQUIBASE_TABLESPACE_NAME.getKey();
/**
* @deprecated
*/
public static final String LIQUIBASE_CATALOG_NAME = liquibase.GlobalConfiguration.LIQUIBASE_CATALOG_NAME.getKey();
/**
* @deprecated
*/
public static final String LIQUIBASE_SCHEMA_NAME = liquibase.GlobalConfiguration.LIQUIBASE_SCHEMA_NAME.getKey();
/**
* @deprecated
*/
public static final String OUTPUT_LINE_SEPARATOR = liquibase.GlobalConfiguration.OUTPUT_LINE_SEPARATOR.getKey();
/**
* @deprecated
*/
public static final String OUTPUT_ENCODING = liquibase.GlobalConfiguration.OUTPUT_FILE_ENCODING.getKey();
/**
* @deprecated
*/
public static final String CHANGELOGLOCK_WAIT_TIME = liquibase.GlobalConfiguration.CHANGELOGLOCK_WAIT_TIME.getKey();
/**
* @deprecated
*/
public static final String CHANGELOGLOCK_POLL_RATE = liquibase.GlobalConfiguration.CHANGELOGLOCK_POLL_RATE.getKey();
/**
* @deprecated
*/
public static final String CONVERT_DATA_TYPES = liquibase.GlobalConfiguration.CONVERT_DATA_TYPES.getKey();
/**
* @deprecated
*/
public static final String GENERATE_CHANGESET_CREATED_VALUES = liquibase.GlobalConfiguration.GENERATE_CHANGESET_CREATED_VALUES.getKey();
/**
* @deprecated
*/
public static final String AUTO_REORG = liquibase.GlobalConfiguration.AUTO_REORG.getKey();
/**
* @deprecated
*/
public static final String DIFF_COLUMN_ORDER = liquibase.GlobalConfiguration.DIFF_COLUMN_ORDER.getKey();
/**
* @deprecated
*/
public static final String ALWAYS_OVERRIDE_STORED_LOGIC_SCHEMA = liquibase.GlobalConfiguration.ALWAYS_OVERRIDE_STORED_LOGIC_SCHEMA.getKey();
/**
* @deprecated
*/
public static final String GENERATED_CHANGESET_IDS_INCLUDE_DESCRIPTION = liquibase.GlobalConfiguration.GENERATED_CHANGESET_IDS_INCLUDE_DESCRIPTION.getKey();
/**
* @deprecated
*/
public static final String INCLUDE_CATALOG_IN_SPECIFICATION = liquibase.GlobalConfiguration.INCLUDE_CATALOG_IN_SPECIFICATION.getKey();
/**
* @deprecated
*/
public static final String SHOULD_SNAPSHOT_DATA = liquibase.GlobalConfiguration.SHOULD_SNAPSHOT_DATA.getKey();
/**
* @deprecated
*/
public static final String FILTER_LOG_MESSAGES = liquibase.GlobalConfiguration.FILTER_LOG_MESSAGES.getKey();
/**
* @deprecated
*/
public static final String HEADLESS = liquibase.GlobalConfiguration.HEADLESS.getKey();
private static final AbstractConfigurationContainer.DelegatedConfigurationContainer containerDelegate = new AbstractConfigurationContainer.DelegatedConfigurationContainer("liquibase");
public GlobalConfiguration() {
}
/**
* Should Liquibase execute
* @deprecated
*/
public boolean getShouldRun() {
return LiquibaseCommandLineConfiguration.SHOULD_RUN.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setShouldRun(boolean shouldRun) {
DeprecatedConfigurationValueProvider.setData(LiquibaseCommandLineConfiguration.SHOULD_RUN, shouldRun);
return this;
}
/**
* Table name to use for DATABASECHANGELOG
* @deprecated
*/
public String getDatabaseChangeLogTableName() {
return liquibase.GlobalConfiguration.DATABASECHANGELOG_TABLE_NAME.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setDatabaseChangeLogTableName(String name) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.DATABASECHANGELOG_TABLE_NAME, name);
return this;
}
/**
* Table name to use for DATABASECHANGELOGLOCK
* @deprecated
*/
public String getDatabaseChangeLogLockTableName() {
return liquibase.GlobalConfiguration.DATABASECHANGELOGLOCK_TABLE_NAME.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setDatabaseChangeLogLockTableName(String name) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.DATABASECHANGELOGLOCK_TABLE_NAME, name);
return this;
}
/**
* Wait time (in minutes) to wait to receive the changelog lock before giving up.
* @deprecated
*/
public Long getDatabaseChangeLogLockWaitTime() {
return liquibase.GlobalConfiguration.CHANGELOGLOCK_WAIT_TIME.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setDatabaseChangeLogLockWaitTime(Long minutes) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.CHANGELOGLOCK_WAIT_TIME, minutes);
return this;
}
/**
* Wait time (in seconds) between polling requests to the changelog lock system.
* @deprecated
*/
public Long getDatabaseChangeLogLockPollRate() {
return liquibase.GlobalConfiguration.CHANGELOGLOCK_POLL_RATE.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setDatabaseChangeLogLockPollRate(Long seconds) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.CHANGELOGLOCK_POLL_RATE, seconds);
return this;
}
/**
* Name of the tablespace to use for liquibase database objects
* @deprecated
*/
public String getLiquibaseTablespaceName() {
return liquibase.GlobalConfiguration.LIQUIBASE_TABLESPACE_NAME.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setLiquibaseTablespaceName(String name) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.LIQUIBASE_TABLESPACE_NAME, name);
return this;
}
/**
* Should Liquibase snapshot data for table by default
* @deprecated
*/
public boolean getShouldSnapshotData() {
return liquibase.GlobalConfiguration.SHOULD_SNAPSHOT_DATA.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setShouldSnapshotData(boolean shouldSnapshotData) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.SHOULD_SNAPSHOT_DATA, shouldSnapshotData);
return this;
}
/**
* @deprecated always returns "false"
*/
public boolean getShouldFilterLogMessages() {
return false;
}
/**
* @deprecated ignores value
*/
public GlobalConfiguration setShouldFilterLogMessages(boolean ignored) {
return this;
}
/**
* @deprecated
*/
public boolean getHeadless() {
return liquibase.GlobalConfiguration.HEADLESS.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setHeadless(boolean headless) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.HEADLESS, headless);
return this;
}
/**
* Name of the catalog to use for liquibase database objects
*/
public String getLiquibaseCatalogName() {
return liquibase.GlobalConfiguration.LIQUIBASE_CATALOG_NAME.getCurrentValue();
}
public GlobalConfiguration setLiquibaseCatalogName(String name) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.LIQUIBASE_CATALOG_NAME, name);
return this;
}
/**
* Name of the schema to use for liquibase database objects
*/
public String getLiquibaseSchemaName() {
return liquibase.GlobalConfiguration.LIQUIBASE_SCHEMA_NAME.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setLiquibaseSchemaName(String name) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.LIQUIBASE_SCHEMA_NAME, name);
return this;
}
/**
* Line separator to use in output
* @deprecated
*/
public String getOutputLineSeparator() {
return liquibase.GlobalConfiguration.OUTPUT_LINE_SEPARATOR.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setOutputLineSeparator(String name) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.OUTPUT_LINE_SEPARATOR, name);
return this;
}
/**
* String encoding to use in output.
* @deprecated
*/
public String getOutputEncoding() {
return liquibase.GlobalConfiguration.OUTPUT_FILE_ENCODING.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setOutputEncoding(String name) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.OUTPUT_FILE_ENCODING, name);
return this;
}
/**
* @deprecated
*/
public Boolean getDiffColumnOrder() {
return liquibase.GlobalConfiguration.DIFF_COLUMN_ORDER.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setDiffColumnOrder(boolean diff) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.DIFF_COLUMN_ORDER, diff);
return this;
}
/**
* @deprecated
*/
public Boolean getAlwaysOverrideStoredLogicSchema() {
return liquibase.GlobalConfiguration.ALWAYS_OVERRIDE_STORED_LOGIC_SCHEMA.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setAlwaysOverrideStoredLogicSchema(boolean override) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.ALWAYS_OVERRIDE_STORED_LOGIC_SCHEMA, override);
return this;
}
/**
* @deprecated
*/
public Boolean getGeneratedChangeSetIdsContainDescription() {
return liquibase.GlobalConfiguration.GENERATED_CHANGESET_IDS_INCLUDE_DESCRIPTION.getCurrentValue();
}
/**
* @deprecated
*/
public GlobalConfiguration setGeneratedChangeSetIdsContainDescription(boolean containDescription) {
DeprecatedConfigurationValueProvider.setData(liquibase.GlobalConfiguration.GENERATED_CHANGESET_IDS_INCLUDE_DESCRIPTION, containDescription);
return this;
}
@Override
public ConfigurationProperty getProperty(String propertyName) {
return containerDelegate.getProperty(propertyName);
}
@Override
public Set getProperties() {
return containerDelegate.getProperties();
}
@Override
public T getValue(String propertyName, Class returnType) {
return containerDelegate.getValue(propertyName, returnType);
}
@Override
public void setValue(String propertyName, Object value) {
containerDelegate.setValue(propertyName, value);
}
@Override
public String getNamespace() {
return containerDelegate.getNamespace();
}
}