Interface SqlStoredQuery<E,R>
- Type Parameters:
E- The entity typeR- The result type
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, BindableParametersStoredQuery<E,R>, io.micronaut.core.naming.Named, PersistentEntityAwareQuery<E>, StoredDataOperation<R>, StoredQuery<E, R>
- All Known Subinterfaces:
SqlPreparedQuery<E,R>
- All Known Implementing Classes:
DefaultSqlPreparedQuery, DefaultSqlStoredQuery
SQL version of
BindableParametersStoredQuery carrying extra SQL related data.- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface BindableParametersStoredQuery
BindableParametersStoredQuery.BinderNested classes/interfaces inherited from interface StoredQuery
StoredQuery.OperationType -
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescription@Nullable Map<QueryParameterBinding, Object> collectAutoPopulatedPreviousValues(E entity) Collect auto-populated property values before pre-actions are triggered and property values are modified.Get dialect.default @Nullable String@Nullable QueryResultInfodefault booleanisDialectVersionAtLeast(String requiredVersion) booleanMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface BindableParametersStoredQuery
bindParametersMethods inherited from interface io.micronaut.core.naming.Named
getNameMethods inherited from interface PersistentEntityAwareQuery
getPersistentEntityMethods inherited from interface StoredQuery
getExpandableQueryParts, getJoinPaths, getOperationType, getOutParameterBindings, getParameterExpressions, getQuery, getQueryBindings, getQueryHints, getQueryLimit, getResultArgument, getResultDataType, getResultType, getRootEntity, getSort, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isProcedure, isRawQuery
-
Method Details
-
isExpandableQuery
boolean isExpandableQuery()- Returns:
- true if query is expandable
-
getDialect
-
isDialectVersionAtLeast
- Parameters:
requiredVersion- The required target dialect version- Returns:
- Whether the configured target dialect version meets the requirement
-
getDialectVersion
- Returns:
- The normalized target dialect version, or
nullwhen none is configured
-
getQueryBuilder
SqlQueryBuilder getQueryBuilder()- Returns:
- query builder for possible modification in the prepared query
-
collectAutoPopulatedPreviousValues
Collect auto-populated property values before pre-actions are triggered and property values are modified.- Parameters:
entity- The entity instance- Returns:
- collected values
-
getQueryResultInfo
@Nullable QueryResultInfo getQueryResultInfo()- Returns:
- the query result info
- Since:
- 4.2.0
-