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.
|
void |
setName(String name)
Sets the name of the parameter.
|
void |
setValue(Object value)
Sets the value of the parameter.
|
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toStringpublic SqlParameter()
public String getName()
public void 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 void setValue(Object value)
value - the value of the parameter.Copyright © 2018. All rights reserved.