E
- The entity typeR
- The result typepublic interface StoredQuery<E,R>
extends io.micronaut.core.naming.Named, io.micronaut.core.annotation.AnnotationMetadataProvider
Modifier and Type | Method and Description |
---|---|
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 int[] |
getIndexedParameterBinding()
The parameter binding.
|
default java.lang.String[] |
getIndexedParameterPaths() |
default DataType[] |
getIndexedParameterTypes()
The compute time computed parameter data types for the query indices.
|
default java.util.Set<JoinPath> |
getJoinFetchPaths() |
default java.lang.String |
getLastUpdatedProperty()
The name of the last updated property on the entity if any.
|
default java.util.Map<java.lang.String,java.lang.String> |
getParameterBinding()
The parameter binding.
|
default java.lang.String[] |
getParameterNames() |
java.lang.String |
getQuery()
The query to execute.
|
default java.util.Map<java.lang.String,java.lang.Object> |
getQueryHints()
The parameter binding.
|
DataType |
getResultDataType() |
java.lang.Class<R> |
getResultType()
The query result type.
|
java.lang.Class<E> |
getRootEntity()
The root entity type.
|
boolean |
hasInExpression()
Does the query contain an in expression.
|
boolean |
hasPageable()
Does the query have a pageable.
|
boolean |
hasResultConsumer() |
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).
|
boolean |
isSingleResult()
Whether the query can be treated as a single result.
|
boolean |
useNumericPlaceholders()
Are the placeholders for query set using numeric indices starting from 1.
|
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
@NonNull java.lang.Class<E> getRootEntity()
boolean hasInExpression()
boolean hasPageable()
@NonNull java.lang.String getQuery()
@NonNull java.lang.Class<R> getResultType()
getRootEntity()
.@NonNull DataType getResultDataType()
default boolean isNative()
boolean useNumericPlaceholders()
default boolean isDtoProjection()
default java.util.Optional<java.lang.Class<?>> getEntityIdentifierType()
@NonNull default java.lang.Class<?>[] getArgumentTypes()
@NonNull default java.util.Map<java.lang.String,java.lang.String> getParameterBinding()
boolean isCount()
@NonNull default DataType[] getIndexedParameterTypes()
useNumericPlaceholders()
@NonNull default int[] getIndexedParameterBinding()
useNumericPlaceholders()
default java.lang.String[] getParameterNames()
default java.lang.String[] getIndexedParameterPaths()
@NonNull default java.util.Map<java.lang.String,java.lang.Object> getQueryHints()
@Nullable default java.lang.String getLastUpdatedProperty()
@NonNull default java.util.Set<JoinPath> getJoinFetchPaths()
boolean isSingleResult()
boolean hasResultConsumer()