Package io.micronaut.data.runtime.query
Interface StoredQueryResolver
- All Known Implementing Classes:
DefaultStoredQueryResolver
public interface StoredQueryResolver
Stored query resolver.
- Since:
- 3.3
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptioncreateCountStoredQuery
(io.micronaut.inject.ExecutableMethod<?, ?> executableMethod, StoredQuery.OperationType operationType, String name, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Class<Object> rootEntity, String query, String[] queryParts, List<QueryParameterBinding> queryParameters) Create count stored query from provided values.<E,
QR> StoredQuery<E, QR> createStoredQuery
(io.micronaut.inject.ExecutableMethod<?, ?> executableMethod, StoredQuery.OperationType operationType, String name, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Class<Object> rootEntity, String query, String update, String[] queryParts, List<QueryParameterBinding> queryParameters, boolean hasPageable, boolean isSingleResult) Create stored query from provided values.<E,
R> StoredQuery<E, R> resolveCountQuery
(io.micronaut.aop.MethodInvocationContext<?, ?> context) Stored count query resolved from the method context.<E,
R> StoredQuery<E, R> resolveQuery
(io.micronaut.aop.MethodInvocationContext<?, ?> context) Stored query resolved from the method context.
-
Method Details
-
resolveQuery
Stored query resolved from the method context.- Type Parameters:
E
- The entity typeR
- The result type- Parameters:
context
- The method context- Returns:
- The prepared query
-
resolveCountQuery
Stored count query resolved from the method context.- Type Parameters:
E
- The entity typeR
- The result type- Parameters:
context
- The method context- Returns:
- The prepared query
-
createStoredQuery
<E,QR> StoredQuery<E,QR> createStoredQuery(io.micronaut.inject.ExecutableMethod<?, ?> executableMethod, StoredQuery.OperationType operationType, String name, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Class<Object> rootEntity, String query, String update, String[] queryParts, List<QueryParameterBinding> queryParameters, boolean hasPageable, boolean isSingleResult) Create stored query from provided values. Used for criteria stored query creation.- Type Parameters:
E
- The entity typeQR
- The result type- Parameters:
executableMethod
- The executableMethodoperationType
- The operationTypename
- The nameannotationMetadata
- The annotation metadatarootEntity
- The root entityquery
- The queryupdate
- The update queryqueryParts
- The query partsqueryParameters
- The query parametershasPageable
- Has pageableisSingleResult
- Is single result- Returns:
- new instance of stored query
-
createCountStoredQuery
StoredQuery<Object,Long> createCountStoredQuery(io.micronaut.inject.ExecutableMethod<?, ?> executableMethod, StoredQuery.OperationType operationType, String name, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, Class<Object> rootEntity, String query, String[] queryParts, List<QueryParameterBinding> queryParameters) Create count stored query from provided values. Used for criteria stored query creation.- Parameters:
executableMethod
- The executableMethodoperationType
- The operationTypename
- The nameannotationMetadata
- The annotation metadatarootEntity
- The root entityquery
- The queryqueryParts
- The query partsqueryParameters
- The query parameters- Returns:
- new instance of stored query
-