Class NativeQueryGenerator
java.lang.Object
com.azure.spring.data.cosmos.core.generator.NativeQueryGenerator
Augment custom queries sourced from @Query annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateCountQuery(SqlQuerySpec querySpec) Generate count query.generateSortedQuery(SqlQuerySpec querySpec, org.springframework.data.domain.Sort sort) Generate sorted query.static NativeQueryGenerator
-
Constructor Details
-
NativeQueryGenerator
public NativeQueryGenerator()
-
-
Method Details
-
getInstance
- Returns:
- The native query generator instance
-
generateSortedQuery
public SqlQuerySpec generateSortedQuery(SqlQuerySpec querySpec, org.springframework.data.domain.Sort sort) Generate sorted query.- Parameters:
querySpec- SQL query specsort- Sort- Returns:
- sorted query WARNING: This function is only to be used with @Query annotations
-
generateCountQuery
Generate count query.- Parameters:
querySpec- SQL query spec.- Returns:
- count query WARNING: This function is only to be used with @Query annotations
-