Package oracle.pgx.config
Class PreparedQueryArgumentConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.PreparedQueryArgumentConfigBuilder
-
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"}) public final class PreparedQueryArgumentConfigBuilder extends java.lang.ObjectBuilder forPreparedQueryArgumentConfig.
-
-
Constructor Summary
Constructors Constructor Description PreparedQueryArgumentConfigBuilder()Constructs an empty PreparedQueryArgumentConfigBuilderPreparedQueryArgumentConfigBuilder(java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> values)Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given mapPreparedQueryArgumentConfigBuilder(PreparedQueryArgumentConfig config)Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given configPreparedQueryArgumentConfigBuilder(PreparedQueryArgumentConfigBuilder builder)Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedQueryArgumentConfigbuild()Builds the PreparedQueryArgumentConfig with aparentPathofnull.PreparedQueryArgumentConfigbuild(java.lang.String parentPath)Builds the PreparedQueryArgumentConfig.static PreparedQueryArgumentConfigbuildPreparedQueryArgumentConfig(java.util.function.Consumer<PreparedQueryArgumentConfigBuilder> builderSetup)Builds aPreparedQueryArgumentConfigin-placePreparedQueryArgumentConfigBuilderclear()Clears all values from the builderjava.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object>getValues()PreparedQueryArgumentConfigBuilderputAll(java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> values)Puts all values from the given map into this builder.PreparedQueryArgumentConfigBuilderputAll(PreparedQueryArgumentConfig config)Puts all values from the given config into this builderPreparedQueryArgumentConfigBuildersetType(QueryArgumentType type)argument typePreparedQueryArgumentConfigBuildersetValue(java.lang.Object value)valuejava.io.InputStreamtoInputStream()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PreparedQueryArgumentConfigBuilder
public PreparedQueryArgumentConfigBuilder()
Constructs an empty PreparedQueryArgumentConfigBuilder
-
PreparedQueryArgumentConfigBuilder
public PreparedQueryArgumentConfigBuilder(java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> values)
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
PreparedQueryArgumentConfigBuilder
public PreparedQueryArgumentConfigBuilder(PreparedQueryArgumentConfig config)
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
PreparedQueryArgumentConfigBuilder
public PreparedQueryArgumentConfigBuilder(PreparedQueryArgumentConfigBuilder builder)
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Detail
-
buildPreparedQueryArgumentConfig
public static PreparedQueryArgumentConfig buildPreparedQueryArgumentConfig(java.util.function.Consumer<PreparedQueryArgumentConfigBuilder> builderSetup)
Builds aPreparedQueryArgumentConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdPreparedQueryArgumentConfig
-
putAll
public PreparedQueryArgumentConfigBuilder putAll(java.util.Map<PreparedQueryArgumentConfig.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 PreparedQueryArgumentConfigBuilder putAll(PreparedQueryArgumentConfig config)
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
public PreparedQueryArgumentConfigBuilder clear()
Clears all values from the builder
-
build
public PreparedQueryArgumentConfig build(java.lang.String parentPath)
Builds the PreparedQueryArgumentConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of PreparedQueryArgumentConfig
-
build
public PreparedQueryArgumentConfig build()
Builds the PreparedQueryArgumentConfig with aparentPathofnull.- Returns:
- An instance of PreparedQueryArgumentConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStreamrepresenting the config
-
getValues
public java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> getValues()
- Returns:
- the raw config values
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setType
public PreparedQueryArgumentConfigBuilder setType(QueryArgumentType type)
argument type
-
setValue
public PreparedQueryArgumentConfigBuilder setValue(java.lang.Object value)
value
-
-