Interface SqlParameter.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SqlParameter.Builder,SqlParameter>,SdkBuilder<SqlParameter.Builder,SqlParameter>,SdkPojo
- Enclosing class:
- SqlParameter
public static interface SqlParameter.Builder extends SdkPojo, CopyableBuilder<SqlParameter.Builder,SqlParameter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SqlParameter.Buildername(String name)The name of the parameter.SqlParameter.BuildertypeHint(String typeHint)A hint that specifies the correct object type for data type mapping.SqlParameter.BuildertypeHint(TypeHint typeHint)A hint that specifies the correct object type for data type mapping.default SqlParameter.Buildervalue(Consumer<Field.Builder> value)The value of the parameter.SqlParameter.Buildervalue(Field value)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 Detail
-
name
SqlParameter.Builder name(String 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
SqlParameter.Builder value(Field 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
default SqlParameter.Builder value(Consumer<Field.Builder> 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:
value(Field)
-
typeHint
SqlParameter.Builder typeHint(String 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,TypeHint
-
-
typeHint
SqlParameter.Builder typeHint(TypeHint 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,TypeHint
-
-
-