SqlParameter Class
- java.
lang. Object - com.
azure. cosmos. models. SqlParameter
- com.
public final class SqlParameter
Represents a SQL parameter in the SqlQuerySpec used for queries in the Azure Cosmos DB database service.
Constructor | Description |
---|---|
Sql |
Initializes a new instance of the Sql |
Sql |
Initializes a new instance of the Sql |
Modifier and Type | Method and Description |
---|---|
boolean | equals(Object o) |
String |
get Gets the name of the parameter. |
T |
get Gets the value of the parameter. |
int |
hash |
Sql |
set Sets the name of the parameter. |
Sql |
set Sets the value of the parameter. |
Methods inherited from java.lang.Object
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:
equals
public boolean equals(Object o)
Overrides:
SqlParameter.equals(Object o)Parameters:
getName
public String getName()
Gets the name of the parameter.
Returns:
getValue
public T
Gets the value of the parameter.
Parameters:
Returns:
hashCode
public int hashCode()
Overrides:
SqlParameter.hashCode()setName
public SqlParameter setName(String name)
Sets the name of the parameter.
Parameters:
Returns:
setValue
public SqlParameter setValue(Object value)
Sets the value of the parameter.
Parameters:
Returns: