Interface SqlParameter.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SqlParameter.Builder,
,SqlParameter> SdkBuilder<SqlParameter.Builder,
,SqlParameter> SdkPojo
- Enclosing class:
SqlParameter
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the parameter.A hint that specifies the correct object type for data type mapping.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.The value of the parameter.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the parameter.
- Parameters:
name
- The name of the parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value of the parameter.
- Parameters:
value
- The value of the parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value of the parameter.
This is a convenience method that creates an instance of theField.Builder
avoiding the need to create one manually viaField.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalue(Field)
.- Parameters:
value
- a consumer that will call methods onField.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
typeHint
A hint that specifies the correct object type for data type mapping. Possible values are as follows:
-
DATE
- The correspondingString
parameter value is sent as an object ofDATE
type to the database. The accepted format isYYYY-MM-DD
. -
DECIMAL
- The correspondingString
parameter value is sent as an object ofDECIMAL
type to the database. -
JSON
- The correspondingString
parameter value is sent as an object ofJSON
type to the database. -
TIME
- The correspondingString
parameter value is sent as an object ofTIME
type to the database. The accepted format isHH:MM:SS[.FFF]
. -
TIMESTAMP
- The correspondingString
parameter value is sent as an object ofTIMESTAMP
type to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]
. -
UUID
- The correspondingString
parameter value is sent as an object ofUUID
type to the database.
- Parameters:
typeHint
- A hint that specifies the correct object type for data type mapping. Possible values are as follows:-
DATE
- The correspondingString
parameter value is sent as an object ofDATE
type to the database. The accepted format isYYYY-MM-DD
. -
DECIMAL
- The correspondingString
parameter value is sent as an object ofDECIMAL
type to the database. -
JSON
- The correspondingString
parameter value is sent as an object ofJSON
type to the database. -
TIME
- The correspondingString
parameter value is sent as an object ofTIME
type to the database. The accepted format isHH:MM:SS[.FFF]
. -
TIMESTAMP
- The correspondingString
parameter value is sent as an object ofTIMESTAMP
type to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]
. -
UUID
- The correspondingString
parameter value is sent as an object ofUUID
type to the database.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
typeHint
A hint that specifies the correct object type for data type mapping. Possible values are as follows:
-
DATE
- The correspondingString
parameter value is sent as an object ofDATE
type to the database. The accepted format isYYYY-MM-DD
. -
DECIMAL
- The correspondingString
parameter value is sent as an object ofDECIMAL
type to the database. -
JSON
- The correspondingString
parameter value is sent as an object ofJSON
type to the database. -
TIME
- The correspondingString
parameter value is sent as an object ofTIME
type to the database. The accepted format isHH:MM:SS[.FFF]
. -
TIMESTAMP
- The correspondingString
parameter value is sent as an object ofTIMESTAMP
type to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]
. -
UUID
- The correspondingString
parameter value is sent as an object ofUUID
type to the database.
- Parameters:
typeHint
- A hint that specifies the correct object type for data type mapping. Possible values are as follows:-
DATE
- The correspondingString
parameter value is sent as an object ofDATE
type to the database. The accepted format isYYYY-MM-DD
. -
DECIMAL
- The correspondingString
parameter value is sent as an object ofDECIMAL
type to the database. -
JSON
- The correspondingString
parameter value is sent as an object ofJSON
type to the database. -
TIME
- The correspondingString
parameter value is sent as an object ofTIME
type to the database. The accepted format isHH:MM:SS[.FFF]
. -
TIMESTAMP
- The correspondingString
parameter value is sent as an object ofTIMESTAMP
type to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]
. -
UUID
- The correspondingString
parameter value is sent as an object ofUUID
type to the database.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-