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 io.micronaut.data.runtime.operations.internal.query.BindableParametersStoredQuery
BindableParametersStoredQuery.Binder
Nested classes/interfaces inherited from interface io.micronaut.data.model.runtime.StoredQuery
StoredQuery.OperationType
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptioncollectAutoPopulatedPreviousValues
(E entity) Collect auto-populated property values before pre-actions are triggered and property values are modified.Get dialect.@Nullable QueryResultInfo
boolean
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
Methods inherited from interface io.micronaut.data.runtime.operations.internal.query.BindableParametersStoredQuery
bindParameters
Methods inherited from interface io.micronaut.core.naming.Named
getName
Methods inherited from interface io.micronaut.data.runtime.operations.internal.query.PersistentEntityAwareQuery
getPersistentEntity
Methods inherited from interface io.micronaut.data.model.runtime.StoredQuery
getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getJoinFetchPaths, getOperationType, getQuery, getQueryBindings, getQueryHints, getResultArgument, getResultDataType, getResultType, getRootEntity, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isProcedure, isRawQuery, isSingleResult, useNumericPlaceholders
-
Method Details
-
isExpandableQuery
boolean isExpandableQuery()- Returns:
- true if query is expandable
-
getDialect
Dialect getDialect()Get dialect.- Returns:
- dialect
-
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
- Returns:
- the query result info
- Since:
- 4.2.0
-