@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 String name()
The name of the parameter.
public TypeHint typeHint()
A hint that specifies the correct object type for data type mapping.
Values:
DECIMAL - The corresponding String parameter value is sent as an object of
DECIMAL type to the database.
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].
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].
DATE - The corresponding String parameter value is sent as an object of
DATE type to the database. The accepted format is YYYY-MM-DD.
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().
Values:
DECIMAL - The corresponding String parameter value is sent as an object of
DECIMAL type to the database.
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].
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].
DATE - The corresponding String parameter value is sent as an object of
DATE type to the database. The accepted format is YYYY-MM-DD.
TypeHintpublic String typeHintAsString()
A hint that specifies the correct object type for data type mapping.
Values:
DECIMAL - The corresponding String parameter value is sent as an object of
DECIMAL type to the database.
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].
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].
DATE - The corresponding String parameter value is sent as an object of
DATE type to the database. The accepted format is YYYY-MM-DD.
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().
Values:
DECIMAL - The corresponding String parameter value is sent as an object of
DECIMAL type to the database.
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].
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].
DATE - The corresponding String parameter value is sent as an object of
DATE type to the database. The accepted format is YYYY-MM-DD.
TypeHintpublic 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.