@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)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<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()
Take this object and create a builder that contains all of the current property values of this object.
|
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.
|
copy
public 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
.
TypeHint
public 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
.
TypeHint
public Field value()
The value of the parameter.
public SqlParameter.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SqlParameter.Builder,SqlParameter>
public static SqlParameter.Builder builder()
public static Class<? extends SqlParameter.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic String toString()
Copyright © 2019 Amazon Web Services, Inc. All Rights Reserved.