SqlQuerySpec Class
- java.
lang. Object - Serializable
- JsonSerializable
- com.
microsoft. azure. documentdb. SqlQuerySpec
- com.
public 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 SqlQuerySpec class. |
SqlQuerySpec(String queryText) |
Initializes a new instance of the SqlQuerySpec class with the text of the query. |
SqlQuerySpec(String queryText, SqlParameterCollection parameters) |
Initializes a new instance of the SqlQuerySpec class with the text of the query and parameters. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Sql |
getParameters()
Gets the collection of query parameters. |
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. |
Inherited Members
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