SqlQuerySpec Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. SqlQuerySpec
- com.
- com.
public final class SqlQuerySpec
extends JsonSerializable
Represents a SQL query in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
SqlQuerySpec() |
Initializes a new instance of the Sql |
SqlQuerySpec(String queryText) |
Initializes a new instance of the Sql |
SqlQuerySpec(String queryText, SqlParameterCollection parameters) |
Initializes a new instance of the Sql |
Method Summary
Modifier and Type | Method and Description |
---|---|
Sql |
getParameters()
Gets the collection of query parameters. |
java.lang.String |
getQueryText()
Gets the text of the query. |
void |
setParameters(SqlParameterCollection parameters)
Sets the collection of query parameters. |
void |
setQueryText(String queryText)
Sets the text of the query. |
Methods inherited from JsonSerializable
Methods inherited from java.lang.Object
Constructor Details
SqlQuerySpec
public SqlQuerySpec()
Initializes a new instance of the SqlQuerySpec class.
SqlQuerySpec
public SqlQuerySpec(String queryText)
Initializes a new instance of the SqlQuerySpec class with the text of the query.
Parameters:
SqlQuerySpec
public SqlQuerySpec(String queryText, SqlParameterCollection parameters)
Initializes a new instance of the SqlQuerySpec class with the text of the query and parameters.
Parameters:
Method Details
getParameters
public SqlParameterCollection getParameters()
Gets the collection of query parameters.
Returns:
getQueryText
public String getQueryText()
Gets the text of the query.
Returns:
setParameters
public void setParameters(SqlParameterCollection parameters)
Sets the collection of query parameters.
Parameters:
setQueryText
public void setQueryText(String queryText)
Sets the text of the query.
Parameters:
Applies to
Azure SDK for Java