public final class SqlParameter extends JsonSerializable
Constructor and Description |
---|
SqlParameter()
Initializes a new instance of the SqlParameter class.
|
SqlParameter(String name,
Object value)
Initializes a new instance of the SqlParameter class with the name and value of the parameter.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the parameter.
|
<T> Object |
getValue(Class<T> c)
Gets the value of the parameter.
|
SqlParameter |
setName(String name)
Sets the name of the parameter.
|
SqlParameter |
setValue(Object value)
Sets the value of the parameter.
|
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
public SqlParameter()
public String getName()
public SqlParameter setName(String name)
name
- the name of the parameter.public <T> Object getValue(Class<T> c)
T
- the type of the parameterc
- the class of the parameter value.public SqlParameter setValue(Object value)
value
- the value of the parameter.Copyright © 2020 Microsoft Corporation. All rights reserved.