@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SqlParameter extends Object implements Serializable, Cloneable, StructuredPojo
A parameter used in a SQL statement.
Constructor and Description |
---|
SqlParameter() |
Modifier and Type | Method and Description |
---|---|
SqlParameter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the parameter.
|
String |
getTypeHint()
A hint that specifies the correct object type for data type mapping.
|
Field |
getValue()
The value of the parameter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the parameter.
|
void |
setTypeHint(String typeHint)
A hint that specifies the correct object type for data type mapping.
|
void |
setValue(Field value)
The value of the parameter.
|
String |
toString()
Returns a string representation of this object.
|
SqlParameter |
withName(String name)
The name of the parameter.
|
SqlParameter |
withTypeHint(String typeHint)
A hint that specifies the correct object type for data type mapping.
|
SqlParameter |
withTypeHint(TypeHint typeHint)
A hint that specifies the correct object type for data type mapping.
|
SqlParameter |
withValue(Field value)
The value of the parameter.
|
public void setName(String name)
The name of the parameter.
name
- The name of the parameter.public String getName()
The name of the parameter.
public SqlParameter withName(String name)
The name of the parameter.
name
- The name of the parameter.public void setTypeHint(String 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.
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.
TypeHint
public String getTypeHint()
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.
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.
TypeHint
public SqlParameter withTypeHint(String 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.
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.
TypeHint
public SqlParameter withTypeHint(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.
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.
TypeHint
public void setValue(Field value)
The value of the parameter.
value
- The value of the parameter.public Field getValue()
The value of the parameter.
public SqlParameter withValue(Field value)
The value of the parameter.
value
- The value of the parameter.public String toString()
toString
in class Object
Object.toString()
public SqlParameter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.