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:
DelegatePreparedQuery<E,R>
,MongoPreparedQuery<E,R,Dtb>
,SqlPreparedQuery<E,R>
- All Known Implementing Classes:
DefaultPreparedQuery
public interface PreparedQuery<E,R> extends PagedQuery<E>, StoredQuery<E,R>, PreparedDataOperation<R>
Interface that models a prepared query. A prepared query extends fromStoredQuery
and includes the bound parameter values.- Since:
- 1.0.0
- Author:
- graemerocher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description io.micronaut.core.type.Argument[]
getArguments()
default java.lang.Class<?>
getLastUpdatedType()
Deprecated.java.lang.Object[]
getParameterArray()
java.util.Map<java.lang.String,java.lang.Object>
getParameterValues()
Deprecated.default java.util.Map<java.lang.String,java.lang.Object>
getQueryHints()
The parameter binding.java.lang.Class<?>
getRepositoryType()
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, 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.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.StoredDataOperation
getTransactionDefinition
-
Methods inherited from interface io.micronaut.data.model.runtime.StoredQuery
getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getIndexedParameterAutoPopulatedPreviousPropertyIndexes, getIndexedParameterAutoPopulatedPreviousPropertyPaths, getIndexedParameterAutoPopulatedPropertyPaths, getIndexedParameterBinding, getIndexedParameterPaths, getIndexedParameterTypes, getJoinFetchPaths, getLastUpdatedProperty, getParameterBinding, getParameterNames, getQuery, getQueryBindings, getResultArgument, getResultDataType, getResultType, getRootEntity, hasInExpression, hasPageable, hasResultConsumer, isCount, isDtoProjection, isNative, isOptimisticLock, isSingleResult, useNumericPlaceholders
-
-
-
-
Method Detail
-
getRepositoryType
java.lang.Class<?> getRepositoryType()
- Returns:
- The repository type.
-
getParameterValues
@NonNull @Deprecated java.util.Map<java.lang.String,java.lang.Object> getParameterValues()
Deprecated.- Returns:
- The named parameter values
-
getParameterArray
java.lang.Object[] getParameterArray()
- Returns:
- The method parameters
-
getArguments
io.micronaut.core.type.Argument[] getArguments()
- Returns:
- The method arguments
-
getLastUpdatedType
@Deprecated default java.lang.Class<?> getLastUpdatedType()
Deprecated.- Returns:
- The last updated type.
-
getQueryHints
@NonNull default java.util.Map<java.lang.String,java.lang.Object> 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.
-
-