E
- The entity typeR
- The result typepublic interface StoredQuery<E,R> extends io.micronaut.core.naming.Named, StoredDataOperation<R>
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[] |
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 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()
Deprecated.
|
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.
|
io.micronaut.core.type.Argument<R> |
getResultArgument()
The query result type.
|
DataType |
getResultDataType() |
java.lang.Class<R> |
getResultType()
The query result type.
|
java.lang.Class<E> |
getRootEntity()
The root entity type.
|
boolean |
hasInExpression()
Deprecated.
|
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).
|
default boolean |
isOptimisticLock()
Is with an optimistic lock.
|
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.
|
getTransactionDefinition
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
@NonNull java.lang.Class<E> getRootEntity()
@Deprecated boolean hasInExpression()
boolean hasPageable()
@NonNull java.lang.String getQuery()
@NonNull java.lang.Class<R> getResultType()
getRootEntity()
.@NonNull io.micronaut.core.type.Argument<R> getResultArgument()
getRootEntity()
.getResultArgument
in interface StoredDataOperation<R>
@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()
@Deprecated @Nullable default java.lang.String getLastUpdatedProperty()
default java.lang.String[] getIndexedParameterAutoPopulatedPropertyPaths()
default java.lang.String[] getIndexedParameterAutoPopulatedPreviousPropertyPaths()
default int[] getIndexedParameterAutoPopulatedPreviousPropertyIndexes()
@NonNull default java.util.Set<JoinPath> getJoinFetchPaths()
boolean isSingleResult()
boolean hasResultConsumer()
default boolean isOptimisticLock()