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.Buildervalue(Consumer<Field.Builder> value) The value of the parameter.The value of the parameter.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaField.builder().When the
Consumercompletes,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 correspondingStringparameter value is sent as an object ofDATEtype to the database. The accepted format isYYYY-MM-DD. -
DECIMAL- The correspondingStringparameter value is sent as an object ofDECIMALtype to the database. -
JSON- The correspondingStringparameter value is sent as an object ofJSONtype to the database. -
TIME- The correspondingStringparameter value is sent as an object ofTIMEtype to the database. The accepted format isHH:MM:SS[.FFF]. -
TIMESTAMP- The correspondingStringparameter value is sent as an object ofTIMESTAMPtype to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]. -
UUID- The correspondingStringparameter value is sent as an object ofUUIDtype to the database.
- Parameters:
typeHint- A hint that specifies the correct object type for data type mapping. Possible values are as follows:-
DATE- The correspondingStringparameter value is sent as an object ofDATEtype to the database. The accepted format isYYYY-MM-DD. -
DECIMAL- The correspondingStringparameter value is sent as an object ofDECIMALtype to the database. -
JSON- The correspondingStringparameter value is sent as an object ofJSONtype to the database. -
TIME- The correspondingStringparameter value is sent as an object ofTIMEtype to the database. The accepted format isHH:MM:SS[.FFF]. -
TIMESTAMP- The correspondingStringparameter value is sent as an object ofTIMESTAMPtype to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]. -
UUID- The correspondingStringparameter value is sent as an object ofUUIDtype 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 correspondingStringparameter value is sent as an object ofDATEtype to the database. The accepted format isYYYY-MM-DD. -
DECIMAL- The correspondingStringparameter value is sent as an object ofDECIMALtype to the database. -
JSON- The correspondingStringparameter value is sent as an object ofJSONtype to the database. -
TIME- The correspondingStringparameter value is sent as an object ofTIMEtype to the database. The accepted format isHH:MM:SS[.FFF]. -
TIMESTAMP- The correspondingStringparameter value is sent as an object ofTIMESTAMPtype to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]. -
UUID- The correspondingStringparameter value is sent as an object ofUUIDtype to the database.
- Parameters:
typeHint- A hint that specifies the correct object type for data type mapping. Possible values are as follows:-
DATE- The correspondingStringparameter value is sent as an object ofDATEtype to the database. The accepted format isYYYY-MM-DD. -
DECIMAL- The correspondingStringparameter value is sent as an object ofDECIMALtype to the database. -
JSON- The correspondingStringparameter value is sent as an object ofJSONtype to the database. -
TIME- The correspondingStringparameter value is sent as an object ofTIMEtype to the database. The accepted format isHH:MM:SS[.FFF]. -
TIMESTAMP- The correspondingStringparameter value is sent as an object ofTIMESTAMPtype to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]. -
UUID- The correspondingStringparameter value is sent as an object ofUUIDtype to the database.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-