SqlParameter Class
- java.
lang. Object - Serializable
- JsonSerializable
- com.
microsoft. azure. documentdb. SqlParameter
- com.
public class SqlParameter extends JsonSerializable
Represents a SQL parameter in the SqlQuerySpec used for queries in the Azure Cosmos DB database service.
Constructor Summary
Constructor | 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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the parameter. |
<T extends Object> 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. |
Inherited Members
Constructor Details
SqlParameter
public SqlParameter()
Initializes a new instance of the SqlParameter class.
SqlParameter
public SqlParameter(String name, Object value)
Initializes a new instance of the SqlParameter class with the name and value of the parameter.
Parameters:
Method Details
getName
public String getName()
Gets the name of the parameter.
Returns:
getValue
public
Gets the value of the parameter.
Parameters:
Returns:
setName
public void setName(String name)
Sets the name of the parameter.
Parameters:
setValue
public void setValue(Object value)
Sets the value of the parameter.
Parameters:
Applies to
Azure SDK for Java