Interface DelegateStoredQuery<E,R> 
- Type Parameters:
- E- The entity type
- R- 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
- 
Field SummaryFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Method SummaryModifier 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 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 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.AnnotationMetadataProviderfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSourcegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
- 
Method Details- 
getStoredQueryDelegateStoredQuery<E,R> getStoredQueryDelegate()- Returns:
- The delegate
 
- 
getAnnotationMetadatadefault io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
- getAnnotationMetadatain interface- io.micronaut.core.annotation.AnnotationMetadataProvider
 
- 
getRootEntityDescription copied from interface:StoredQueryThe root entity type.- Specified by:
- getRootEntityin interface- StoredQuery<E,- R> 
- Returns:
- The root entity type
 
- 
hasPageabledefault boolean hasPageable()Description copied from interface:StoredQueryDoes the query have a pageable.- Specified by:
- hasPageablein interface- StoredQuery<E,- R> 
- Returns:
- True if it does
 
- 
getQueryDescription copied from interface:StoredQueryThe query to execute.- Specified by:
- getQueryin interface- StoredQuery<E,- R> 
- Returns:
- The query to execute
 
- 
getExpandableQueryPartsDescription copied from interface:StoredQueryThe query to execute.- Specified by:
- getExpandableQueryPartsin interface- StoredQuery<E,- R> 
- Returns:
- The query to execute
 
- 
getQueryBindingsDescription copied from interface:StoredQueryThe list of query bindings.- Specified by:
- getQueryBindingsin interface- StoredQuery<E,- R> 
- Returns:
- the query bindings
 
- 
getResultTypeDescription copied from interface:StoredQueryThe query result type. This may differ from the root entity type returned byStoredQuery.getRootEntity().- Specified by:
- getResultTypein interface- StoredQuery<E,- R> 
- Returns:
- The query result type
 
- 
getResultArgumentDescription copied from interface:StoredQueryThe query result type. This may differ from the root entity type returned byStoredQuery.getRootEntity().- Specified by:
- getResultArgumentin interface- StoredDataOperation<E>
- Specified by:
- getResultArgumentin interface- StoredQuery<E,- R> 
- Returns:
- The query result type
 
- 
getResultDataType- Specified by:
- getResultDataTypein interface- StoredQuery<E,- R> 
- Returns:
- The result data type.
 
- 
isNativedefault 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 interface- StoredQuery<E,- R> 
- Returns:
- Whether the query is native.
 
- 
useNumericPlaceholdersdefault boolean useNumericPlaceholders()Description copied from interface:StoredQueryAre the placeholders for query set using numeric indices starting from 1.- Specified by:
- useNumericPlaceholdersin interface- StoredQuery<E,- R> 
- Returns:
- True if they are.
 
- 
isDtoProjectiondefault 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 interface- StoredQuery<E,- R> 
- Returns:
- Whether the query is a DTO projection query
 
- 
getEntityIdentifierTypeDescription copied from interface:StoredQueryThe type of the ID member of the entity.- Specified by:
- getEntityIdentifierTypein interface- StoredQuery<E,- R> 
- Returns:
- The ID type
 
- 
getArgumentTypesDescription copied from interface:StoredQueryThe argument types to the method that invokes the query.- Specified by:
- getArgumentTypesin interface- StoredQuery<E,- R> 
- Returns:
- The argument types
 
- 
isCountdefault boolean isCount()- Specified by:
- isCountin interface- StoredQuery<E,- R> 
- Returns:
- Is this a count query.
 
- 
getQueryHintsDescription copied from interface:StoredQueryThe parameter binding. That is the mapping between named query parameters and parameters of the method.- Specified by:
- getQueryHintsin interface- StoredQuery<E,- R> 
- Returns:
- The parameter binding.
 
- 
getJoinFetchPaths- Specified by:
- getJoinFetchPathsin interface- StoredQuery<E,- R> 
- Returns:
- The join paths that require a fetch
 
- 
isSingleResultdefault boolean isSingleResult()Description copied from interface:StoredQueryWhether the query can be treated as a single result.- Specified by:
- isSingleResultin interface- StoredQuery<E,- R> 
- Returns:
- True if it can.
 
- 
hasResultConsumerdefault boolean hasResultConsumer()- Specified by:
- hasResultConsumerin interface- StoredQuery<E,- R> 
- Returns:
- Whether a result consumer is present
 
- 
isOptimisticLockdefault boolean isOptimisticLock()Description copied from interface:StoredQueryIs with an optimistic lock.- Specified by:
- isOptimisticLockin interface- StoredQuery<E,- R> 
- Returns:
- the result
 
- 
getName- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
 
- 
isRawQuerydefault boolean isRawQuery()Description copied from interface:StoredQueryGets an indicator telling whether underlying query is raw query.- Specified by:
- isRawQueryin interface- StoredQuery<E,- R> 
- Returns:
- true if it is raw query
 
- 
isJsonEntitydefault boolean isJsonEntity()- Specified by:
- isJsonEntityin interface- StoredQuery<E,- R> 
- Returns:
- an indicator telling whether query is handling entities with JSON representation (like Oracle Json View)
 
 
-