SqlQuerySpec Class
- java.
lang. Object - com.
azure. cosmos. models. SqlQuerySpec
- com.
public final class SqlQuerySpec
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, SqlParameter[] parameters) |
Initializes a new instance of the Sql |
SqlQuerySpec(String queryText, List<SqlParameter> parameters) |
Initializes a new instance of the Sql |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Sql |
getParameters()
Gets the container of query parameters. |
String |
getQueryText()
Gets the text of the query. |
Sql |
setParameters(List<SqlParameter> parameters)
Sets the container of query parameters. |
Sql |
setQueryText(String queryText)
Sets the text of the query. |
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, SqlParameter[] parameters)
Initializes a new instance of the SqlQuerySpec class with the text of the query and parameters.
Parameters:
SqlQuerySpec
public SqlQuerySpec(String queryText, List
Initializes a new instance of the SqlQuerySpec class with the text of the query and parameters.
Parameters:
Method Details
getParameters
public List
Gets the container of query parameters.
Returns:
getQueryText
public String getQueryText()
Gets the text of the query.
Returns:
setParameters
public SqlQuerySpec setParameters(List
Sets the container of query parameters.
Parameters:
Returns:
setQueryText
public SqlQuerySpec setQueryText(String queryText)
Sets the text of the query.
Parameters:
Returns:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour