Interface DelegatePreparedQuery<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.attr.AttributeHolder,- DelegateStoredQuery<E,,- R> - io.micronaut.core.naming.Named,- PagedQuery<E>,- PreparedDataOperation<R>,- PreparedQuery<E,,- R> - StoredDataOperation<R>,- StoredQuery<E,- R> 
- All Known Implementing Classes:
- DefaultBindableParametersPreparedQuery,- DefaultSqlPreparedQuery
@Internal
public interface DelegatePreparedQuery<E,R> 
extends PreparedQuery<E,R>, DelegateStoredQuery<E,R>  
Delegate implementation of 
PreparedQuery.- Since:
- 3.3.
- Author:
- Denis Stepanov
- 
Field SummaryFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Method SummaryModifier and TypeMethodDescriptiondefault io.micronaut.core.type.Argument[]getAttribute(CharSequence name) default <T> @NonNull Optional<T>getAttribute(CharSequence name, Class<T> type) default @NonNull io.micronaut.core.convert.value.ConvertibleValues<Object>default @NonNull Pageabledefault Object[]default <RT1> Optional<RT1>getParameterInRole(@NonNull String role, @NonNull Class<RT1> type) Return the value of the given parameter if the given role.default @NonNull StringgetQuery()The query to execute.The parameter binding.default Class<?>The root entity type.default StoredQuerydefault booleanReturns whether the query returns the actual entity or a Data Transfer Object (DTO) project.default booleanGets an indicator telling whether underlying query is raw query.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, synthesizeDeclaredMethods inherited from interface io.micronaut.data.runtime.query.internal.DelegateStoredQuerygetAnnotationMetadata, getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getJoinFetchPaths, getName, getQueryBindings, getResultArgument, getResultDataType, getResultType, hasPageable, hasResultConsumer, isCount, isJsonEntity, isNative, isOptimisticLock, isSingleResult, useNumericPlaceholders
- 
Method Details- 
getPreparedQueryDelegatePreparedQuery<E,R> getPreparedQueryDelegate()- Returns:
- The delegate
 
- 
getStoredQueryDelegate- Specified by:
- getStoredQueryDelegatein interface- DelegateStoredQuery<E,- R> 
- Returns:
- The delegate
 
- 
getRootEntityDescription copied from interface:PagedQueryThe root entity type.- Specified by:
- getRootEntityin interface- DelegateStoredQuery<E,- R> 
- Specified by:
- getRootEntityin interface- PagedQuery<E>
- Specified by:
- getRootEntityin interface- StoredQuery<E,- R> 
- Returns:
- The root entity type
 
- 
getQueryHintsDescription copied from interface:PagedQueryThe parameter binding. That is the mapping between named query parameters and parameters of the method.- Specified by:
- getQueryHintsin interface- DelegateStoredQuery<E,- R> 
- Specified by:
- getQueryHintsin interface- PagedQuery<E>
- Specified by:
- getQueryHintsin interface- PreparedQuery<E,- R> 
- Specified by:
- getQueryHintsin interface- StoredQuery<E,- R> 
- Returns:
- The parameter binding.
 
- 
isRawQuerydefault boolean isRawQuery()Description copied from interface:PreparedQueryGets an indicator telling whether underlying query is raw query.- Specified by:
- isRawQueryin interface- DelegateStoredQuery<E,- R> 
- Specified by:
- isRawQueryin interface- PreparedQuery<E,- R> 
- Specified by:
- isRawQueryin interface- StoredQuery<E,- R> 
- Returns:
- true if it is raw query
 
- 
getParameterInRoledefault <RT1> Optional<RT1> getParameterInRole(@NonNull @NonNull String role, @NonNull @NonNull Class<RT1> type) Description copied from interface:PreparedDataOperationReturn the value of the given parameter if the given role.- Specified by:
- getParameterInRolein interface- PreparedDataOperation<E>
- Type Parameters:
- RT1- The generic type
- Parameters:
- role- The role
- type- The type
- Returns:
- An optional value.
 
- 
getRepositoryType- Specified by:
- getRepositoryTypein interface- PreparedQuery<E,- R> 
- Returns:
- The repository type.
 
- 
getParameterArray- Specified by:
- getParameterArrayin interface- PreparedQuery<E,- R> 
- Returns:
- The method parameters
 
- 
getArgumentsdefault io.micronaut.core.type.Argument[] getArguments()- Specified by:
- getArgumentsin interface- PreparedQuery<E,- R> 
- Returns:
- The method arguments
 
- 
getPageable- Specified by:
- getPageablein interface- PagedQuery<E>
- Returns:
- The pageable object. Defaults to Pageable.UNPAGED
 
- 
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- DelegateStoredQuery<E,- R> 
- Specified by:
- isDtoProjectionin interface- StoredQuery<E,- R> 
- Returns:
- Whether the query is a DTO projection query
 
- 
getQueryDescription copied from interface:StoredQueryThe query to execute.- Specified by:
- getQueryin interface- DelegateStoredQuery<E,- R> 
- Specified by:
- getQueryin interface- StoredQuery<E,- R> 
- Returns:
- The query to execute
 
- 
getAttributes- Specified by:
- getAttributesin interface- io.micronaut.core.attr.AttributeHolder
 
- 
getAttribute- Specified by:
- getAttributein interface- io.micronaut.core.attr.AttributeHolder
 
- 
getAttribute- Specified by:
- getAttributein interface- io.micronaut.core.attr.AttributeHolder
 
 
-