@Generated(value={"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class PreparedQueryArgumentConfigBuilder
extends java.lang.Object
PreparedQueryArgumentConfig
.Constructor and Description |
---|
PreparedQueryArgumentConfigBuilder()
Constructs an empty PreparedQueryArgumentConfigBuilder
|
PreparedQueryArgumentConfigBuilder(java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> values)
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given map
|
PreparedQueryArgumentConfigBuilder(PreparedQueryArgumentConfig config)
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given config
|
PreparedQueryArgumentConfigBuilder(PreparedQueryArgumentConfigBuilder builder)
Constructs a PreparedQueryArgumentConfigBuilder initialized with the values from the given builder
|
Modifier and Type | Method and Description |
---|---|
PreparedQueryArgumentConfig |
build()
Builds the PreparedQueryArgumentConfig with a
parentPath of null . |
PreparedQueryArgumentConfig |
build(java.lang.String parentPath)
Builds the PreparedQueryArgumentConfig.
|
static PreparedQueryArgumentConfig |
buildPreparedQueryArgumentConfig(java.util.function.Consumer<PreparedQueryArgumentConfigBuilder> builderSetup)
Builds a
PreparedQueryArgumentConfig in-place |
PreparedQueryArgumentConfigBuilder |
clear()
Clears all values from the builder
|
java.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 builder
|
PreparedQueryArgumentConfigBuilder |
setType(QueryArgumentType type)
argument type
|
PreparedQueryArgumentConfigBuilder |
setValue(java.lang.Object value)
value
|
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
public PreparedQueryArgumentConfigBuilder()
public PreparedQueryArgumentConfigBuilder(java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> values)
values
- a map containing configuration valuespublic PreparedQueryArgumentConfigBuilder(PreparedQueryArgumentConfig config)
config
- the configuration to take the values frompublic PreparedQueryArgumentConfigBuilder(PreparedQueryArgumentConfigBuilder builder)
builder
- the builder to take the values frompublic PreparedQueryArgumentConfig build()
parentPath
of null
.build(String)
public PreparedQueryArgumentConfig build(java.lang.String parentPath)
parentPath
- if not null, resolves relative paths against this parentPathpublic static PreparedQueryArgumentConfig buildPreparedQueryArgumentConfig(java.util.function.Consumer<PreparedQueryArgumentConfigBuilder> builderSetup)
PreparedQueryArgumentConfig
in-placebuilderSetup
- a consumer to setup a newly created PreparedQueryArgumentConfig
public PreparedQueryArgumentConfigBuilder clear()
public java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> getValues()
public PreparedQueryArgumentConfigBuilder putAll(java.util.Map<PreparedQueryArgumentConfig.Field,java.lang.Object> values)
values
- the values to put in the builderpublic PreparedQueryArgumentConfigBuilder putAll(PreparedQueryArgumentConfig config)
config
- the config to take the values frompublic PreparedQueryArgumentConfigBuilder setType(QueryArgumentType type)
public PreparedQueryArgumentConfigBuilder setValue(java.lang.Object value)
public java.io.InputStream toInputStream()
InputStream
representing the configpublic java.lang.String toString()
toString
in class java.lang.Object