Package io.micronaut.data.runtime.query
Interface PreparedQueryResolver
- All Known Implementing Classes:
DefaultPreparedQueryResolver
public interface PreparedQueryResolver
Prepared query resolver.
- Since:
- 3.3
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription<E,
R> PreparedQuery<E, R> resolveCountQuery
(@NonNull io.micronaut.aop.MethodInvocationContext<?, ?> context, @NonNull StoredQuery<E, R> storedQuery, @Nullable Pageable pageable) Prepared count query resolved from the method context.<E,
R> PreparedQuery<E, R> resolveQuery
(@NonNull io.micronaut.aop.MethodInvocationContext<?, ?> context, @NonNull StoredQuery<E, R> storedQuery, @NonNull Pageable pageable) Prepared query resolved from the method context.
-
Method Details
-
resolveQuery
<E,R> PreparedQuery<E,R> resolveQuery(@NonNull @NonNull io.micronaut.aop.MethodInvocationContext<?, ?> context, @NonNull @NonNull StoredQuery<E, R> storedQuery, @NonNull @NonNull Pageable pageable) Prepared query resolved from the method context.- Type Parameters:
E
- The entity typeR
- The result type- Parameters:
context
- The method contextstoredQuery
- The stored querypageable
- The pageable- Returns:
- The prepared query
-
resolveCountQuery
<E,R> PreparedQuery<E,R> resolveCountQuery(@NonNull @NonNull io.micronaut.aop.MethodInvocationContext<?, ?> context, @NonNull @NonNull StoredQuery<E, R> storedQuery, @Nullable @Nullable Pageable pageable) Prepared count query resolved from the method context.- Type Parameters:
E
- The entity typeR
- The result type- Parameters:
context
- The method contextstoredQuery
- The stored querypageable
- The pageable- Returns:
- The prepared query
-