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 |
name()
Gets the name of the parameter.
|
SqlParameter |
name(String name)
Sets the name of the parameter.
|
<T> Object |
value(Class<T> c)
Gets the value of the parameter.
|
SqlParameter |
value(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 name()
public SqlParameter name(String name)
name
- the name of the parameter.public <T> Object value(Class<T> c)
T
- the type of the parameterc
- the class of the parameter value.public SqlParameter value(Object value)
value
- the value of the parameter.Copyright © 2019. All rights reserved.