Package io.micronaut.data.model.runtime
Interface PreparedQuery<E,R>
- Type Parameters:
E
- The entity typeR
- The result type
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider
,io.micronaut.core.annotation.AnnotationSource
,io.micronaut.core.attr.AttributeHolder
,io.micronaut.core.naming.Named
,PagedQuery<E>
,PreparedDataOperation<R>
,StoredDataOperation<R>
,StoredQuery<E,
R>
- All Known Subinterfaces:
BindableParametersPreparedQuery<E,
,R> DelegatePreparedQuery<E,
,R> MongoPreparedQuery<E,
,R> SqlPreparedQuery<E,
R>
- All Known Implementing Classes:
DefaultBindableParametersPreparedQuery
,DefaultPreparedQuery
,DefaultSqlPreparedQuery
,DummyPreparedQuery
public interface PreparedQuery<E,R>
extends PagedQuery<E>, StoredQuery<E,R>, PreparedDataOperation<R>
Interface that models a prepared query. A prepared query extends from
StoredQuery
and includes the bound parameter values.- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.data.model.runtime.StoredQuery
StoredQuery.OperationType
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Method Summary
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
Methods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttribute, getAttributes
Methods inherited from interface io.micronaut.core.naming.Named
getName
Methods inherited from interface io.micronaut.data.model.runtime.PagedQuery
getPageable, getRootEntity
Methods inherited from interface io.micronaut.data.model.runtime.PreparedDataOperation
getParameterInRole
Methods inherited from interface io.micronaut.data.model.runtime.StoredQuery
getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getJoinFetchPaths, getJoinPaths, getLimit, getOffset, getOperationType, getParameterExpressions, getQuery, getQueryBindings, getResultArgument, getResultDataType, getResultType, getRootEntity, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isProcedure, isSingleResult, useNumericPlaceholders
-
Method Details
-
getRepositoryType
Class<?> getRepositoryType()- Returns:
- The repository type.
-
getParameterArray
Object[] getParameterArray()- Returns:
- The method parameters
-
getArguments
io.micronaut.core.type.Argument[] getArguments()- Returns:
- The method arguments
-
getQueryHints
Description copied from interface:PagedQuery
The parameter binding. That is the mapping between named query parameters and parameters of the method.- Specified by:
getQueryHints
in interfacePagedQuery<E>
- Specified by:
getQueryHints
in interfaceStoredQuery<E,
R> - Returns:
- The parameter binding.
-
isRawQuery
boolean isRawQuery()Gets an indicator telling whether underlying query is raw query.- Specified by:
isRawQuery
in interfaceStoredQuery<E,
R> - Returns:
- true if it is raw query
-