public final class SqlParameter extends Object
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 |
---|---|
boolean |
equals(Object o) |
String |
getName()
Gets the name of the parameter.
|
<T> T |
getValue(Class<T> classType)
Gets the value of the parameter.
|
int |
hashCode() |
SqlParameter |
setName(String name)
Sets the name of the parameter.
|
SqlParameter |
setValue(Object value)
Sets the value of the parameter.
|
public SqlParameter()
public String getName()
public SqlParameter setName(String name)
name
- the name of the parameter.public <T> T getValue(Class<T> classType)
T
- the type of the parameterclassType
- the class of the parameter value.public SqlParameter setValue(Object value)
value
- the value of the parameter.Copyright © 2021 Microsoft Corporation. All rights reserved.