Interface DelegateStoredQuery<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.naming.Named,StoredDataOperation<R>,StoredQuery<E,R> 
- All Known Subinterfaces:
 DelegatePreparedQuery<E,R> 
- All Known Implementing Classes:
 DefaultBindableParametersPreparedQuery,DefaultBindableParametersStoredQuery,DefaultPreparedQuery,DefaultSqlPreparedQuery,DefaultSqlStoredQuery,DummyPreparedQuery
Delegate implementation of 
StoredQuery.- Since:
 - 3.3.
 - Author:
 - Denis Stepanov
 
- 
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
Modifier and TypeMethodDescriptiondefault io.micronaut.core.annotation.AnnotationMetadatadefault Class<?>[]The argument types to the method that invokes the query.The type of the ID member of the entity.default String[]The query to execute.default StringgetName()default StoredQuery.OperationTypeGet the operation type.default StringgetQuery()The query to execute.default List<QueryParameterBinding>The list of query bindings.The parameter binding.default io.micronaut.core.type.Argument<R>The query result type.default DataTypeThe query result type.The root entity type.default booleanDoes the query have a pageable.default booleandefault booleanisCount()default booleanReturns whether the query returns the actual entity or a Data Transfer Object (DTO) project.default booleandefault booleanisNative()In cases where one needs to differentiate between at higher level query format (like JPA-QL) and a lower level format (like SQL).default booleanIs with an optimistic lock.default booleanIs the query a procedure.default booleanGets an indicator telling whether underlying query is raw query.default booleanWhether the query can be treated as a single result.default booleanAre the placeholders for query set using numeric indices starting from 1.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared 
- 
Method Details
- 
getStoredQueryDelegate
StoredQuery<E,R> getStoredQueryDelegate()- Returns:
 - The delegate
 
 - 
getAnnotationMetadata
default io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
 getAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
 - 
getRootEntity
Description copied from interface:StoredQueryThe root entity type.- Specified by:
 getRootEntityin interfaceStoredQuery<E,R> - Returns:
 - The root entity type
 
 - 
hasPageable
default boolean hasPageable()Description copied from interface:StoredQueryDoes the query have a pageable.- Specified by:
 hasPageablein interfaceStoredQuery<E,R> - Returns:
 - True if it does
 
 - 
getQuery
Description copied from interface:StoredQueryThe query to execute.- Specified by:
 getQueryin interfaceStoredQuery<E,R> - Returns:
 - The query to execute
 
 - 
getExpandableQueryParts
Description copied from interface:StoredQueryThe query to execute.- Specified by:
 getExpandableQueryPartsin interfaceStoredQuery<E,R> - Returns:
 - The query to execute
 
 - 
getQueryBindings
Description copied from interface:StoredQueryThe list of query bindings.- Specified by:
 getQueryBindingsin interfaceStoredQuery<E,R> - Returns:
 - the query bindings
 
 - 
getResultType
Description copied from interface:StoredQueryThe query result type. This may differ from the root entity type returned byStoredQuery.getRootEntity().- Specified by:
 getResultTypein interfaceStoredQuery<E,R> - Returns:
 - The query result type
 
 - 
getResultArgument
Description copied from interface:StoredQueryThe query result type. This may differ from the root entity type returned byStoredQuery.getRootEntity().- Specified by:
 getResultArgumentin interfaceStoredDataOperation<E>- Specified by:
 getResultArgumentin interfaceStoredQuery<E,R> - Returns:
 - The query result type
 
 - 
getResultDataType
- Specified by:
 getResultDataTypein interfaceStoredQuery<E,R> - Returns:
 - The result data type.
 
 - 
isNative
default boolean isNative()Description copied from interface:StoredQueryIn cases where one needs to differentiate between at higher level query format (like JPA-QL) and a lower level format (like SQL).- Specified by:
 isNativein interfaceStoredQuery<E,R> - Returns:
 - Whether the query is native.
 
 - 
isProcedure
default boolean isProcedure()Description copied from interface:StoredQueryIs the query a procedure.- Specified by:
 isProcedurein interfaceStoredQuery<E,R> - Returns:
 - Whether the query is a procedure invocation.
 
 - 
getOperationType
Description copied from interface:StoredQueryGet the operation type.- Specified by:
 getOperationTypein interfaceStoredQuery<E,R> - Returns:
 - The operation type.
 
 - 
useNumericPlaceholders
default boolean useNumericPlaceholders()Description copied from interface:StoredQueryAre the placeholders for query set using numeric indices starting from 1.- Specified by:
 useNumericPlaceholdersin interfaceStoredQuery<E,R> - Returns:
 - True if they are.
 
 - 
isDtoProjection
default boolean isDtoProjection()Description copied from interface:StoredQueryReturns whether the query returns the actual entity or a Data Transfer Object (DTO) project. Defaults to false.- Specified by:
 isDtoProjectionin interfaceStoredQuery<E,R> - Returns:
 - Whether the query is a DTO projection query
 
 - 
getEntityIdentifierType
Description copied from interface:StoredQueryThe type of the ID member of the entity.- Specified by:
 getEntityIdentifierTypein interfaceStoredQuery<E,R> - Returns:
 - The ID type
 
 - 
getArgumentTypes
Description copied from interface:StoredQueryThe argument types to the method that invokes the query.- Specified by:
 getArgumentTypesin interfaceStoredQuery<E,R> - Returns:
 - The argument types
 
 - 
isCount
default boolean isCount()- Specified by:
 isCountin interfaceStoredQuery<E,R> - Returns:
 - Is this a count query.
 
 - 
getQueryHints
Description copied from interface:StoredQueryThe parameter binding. That is the mapping between named query parameters and parameters of the method.- Specified by:
 getQueryHintsin interfaceStoredQuery<E,R> - Returns:
 - The parameter binding.
 
 - 
getJoinFetchPaths
- Specified by:
 getJoinFetchPathsin interfaceStoredQuery<E,R> - Returns:
 - The join paths that require a fetch
 
 - 
isSingleResult
default boolean isSingleResult()Description copied from interface:StoredQueryWhether the query can be treated as a single result.- Specified by:
 isSingleResultin interfaceStoredQuery<E,R> - Returns:
 - True if it can.
 
 - 
hasResultConsumer
default boolean hasResultConsumer()- Specified by:
 hasResultConsumerin interfaceStoredQuery<E,R> - Returns:
 - Whether a result consumer is present
 
 - 
isOptimisticLock
default boolean isOptimisticLock()Description copied from interface:StoredQueryIs with an optimistic lock.- Specified by:
 isOptimisticLockin interfaceStoredQuery<E,R> - Returns:
 - the result
 
 - 
getName
- Specified by:
 getNamein interfaceio.micronaut.core.naming.Named
 - 
isRawQuery
default boolean isRawQuery()Description copied from interface:StoredQueryGets an indicator telling whether underlying query is raw query.- Specified by:
 isRawQueryin interfaceStoredQuery<E,R> - Returns:
 - true if it is raw query
 
 - 
isJsonEntity
default boolean isJsonEntity()- Specified by:
 isJsonEntityin interfaceStoredQuery<E,R> - Returns:
 - an indicator telling whether query is handling entities with JSON representation (like Oracle Json View)
 
 
 -