public static interface SqlParameter.Builder extends SdkPojo, CopyableBuilder<SqlParameter.Builder,SqlParameter>
| Modifier and Type | Method and Description |
|---|---|
SqlParameter.Builder |
name(String name)
The name of the parameter.
|
SqlParameter.Builder |
typeHint(String typeHint)
A hint that specifies the correct object type for data type mapping.
|
SqlParameter.Builder |
typeHint(TypeHint typeHint)
A hint that specifies the correct object type for data type mapping.
|
default SqlParameter.Builder |
value(Consumer<Field.Builder> value)
The value of the parameter.
|
SqlParameter.Builder |
value(Field value)
The value of the parameter.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSqlParameter.Builder name(String name)
The name of the parameter.
name - The name of the parameter.SqlParameter.Builder typeHint(String typeHint)
A hint that specifies the correct object type for data type mapping. Possible values are as follows:
DATE - The corresponding String parameter value is sent as an object of
DATE type to the database. The accepted format is YYYY-MM-DD.
DECIMAL - The corresponding String parameter value is sent as an object of
DECIMAL type to the database.
JSON - The corresponding String parameter value is sent as an object of
JSON type to the database.
TIME - The corresponding String parameter value is sent as an object of
TIME type to the database. The accepted format is HH:MM:SS[.FFF].
TIMESTAMP - The corresponding String parameter value is sent as an object of
TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].
UUID - The corresponding String parameter value is sent as an object of
UUID type to the database.
typeHint - A hint that specifies the correct object type for data type mapping. Possible values are as
follows:
DATE - The corresponding String parameter value is sent as an object of
DATE type to the database. The accepted format is YYYY-MM-DD.
DECIMAL - The corresponding String parameter value is sent as an object of
DECIMAL type to the database.
JSON - The corresponding String parameter value is sent as an object of
JSON type to the database.
TIME - The corresponding String parameter value is sent as an object of
TIME type to the database. The accepted format is HH:MM:SS[.FFF].
TIMESTAMP - The corresponding String parameter value is sent as an object of
TIMESTAMP type to the database. The accepted format is
YYYY-MM-DD HH:MM:SS[.FFF].
UUID - The corresponding String parameter value is sent as an object of
UUID type to the database.
TypeHint,
TypeHintSqlParameter.Builder typeHint(TypeHint typeHint)
A hint that specifies the correct object type for data type mapping. Possible values are as follows:
DATE - The corresponding String parameter value is sent as an object of
DATE type to the database. The accepted format is YYYY-MM-DD.
DECIMAL - The corresponding String parameter value is sent as an object of
DECIMAL type to the database.
JSON - The corresponding String parameter value is sent as an object of
JSON type to the database.
TIME - The corresponding String parameter value is sent as an object of
TIME type to the database. The accepted format is HH:MM:SS[.FFF].
TIMESTAMP - The corresponding String parameter value is sent as an object of
TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].
UUID - The corresponding String parameter value is sent as an object of
UUID type to the database.
typeHint - A hint that specifies the correct object type for data type mapping. Possible values are as
follows:
DATE - The corresponding String parameter value is sent as an object of
DATE type to the database. The accepted format is YYYY-MM-DD.
DECIMAL - The corresponding String parameter value is sent as an object of
DECIMAL type to the database.
JSON - The corresponding String parameter value is sent as an object of
JSON type to the database.
TIME - The corresponding String parameter value is sent as an object of
TIME type to the database. The accepted format is HH:MM:SS[.FFF].
TIMESTAMP - The corresponding String parameter value is sent as an object of
TIMESTAMP type to the database. The accepted format is
YYYY-MM-DD HH:MM:SS[.FFF].
UUID - The corresponding String parameter value is sent as an object of
UUID type to the database.
TypeHint,
TypeHintSqlParameter.Builder value(Field value)
The value of the parameter.
value - The value of the parameter.default SqlParameter.Builder value(Consumer<Field.Builder> value)
The value of the parameter.
This is a convenience that creates an instance of theField.Builder avoiding the need to create one
manually via Field.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to value(Field).value - a consumer that will call methods on Field.Buildervalue(Field)Copyright © 2021. All rights reserved.