Package oracle.pgx.config
Class ForeignKeyColumnConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.ForeignKeyColumnConfigBuilder
-
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"}) public final class ForeignKeyColumnConfigBuilder extends java.lang.ObjectBuilder forForeignKeyColumnConfig.
-
-
Constructor Summary
Constructors Constructor Description ForeignKeyColumnConfigBuilder()Constructs an empty ForeignKeyColumnConfigBuilderForeignKeyColumnConfigBuilder(java.util.Map<ForeignKeyColumnConfig.Field,java.lang.Object> values)Constructs a ForeignKeyColumnConfigBuilder initialized with the values from the given mapForeignKeyColumnConfigBuilder(ForeignKeyColumnConfig config)Constructs a ForeignKeyColumnConfigBuilder initialized with the values from the given configForeignKeyColumnConfigBuilder(ForeignKeyColumnConfigBuilder builder)Constructs a ForeignKeyColumnConfigBuilder initialized with the values from the given builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ForeignKeyColumnConfigbuild()Builds the ForeignKeyColumnConfig with aparentPathofnull.ForeignKeyColumnConfigbuild(java.lang.String parentPath)Builds the ForeignKeyColumnConfig.static ForeignKeyColumnConfigbuildForeignKeyColumnConfig(java.util.function.Consumer<ForeignKeyColumnConfigBuilder> builderSetup)Builds aForeignKeyColumnConfigin-placeForeignKeyColumnConfigBuilderclear()Clears all values from the builderjava.util.Map<ForeignKeyColumnConfig.Field,java.lang.Object>getValues()ForeignKeyColumnConfigBuilderputAll(java.util.Map<ForeignKeyColumnConfig.Field,java.lang.Object> values)Puts all values from the given map into this builder.ForeignKeyColumnConfigBuilderputAll(ForeignKeyColumnConfig config)Puts all values from the given config into this builderForeignKeyColumnConfigBuildersetName(java.lang.String name)name of the foreign key columnForeignKeyColumnConfigBuildersetReferences(java.lang.String references)name of the referenced column (only optional if there is exactly one foreign key column)java.io.InputStreamtoInputStream()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ForeignKeyColumnConfigBuilder
public ForeignKeyColumnConfigBuilder()
Constructs an empty ForeignKeyColumnConfigBuilder
-
ForeignKeyColumnConfigBuilder
public ForeignKeyColumnConfigBuilder(java.util.Map<ForeignKeyColumnConfig.Field,java.lang.Object> values)
Constructs a ForeignKeyColumnConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
ForeignKeyColumnConfigBuilder
public ForeignKeyColumnConfigBuilder(ForeignKeyColumnConfig config)
Constructs a ForeignKeyColumnConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
ForeignKeyColumnConfigBuilder
public ForeignKeyColumnConfigBuilder(ForeignKeyColumnConfigBuilder builder)
Constructs a ForeignKeyColumnConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Detail
-
buildForeignKeyColumnConfig
public static ForeignKeyColumnConfig buildForeignKeyColumnConfig(java.util.function.Consumer<ForeignKeyColumnConfigBuilder> builderSetup)
Builds aForeignKeyColumnConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdForeignKeyColumnConfig
-
putAll
public ForeignKeyColumnConfigBuilder putAll(java.util.Map<ForeignKeyColumnConfig.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 ForeignKeyColumnConfigBuilder putAll(ForeignKeyColumnConfig config)
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
public ForeignKeyColumnConfigBuilder clear()
Clears all values from the builder
-
build
public ForeignKeyColumnConfig build(java.lang.String parentPath)
Builds the ForeignKeyColumnConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of ForeignKeyColumnConfig
-
build
public ForeignKeyColumnConfig build()
Builds the ForeignKeyColumnConfig with aparentPathofnull.- Returns:
- An instance of ForeignKeyColumnConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStreamrepresenting the config
-
getValues
public java.util.Map<ForeignKeyColumnConfig.Field,java.lang.Object> getValues()
- Returns:
- the raw config values
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setName
public ForeignKeyColumnConfigBuilder setName(java.lang.String name)
name of the foreign key column
-
setReferences
public ForeignKeyColumnConfigBuilder setReferences(java.lang.String references)
name of the referenced column (only optional if there is exactly one foreign key column)
-
-