Package oracle.pgx.config
Class KeyColumnConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.KeyColumnConfigBuilder
-
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"}) public final class KeyColumnConfigBuilder extends java.lang.ObjectBuilder forKeyColumnConfig.
-
-
Constructor Summary
Constructors Constructor Description KeyColumnConfigBuilder()Constructs an empty KeyColumnConfigBuilderKeyColumnConfigBuilder(java.util.Map<KeyColumnConfig.Field,java.lang.Object> values)Constructs a KeyColumnConfigBuilder initialized with the values from the given mapKeyColumnConfigBuilder(KeyColumnConfig config)Constructs a KeyColumnConfigBuilder initialized with the values from the given configKeyColumnConfigBuilder(KeyColumnConfigBuilder builder)Constructs a KeyColumnConfigBuilder initialized with the values from the given builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyColumnConfigbuild()Builds the KeyColumnConfig with aparentPathofnull.KeyColumnConfigbuild(java.lang.String parentPath)Builds the KeyColumnConfig.static KeyColumnConfigbuildKeyColumnConfig(java.util.function.Consumer<KeyColumnConfigBuilder> builderSetup)Builds aKeyColumnConfigin-placeKeyColumnConfigBuilderclear()Clears all values from the builderjava.util.Map<KeyColumnConfig.Field,java.lang.Object>getValues()KeyColumnConfigBuilderputAll(java.util.Map<KeyColumnConfig.Field,java.lang.Object> values)Puts all values from the given map into this builder.KeyColumnConfigBuilderputAll(KeyColumnConfig config)Puts all values from the given config into this builderKeyColumnConfigBuildersetName(java.lang.String name)name of the key columnKeyColumnConfigBuildersetType(IdType type)type of the key columnjava.io.InputStreamtoInputStream()java.lang.StringtoString()
-
-
-
Constructor Detail
-
KeyColumnConfigBuilder
public KeyColumnConfigBuilder()
Constructs an empty KeyColumnConfigBuilder
-
KeyColumnConfigBuilder
public KeyColumnConfigBuilder(java.util.Map<KeyColumnConfig.Field,java.lang.Object> values)
Constructs a KeyColumnConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
KeyColumnConfigBuilder
public KeyColumnConfigBuilder(KeyColumnConfig config)
Constructs a KeyColumnConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
KeyColumnConfigBuilder
public KeyColumnConfigBuilder(KeyColumnConfigBuilder builder)
Constructs a KeyColumnConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Detail
-
buildKeyColumnConfig
public static KeyColumnConfig buildKeyColumnConfig(java.util.function.Consumer<KeyColumnConfigBuilder> builderSetup)
Builds aKeyColumnConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdKeyColumnConfig
-
putAll
public KeyColumnConfigBuilder putAll(java.util.Map<KeyColumnConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.- Parameters:
values- the values to put in the builder
-
putAll
public KeyColumnConfigBuilder putAll(KeyColumnConfig config)
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
public KeyColumnConfigBuilder clear()
Clears all values from the builder
-
build
public KeyColumnConfig build(java.lang.String parentPath)
Builds the KeyColumnConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of KeyColumnConfig
-
build
public KeyColumnConfig build()
Builds the KeyColumnConfig with aparentPathofnull.- Returns:
- An instance of KeyColumnConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStreamrepresenting the config
-
getValues
public java.util.Map<KeyColumnConfig.Field,java.lang.Object> getValues()
- Returns:
- the raw config values
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setName
public KeyColumnConfigBuilder setName(java.lang.String name)
name of the key column
-
setType
public KeyColumnConfigBuilder setType(IdType type)
type of the key column
-
-