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.Object
Builder 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 PreparedQueryArgumentConfig
build()
Builds the PreparedQueryArgumentConfig with aparentPath
ofnull
.PreparedQueryArgumentConfig
build(java.lang.String parentPath)
Builds the PreparedQueryArgumentConfig.static PreparedQueryArgumentConfig
buildPreparedQueryArgumentConfig(java.util.function.Consumer<PreparedQueryArgumentConfigBuilder> builderSetup)
Builds aPreparedQueryArgumentConfig
in-placePreparedQueryArgumentConfigBuilder
clear()
Clears all values from the builderjava.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object>
getValues()
PreparedQueryArgumentConfigBuilder
putAll(java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.PreparedQueryArgumentConfigBuilder
putAll(PreparedQueryArgumentConfig config)
Puts all values from the given config into this builderPreparedQueryArgumentConfigBuilder
setType(QueryArgumentType type)
argument typePreparedQueryArgumentConfigBuilder
setValue(java.lang.Object value)
valuejava.io.InputStream
toInputStream()
java.lang.String
toString()
-
-
-
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 aPreparedQueryArgumentConfig
in-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 aparentPath
ofnull
.- Returns:
- An instance of PreparedQueryArgumentConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStream
representing 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:
toString
in classjava.lang.Object
-
setType
public PreparedQueryArgumentConfigBuilder setType(QueryArgumentType type)
argument type
-
setValue
public PreparedQueryArgumentConfigBuilder setValue(java.lang.Object value)
value
-
-