Class BasicStoredQuery<E,R> 
java.lang.Object
io.micronaut.data.runtime.query.internal.BasicStoredQuery<E,R> 
- Type Parameters:
- E- The entity type
- R- The result type
- All Implemented Interfaces:
- io.micronaut.core.annotation.AnnotationMetadataProvider,- io.micronaut.core.annotation.AnnotationSource,- io.micronaut.core.naming.Named,- StoredDataOperation<R>,- StoredQuery<E,- R> 
- Direct Known Subclasses:
- QueryResultStoredQuery
The basic implementation of 
StoredQuery.- Since:
- 3.5.0
- Author:
- Denis Stepanov
- 
Field SummaryFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Constructor SummaryConstructorsConstructorDescriptionBasicStoredQuery(String name, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, String query, String[] expandableQueryParts, List<QueryParameterBinding> queryParameterBindings, Class<E> rootEntity, Class<R> resultType, boolean pageable, boolean isSingleResult, boolean isCount) BasicStoredQuery(String query, String[] expandableQueryParts, List<QueryParameterBinding> queryParameterBindings, Class<E> rootEntity, Class<R> resultType) 
- 
Method SummaryModifier and TypeMethodDescriptionio.micronaut.core.annotation.AnnotationMetadataString[]The query to execute.getName()getQuery()The query to execute.The list of query bindings.io.micronaut.core.type.Argument<R>The query result type.The query result type.The root entity type.booleanDoes the query have a pageable.booleanbooleanisCount()booleanGets an indicator telling whether underlying query is raw query.booleanWhether the query can be treated as a single result.booleanAre the placeholders for query set using numeric indices starting from 1.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.model.runtime.StoredQuerygetArgumentTypes, getEntityIdentifierType, getJoinFetchPaths, getQueryHints, isDtoProjection, isJsonEntity, isNative, isOptimisticLock
- 
Constructor Details- 
BasicStoredQuery
- 
BasicStoredQuerypublic BasicStoredQuery(String name, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, String query, String[] expandableQueryParts, List<QueryParameterBinding> queryParameterBindings, Class<E> rootEntity, Class<R> resultType, boolean pageable, boolean isSingleResult, boolean isCount) 
 
- 
- 
Method Details- 
getAnnotationMetadatapublic io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
- getAnnotationMetadatain interface- io.micronaut.core.annotation.AnnotationMetadataProvider
 
- 
getName- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
 
- 
getRootEntityDescription copied from interface:StoredQueryThe root entity type.- Specified by:
- getRootEntityin interface- StoredQuery<E,- R> 
- Returns:
- The root entity type
 
- 
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.
 
- 
hasPageablepublic 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
 
- 
useNumericPlaceholderspublic 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.
 
- 
isCountpublic boolean isCount()- Specified by:
- isCountin interface- StoredQuery<E,- R> 
- Returns:
- Is this a count query.
 
- 
isSingleResultpublic 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.
 
- 
hasResultConsumerpublic boolean hasResultConsumer()- Specified by:
- hasResultConsumerin interface- StoredQuery<E,- R> 
- Returns:
- Whether a result consumer is present
 
- 
isRawQuerypublic 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
 
 
-