Package io.micronaut.data.runtime.query
Class DefaultPreparedQueryResolver
java.lang.Object
io.micronaut.data.runtime.query.DefaultPreparedQueryResolver
- All Implemented Interfaces:
PreparedQueryResolver
@Internal
public abstract class DefaultPreparedQueryResolver
extends Object
implements PreparedQueryResolver
Default prepared query resolver.
- Since:
- 3.3
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract io.micronaut.core.convert.ConversionService
<E,
R> PreparedQuery<E, R> resolveCountQuery
(io.micronaut.aop.MethodInvocationContext<?, ?> context, StoredQuery<E, R> storedQuery, Pageable pageable) Prepared count query resolved from the method context.<E,
R> PreparedQuery<E, R> resolveQuery
(io.micronaut.aop.MethodInvocationContext<?, ?> context, StoredQuery<E, R> storedQuery, Pageable pageable) Prepared query resolved from the method context.
-
Constructor Details
-
DefaultPreparedQueryResolver
public DefaultPreparedQueryResolver()
-
-
Method Details
-
resolveQuery
public <E,R> PreparedQuery<E,R> resolveQuery(io.micronaut.aop.MethodInvocationContext<?, ?> context, StoredQuery<E, R> storedQuery, Pageable pageable) Description copied from interface:PreparedQueryResolver
Prepared query resolved from the method context.- Specified by:
resolveQuery
in interfacePreparedQueryResolver
- Type Parameters:
E
- The entity typeR
- The result type- Parameters:
context
- The method contextstoredQuery
- The stored querypageable
- The pageable- Returns:
- The prepared query
-
resolveCountQuery
public <E,R> PreparedQuery<E,R> resolveCountQuery(io.micronaut.aop.MethodInvocationContext<?, ?> context, StoredQuery<E, R> storedQuery, Pageable pageable) Description copied from interface:PreparedQueryResolver
Prepared count query resolved from the method context.- Specified by:
resolveCountQuery
in interfacePreparedQueryResolver
- Type Parameters:
E
- The entity typeR
- The result type- Parameters:
context
- The method contextstoredQuery
- The stored querypageable
- The pageable- Returns:
- The prepared query
-
getConversionService
protected abstract io.micronaut.core.convert.ConversionService getConversionService()
-