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 Object
Builder for
PreparedQueryArgumentConfig.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty PreparedQueryArgumentConfigBuilderConstructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given mapConstructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given configConstructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given builder -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the PreparedQueryArgumentConfig with aparentPathofnull.Builds the PreparedQueryArgumentConfig.static PreparedQueryArgumentConfigBuilds aPreparedQueryArgumentConfigin-placeclear()Clears all values from the builderputAll(Map<PreparedQueryArgumentConfig.Field, Object> values) Puts all values from the given map into this builder.putAll(PreparedQueryArgumentConfig config) Puts all values from the given config into this buildersetType(QueryArgumentType type) argument typevaluetoString()
-
Constructor Details
-
PreparedQueryArgumentConfigBuilder
public PreparedQueryArgumentConfigBuilder()Constructs an empty PreparedQueryArgumentConfigBuilder -
PreparedQueryArgumentConfigBuilder
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
PreparedQueryArgumentConfigBuilder
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
PreparedQueryArgumentConfigBuilder
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Details
-
buildPreparedQueryArgumentConfig
public static PreparedQueryArgumentConfig buildPreparedQueryArgumentConfig(Consumer<PreparedQueryArgumentConfigBuilder> builderSetup) Builds aPreparedQueryArgumentConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdPreparedQueryArgumentConfig
-
putAll
public PreparedQueryArgumentConfigBuilder putAll(Map<PreparedQueryArgumentConfig.Field, Object> values) Puts all values from the given map into this builder.- Parameters:
values- the values to put in the builder
-
putAll
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
Clears all values from the builder -
build
Builds the PreparedQueryArgumentConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of PreparedQueryArgumentConfig
-
build
Builds the PreparedQueryArgumentConfig with aparentPathofnull.- Returns:
- An instance of PreparedQueryArgumentConfig
- See Also:
-
toInputStream
- Returns:
- an
InputStreamrepresenting the config
-
getValues
- Returns:
- the raw config values
-
toString
-
setType
argument type -
setValue
value
-