azure-docs-sdk-java/docs-ref-autogen/com.azure.spring.data.cosmo...

81 строка
5.7 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator"
fullName: "com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator"
name: "NativeQueryGenerator"
nameWithType: "NativeQueryGenerator"
summary: "Augment custom queries sourced from @Query annotations"
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 class **NativeQueryGenerator**"
constructors:
- uid: "com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator.NativeQueryGenerator()"
fullName: "com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator.NativeQueryGenerator()"
name: "NativeQueryGenerator()"
nameWithType: "NativeQueryGenerator.NativeQueryGenerator()"
summary: "Creates an instance of <xref uid=\"com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator\" data-throw-if-not-resolved=\"false\" data-raw-source=\"NativeQueryGenerator\"></xref>."
syntax: "public NativeQueryGenerator()"
desc: "Creates an instance of <xref uid=\"com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator\" data-throw-if-not-resolved=\"false\" data-raw-source=\"NativeQueryGenerator\"></xref>."
methods:
- uid: "com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator.generateCountQuery(com.azure.cosmos.models.SqlQuerySpec)"
fullName: "com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator.generateCountQuery(SqlQuerySpec querySpec)"
name: "generateCountQuery(SqlQuerySpec querySpec)"
nameWithType: "NativeQueryGenerator.generateCountQuery(SqlQuerySpec querySpec)"
summary: "Generate count query."
parameters:
- description: "SQL query spec."
name: "querySpec"
type: "<xref href=\"com.azure.cosmos.models.SqlQuerySpec?alt=com.azure.cosmos.models.SqlQuerySpec&text=SqlQuerySpec\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SqlQuerySpec generateCountQuery(SqlQuerySpec querySpec)"
desc: "Generate count query."
returns:
description: "count query\n\n WARNING: This function is only to be used with @Query annotations"
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.spring.data.cosmos.core.generator.NativeQueryGenerator.generateSortedQuery(com.azure.cosmos.models.SqlQuerySpec,org.springframework.data.domain.Sort)"
fullName: "com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator.generateSortedQuery(SqlQuerySpec querySpec, Sort sort)"
name: "generateSortedQuery(SqlQuerySpec querySpec, Sort sort)"
nameWithType: "NativeQueryGenerator.generateSortedQuery(SqlQuerySpec querySpec, Sort sort)"
summary: "Generate sorted query."
parameters:
- description: "SQL query spec"
name: "querySpec"
type: "<xref href=\"com.azure.cosmos.models.SqlQuerySpec?alt=com.azure.cosmos.models.SqlQuerySpec&text=SqlQuerySpec\" data-throw-if-not-resolved=\"False\" />"
- description: "Sort"
name: "sort"
type: "<xref href=\"org.springframework.data.domain.Sort?alt=org.springframework.data.domain.Sort&text=Sort\" data-throw-if-not-resolved=\"False\" />"
syntax: "public SqlQuerySpec generateSortedQuery(SqlQuerySpec querySpec, Sort sort)"
desc: "Generate sorted query."
returns:
description: "sorted query\n\n WARNING: This function is only to be used with @Query annotations"
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.spring.data.cosmos.core.generator.NativeQueryGenerator.getInstance()"
fullName: "com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator.getInstance()"
name: "getInstance()"
nameWithType: "NativeQueryGenerator.getInstance()"
summary: "Return the native query generator instance."
modifiers:
- "static"
syntax: "public static NativeQueryGenerator getInstance()"
desc: "Return the native query generator instance."
returns:
description: "The native query generator instance"
type: "<xref href=\"com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator?alt=com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator&text=NativeQueryGenerator\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Augment custom queries sourced from @Query annotations"
metadata: {}
package: "com.azure.spring.data.cosmos.core.generator"
artifact: com.azure:azure-spring-data-cosmos:5.18.0