azure-docs-sdk-java/docs-ref-autogen/com.azure.cosmos.models.Sql...

125 строки
8.0 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.cosmos.models.SqlQuerySpec"
fullName: "com.azure.cosmos.models.SqlQuerySpec"
name: "SqlQuerySpec"
nameWithType: "SqlQuerySpec"
summary: "Represents a SQL query in the Azure Cosmos DB database service."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **SqlQuerySpec**"
constructors:
- uid: "com.azure.cosmos.models.SqlQuerySpec.SqlQuerySpec()"
fullName: "com.azure.cosmos.models.SqlQuerySpec.SqlQuerySpec()"
name: "SqlQuerySpec()"
nameWithType: "SqlQuerySpec.SqlQuerySpec()"
summary: "Initializes a new instance of the Sql<wbr>Query<wbr>Spec class."
syntax: "public SqlQuerySpec()"
desc: "Initializes a new instance of the SqlQuerySpec class."
- uid: "com.azure.cosmos.models.SqlQuerySpec.SqlQuerySpec(java.lang.String)"
fullName: "com.azure.cosmos.models.SqlQuerySpec.SqlQuerySpec(String queryText)"
name: "SqlQuerySpec(String queryText)"
nameWithType: "SqlQuerySpec.SqlQuerySpec(String queryText)"
summary: "Initializes a new instance of the Sql<wbr>Query<wbr>Spec class with the text of the query."
parameters:
- description: "the query text."
name: "queryText"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public SqlQuerySpec(String queryText)"
desc: "Initializes a new instance of the SqlQuerySpec class with the text of the query."
- uid: "com.azure.cosmos.models.SqlQuerySpec.SqlQuerySpec(java.lang.String,com.azure.cosmos.models.SqlParameter...)"
fullName: "com.azure.cosmos.models.SqlQuerySpec.SqlQuerySpec(String queryText, SqlParameter[] parameters)"
name: "SqlQuerySpec(String queryText, SqlParameter[] parameters)"
nameWithType: "SqlQuerySpec.SqlQuerySpec(String queryText, SqlParameter[] parameters)"
summary: "Initializes a new instance of the Sql<wbr>Query<wbr>Spec class with the text of the query and parameters."
parameters:
- description: "the query text."
name: "queryText"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "the query parameters."
name: "parameters"
type: "<xref href=\"com.azure.cosmos.models.SqlParameter?alt=com.azure.cosmos.models.SqlParameter&text=SqlParameter\" data-throw-if-not-resolved=\"False\" />[]"
syntax: "public SqlQuerySpec(String queryText, SqlParameter[] parameters)"
desc: "Initializes a new instance of the SqlQuerySpec class with the text of the query and parameters."
- uid: "com.azure.cosmos.models.SqlQuerySpec.SqlQuerySpec(java.lang.String,java.util.List<com.azure.cosmos.models.SqlParameter>)"
fullName: "com.azure.cosmos.models.SqlQuerySpec.SqlQuerySpec(String queryText, List<SqlParameter> parameters)"
name: "SqlQuerySpec(String queryText, List<SqlParameter> parameters)"
nameWithType: "SqlQuerySpec.SqlQuerySpec(String queryText, List<SqlParameter> parameters)"
summary: "Initializes a new instance of the Sql<wbr>Query<wbr>Spec class with the text of the query and parameters."
parameters:
- description: "the query text."
name: "queryText"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "the query parameters."
name: "parameters"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.cosmos.models.SqlParameter?alt=com.azure.cosmos.models.SqlParameter&text=SqlParameter\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public SqlQuerySpec(String queryText, List<SqlParameter> parameters)"
desc: "Initializes a new instance of the SqlQuerySpec class with the text of the query and parameters."
methods:
- uid: "com.azure.cosmos.models.SqlQuerySpec.getParameters()"
fullName: "com.azure.cosmos.models.SqlQuerySpec.getParameters()"
name: "getParameters()"
nameWithType: "SqlQuerySpec.getParameters()"
summary: "Gets the container of query parameters."
syntax: "public List<SqlParameter> getParameters()"
desc: "Gets the container of query parameters."
returns:
description: "the query parameters."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.cosmos.models.SqlParameter?alt=com.azure.cosmos.models.SqlParameter&text=SqlParameter\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.cosmos.models.SqlQuerySpec.getQueryText()"
fullName: "com.azure.cosmos.models.SqlQuerySpec.getQueryText()"
name: "getQueryText()"
nameWithType: "SqlQuerySpec.getQueryText()"
summary: "Gets the text of the query."
syntax: "public String getQueryText()"
desc: "Gets the text of the query."
returns:
description: "the query text."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.cosmos.models.SqlQuerySpec.setParameters(java.util.List<com.azure.cosmos.models.SqlParameter>)"
fullName: "com.azure.cosmos.models.SqlQuerySpec.setParameters(List<SqlParameter> parameters)"
name: "setParameters(List<SqlParameter> parameters)"
nameWithType: "SqlQuerySpec.setParameters(List<SqlParameter> parameters)"
summary: "Sets the container of query parameters."
parameters:
- description: "the query parameters."
name: "parameters"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.cosmos.models.SqlParameter?alt=com.azure.cosmos.models.SqlParameter&text=SqlParameter\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public SqlQuerySpec setParameters(List<SqlParameter> parameters)"
desc: "Sets the container of query parameters."
returns:
description: "the SqlQuerySpec."
type: "<xref href=\"com.azure.cosmos.models.SqlQuerySpec?alt=com.azure.cosmos.models.SqlQuerySpec&text=SqlQuerySpec\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.cosmos.models.SqlQuerySpec.setQueryText(java.lang.String)"
fullName: "com.azure.cosmos.models.SqlQuerySpec.setQueryText(String queryText)"
name: "setQueryText(String queryText)"
nameWithType: "SqlQuerySpec.setQueryText(String queryText)"
summary: "Sets the text of the query."
parameters:
- description: "the query text."
name: "queryText"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public SqlQuerySpec setQueryText(String queryText)"
desc: "Sets the text of the query."
returns:
description: "the SqlQuerySpec."
type: "<xref href=\"com.azure.cosmos.models.SqlQuerySpec?alt=com.azure.cosmos.models.SqlQuerySpec&text=SqlQuerySpec\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Represents a SQL query in the Azure Cosmos DB database service."
metadata: {}
package: "com.azure.cosmos.models"
artifact: com.azure:azure-cosmos:4.63.3