E
- The entity typeR
- The result typepublic interface DelegateStoredQuery<E,R> extends StoredQuery<E,R>
StoredQuery
.Modifier and Type | Method and Description |
---|---|
default io.micronaut.core.annotation.AnnotationMetadata |
getAnnotationMetadata() |
default java.lang.Class<?>[] |
getArgumentTypes()
The argument types to the method that invokes the query.
|
default java.util.Optional<java.lang.Class<?>> |
getEntityIdentifierType()
The type of the ID member of the entity.
|
default java.lang.String[] |
getExpandableQueryParts()
The query to execute.
|
default int[] |
getIndexedParameterAutoPopulatedPreviousPropertyIndexes()
The mapping between query parameters and auto populated previous properties that the parameter represents.
|
default java.lang.String[] |
getIndexedParameterAutoPopulatedPreviousPropertyPaths()
The mapping between query parameters and auto populated previous properties that the parameter represents.
|
default java.lang.String[] |
getIndexedParameterAutoPopulatedPropertyPaths()
The mapping between query parameters and auto populated properties that the parameter represents.
|
default java.util.Set<JoinPath> |
getJoinFetchPaths() |
default java.lang.String |
getName() |
default java.lang.String |
getQuery()
The query to execute.
|
default java.util.List<QueryParameterBinding> |
getQueryBindings()
The list of query bindings.
|
default java.util.Map<java.lang.String,java.lang.Object> |
getQueryHints()
The parameter binding.
|
default io.micronaut.core.type.Argument<R> |
getResultArgument()
The query result type.
|
default DataType |
getResultDataType() |
default java.lang.Class<R> |
getResultType()
The query result type.
|
default java.lang.Class<E> |
getRootEntity()
The root entity type.
|
StoredQuery<E,R> |
getStoredQueryDelegate() |
default java.util.Optional<TransactionDefinition> |
getTransactionDefinition() |
default boolean |
hasInExpression()
Deprecated.
|
default boolean |
hasPageable()
Does the query have a pageable.
|
default boolean |
hasResultConsumer() |
default boolean |
isCount() |
default boolean |
isDtoProjection()
Returns whether the query returns the actual entity or a Data Transfer Object (DTO) project.
|
default boolean |
isNative()
In cases where one needs to differentiate between at higher level query format (like JPA-QL) and a lower level format (like SQL).
|
default boolean |
isOptimisticLock()
Is with an optimistic lock.
|
default boolean |
isSingleResult()
Whether the query can be treated as a single result.
|
default boolean |
useNumericPlaceholders()
Are the placeholders for query set using numeric indices starting from 1.
|
getIndexedParameterBinding, getIndexedParameterPaths, getIndexedParameterTypes, getLastUpdatedProperty, getParameterBinding, getParameterNames
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
StoredQuery<E,R> getStoredQueryDelegate()
default io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
getAnnotationMetadata
in interface io.micronaut.core.annotation.AnnotationMetadataProvider
default java.lang.Class<E> getRootEntity()
StoredQuery
getRootEntity
in interface StoredQuery<E,R>
default boolean hasPageable()
StoredQuery
hasPageable
in interface StoredQuery<E,R>
default java.lang.String getQuery()
StoredQuery
getQuery
in interface StoredQuery<E,R>
default java.lang.String[] getExpandableQueryParts()
StoredQuery
getExpandableQueryParts
in interface StoredQuery<E,R>
default java.util.List<QueryParameterBinding> getQueryBindings()
StoredQuery
getQueryBindings
in interface StoredQuery<E,R>
default java.lang.Class<R> getResultType()
StoredQuery
StoredQuery.getRootEntity()
.getResultType
in interface StoredQuery<E,R>
default java.util.Optional<TransactionDefinition> getTransactionDefinition()
getTransactionDefinition
in interface StoredDataOperation<R>
default io.micronaut.core.type.Argument<R> getResultArgument()
StoredQuery
StoredQuery.getRootEntity()
.getResultArgument
in interface StoredDataOperation<R>
getResultArgument
in interface StoredQuery<E,R>
default DataType getResultDataType()
getResultDataType
in interface StoredQuery<E,R>
default boolean isNative()
StoredQuery
isNative
in interface StoredQuery<E,R>
default boolean useNumericPlaceholders()
StoredQuery
useNumericPlaceholders
in interface StoredQuery<E,R>
default boolean isDtoProjection()
StoredQuery
isDtoProjection
in interface StoredQuery<E,R>
default java.util.Optional<java.lang.Class<?>> getEntityIdentifierType()
StoredQuery
getEntityIdentifierType
in interface StoredQuery<E,R>
default java.lang.Class<?>[] getArgumentTypes()
StoredQuery
getArgumentTypes
in interface StoredQuery<E,R>
default boolean isCount()
isCount
in interface StoredQuery<E,R>
default java.util.Map<java.lang.String,java.lang.Object> getQueryHints()
StoredQuery
getQueryHints
in interface StoredQuery<E,R>
default java.util.Set<JoinPath> getJoinFetchPaths()
getJoinFetchPaths
in interface StoredQuery<E,R>
default boolean isSingleResult()
StoredQuery
isSingleResult
in interface StoredQuery<E,R>
default boolean hasResultConsumer()
hasResultConsumer
in interface StoredQuery<E,R>
default boolean isOptimisticLock()
StoredQuery
isOptimisticLock
in interface StoredQuery<E,R>
default java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named
@Nullable default java.lang.String[] getIndexedParameterAutoPopulatedPropertyPaths()
StoredQuery
getIndexedParameterAutoPopulatedPropertyPaths
in interface StoredQuery<E,R>
default java.lang.String[] getIndexedParameterAutoPopulatedPreviousPropertyPaths()
StoredQuery
getIndexedParameterAutoPopulatedPreviousPropertyPaths
in interface StoredQuery<E,R>
default int[] getIndexedParameterAutoPopulatedPreviousPropertyIndexes()
StoredQuery
getIndexedParameterAutoPopulatedPreviousPropertyIndexes
in interface StoredQuery<E,R>
@Deprecated default boolean hasInExpression()
StoredQuery
hasInExpression
in interface StoredQuery<E,R>