@Generated(value="software.amazon.awssdk:codegen") public final class SqlParameter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SqlParameter.Builder,SqlParameter>
A parameter used in a SQL statement.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SqlParameter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SqlParameter.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the parameter.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SqlParameter.Builder> |
serializableBuilderClass() |
SqlParameter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TypeHint |
typeHint()
A hint that specifies the correct object type for data type mapping.
|
String |
typeHintAsString()
A hint that specifies the correct object type for data type mapping.
|
Field |
value()
The value of the parameter.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the parameter.
public final 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.
If the service returns an enum value that is not available in the current SDK version, typeHint will
return TypeHint.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeHintAsString().
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.
TypeHintpublic final String typeHintAsString()
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.
If the service returns an enum value that is not available in the current SDK version, typeHint will
return TypeHint.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeHintAsString().
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.
TypeHintpublic final Field value()
The value of the parameter.
public SqlParameter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SqlParameter.Builder,SqlParameter>public static SqlParameter.Builder builder()
public static Class<? extends SqlParameter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.