Package liquibase.configuration
Class ConfigurationDefinition.Building<DataType>
java.lang.Object
liquibase.configuration.ConfigurationDefinition.Building<DataType>
- Enclosing class:
ConfigurationDefinition<DataType>
-
Method Summary
Modifier and TypeMethodDescriptionaddAliases(Collection<String> aliases) addAliasKey(String alias) build()Finishes building this definition AND registers it withLiquibaseConfiguration.registerDefinition(ConfigurationDefinition).Finishes building this definition WITHOUT registering it withLiquibaseConfiguration.registerDefinition(ConfigurationDefinition).Marks this definition reference-scopable: while the reference connection of a two-connection command (e.g.setCommonlyUsed(boolean commonlyUsed) setDefaultValue(DataType defaultValue) setDefaultValue(DataType defaultValue, String defaultValueDescription) setDescription(String description) setHidden(boolean hidden) setInternal(boolean internal)
-
Method Details
-
addAliasKey
-
setDescription
-
setDefaultValue
public ConfigurationDefinition.Building<DataType> setDefaultValue(DataType defaultValue, String defaultValueDescription) -
setDefaultValue
-
setValueHandler
public ConfigurationDefinition.Building<DataType> setValueHandler(ConfigurationValueConverter<DataType> handler) -
setValueObfuscator
public ConfigurationDefinition.Building<DataType> setValueObfuscator(ConfigurationValueObfuscator<DataType> handler) -
setCommonlyUsed
-
setInternal
-
setHidden
-
referenceScoped
Marks this definition reference-scopable: while the reference connection of a two-connection command (e.g.diff) is opening, it resolves from its<namespace>.reference.<suffix>sibling instead of the primary key. An unset sibling inherits the primary value; a sibling ofConfigurationDefinition.REFERENCE_DEFAULT_SENTINELopts out (resolves as if unset). No effect on single-connection commands or the primary connection.Caveats: the reference value resolves only while the reference connection is opening, so read it synchronously in
DatabaseConnection.open(...)(a later/async read sees the primary value); only the canonical key is scoped, not aliases; and it does not apply to auth activated by the credential value itself (e.g. areferencePasswordresolved by aConfiguredValueModifier), which is already per-connection. Intended forString-typed selectors: theConfigurationDefinition.REFERENCE_DEFAULT_SENTINELopt-out is matched on the raw sibling value before type conversion, so a non-StringDataType(e.g. an enum) would not see the sentinel honored. -
addAliases
-
build
Finishes building this definition AND registers it withLiquibaseConfiguration.registerDefinition(ConfigurationDefinition). To not register this definition, usebuildTemporary() -
buildTemporary
Finishes building this definition WITHOUT registering it withLiquibaseConfiguration.registerDefinition(ConfigurationDefinition). To automatically register this definition, usebuild()
-