Package com.azure.cosmos.models
Class SqlParameter
java.lang.Object
com.azure.cosmos.models.SqlParameter
Represents a SQL parameter in the SqlQuerySpec used for queries in the Azure Cosmos DB database service.
-
Constructor Summary
ConstructorDescriptionInitializes 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
-
Constructor Details
-
SqlParameter
public SqlParameter()Initializes a new instance of the SqlParameter class. -
SqlParameter
Initializes a new instance of the SqlParameter class with the name and value of the parameter.- Parameters:
name
- the name of the parameter.value
- the value of the parameter.
-
-
Method Details
-
getName
Gets the name of the parameter.- Returns:
- the name of the parameter.
-
setName
Sets the name of the parameter.- Parameters:
name
- the name of the parameter.- Returns:
- the SqlParameter.
-
getValue
Gets the value of the parameter.- Type Parameters:
T
- the type of the parameter- Parameters:
classType
- the class of the parameter value.- Returns:
- the value of the parameter.
-
setValue
Sets the value of the parameter.- Parameters:
value
- the value of the parameter.- Returns:
- the SqlParameter.
-
equals
-
hashCode
public int hashCode()
-