Interface SqlPreparedQuery<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,- BindableParametersPreparedQuery<E,,- R> - BindableParametersStoredQuery<E,,- R> - io.micronaut.core.naming.Named,- PagedQuery<E>,- PersistentEntityAwareQuery<E>,- PreparedDataOperation<R>,- PreparedQuery<E,,- R> - SqlStoredQuery<E,,- R> - StoredDataOperation<R>,- StoredQuery<E,- R> 
- All Known Implementing Classes:
- DefaultSqlPreparedQuery
@Internal
public interface SqlPreparedQuery<E,R> 
extends BindableParametersPreparedQuery<E,R>, SqlStoredQuery<E,R>  
SQL version of 
SqlStoredQuery.
 The instance of a prepared query has mutable state compared to a stored query.- Since:
- 3.5.0
- Author:
- Denis Stepanov
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.data.runtime.operations.internal.query.BindableParametersStoredQueryBindableParametersStoredQuery.Binder
- 
Field SummaryFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Method SummaryModifier and TypeMethodDescriptionvoidattachPageable(Pageable pageable, boolean isSingleResult) Modify the query according to the pageable.voidPrepare query.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProviderfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, 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.core.attr.AttributeHoldergetAttribute, getAttribute, getAttributesMethods inherited from interface io.micronaut.data.runtime.operations.internal.query.BindableParametersPreparedQuerybindParameters, bindParametersMethods inherited from interface io.micronaut.data.runtime.operations.internal.query.BindableParametersStoredQuerybindParametersMethods inherited from interface io.micronaut.core.naming.NamedgetNameMethods inherited from interface io.micronaut.data.model.runtime.PagedQuerygetPageable, getRootEntityMethods inherited from interface io.micronaut.data.runtime.operations.internal.query.PersistentEntityAwareQuerygetPersistentEntityMethods inherited from interface io.micronaut.data.model.runtime.PreparedDataOperationgetParameterInRoleMethods inherited from interface io.micronaut.data.model.runtime.PreparedQuerygetArguments, getParameterArray, getQueryHints, getRepositoryType, isRawQueryMethods inherited from interface io.micronaut.data.runtime.operations.internal.sql.SqlStoredQuerycollectAutoPopulatedPreviousValues, getDialect, getQueryBuilder, isExpandableQueryMethods inherited from interface io.micronaut.data.model.runtime.StoredQuerygetArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getJoinFetchPaths, getQuery, getQueryBindings, getQueryHints, getResultArgument, getResultDataType, getResultType, getRootEntity, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isSingleResult, useNumericPlaceholders
- 
Method Details- 
preparePrepare query. The internal SQL query can be altered based on the requirements.- Parameters:
- entity- The entity instance
 
- 
attachPageableModify the query according to the pageable.- Parameters:
- pageable- The pageable
- isSingleResult- is single result
 
- 
getQueryResultInfoQueryResultInfo getQueryResultInfo()- Returns:
- the query result info
- Since:
- 4.0.0
 
 
-