Class DefaultSqlStoredQuery<E,R>
java.lang.Object
io.micronaut.data.runtime.operations.internal.query.DefaultBindableParametersStoredQuery<E,R>
io.micronaut.data.runtime.operations.internal.sql.DefaultSqlStoredQuery<E,R>
- Type Parameters:
E- The entity typeR- The result type
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.naming.Named, StoredDataOperation<R>, StoredQuery<E,R>, BindableParametersStoredQuery<E, R>, PersistentEntityAwareQuery<E>, SqlStoredQuery<E, R>, DelegateStoredQuery<E, R>
@Internal
public class DefaultSqlStoredQuery<E,R>
extends DefaultBindableParametersStoredQuery<E,R>
implements SqlStoredQuery<E,R>
Implementation of
SqlStoredQuery.- 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 -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSqlStoredQuery(StoredQuery<E, R> storedQuery, RuntimePersistentEntity<E> runtimePersistentEntity, SqlQueryBuilder queryBuilder, io.micronaut.core.convert.ConversionService conversionService) -
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.@Nullable QueryResultInfobooleanMethods inherited from class DefaultBindableParametersStoredQuery
bindParameter, bindParameters, getPersistentEntity, getRequiredPropertyPath, getStoredQueryDelegateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, 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 DelegateStoredQuery
getAnnotationMetadata, getExpandableQueryParts, getJoinPaths, getName, getOperationType, getParameterExpressions, getQuery, getQueryBindings, getQueryHints, getQueryLimit, getResultArgument, getResultDataType, getResultType, getRootEntity, getSort, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isProcedure, isRawQueryMethods inherited from interface PersistentEntityAwareQuery
getPersistentEntity
-
Constructor Details
-
DefaultSqlStoredQuery
public DefaultSqlStoredQuery(StoredQuery<E, R> storedQuery, RuntimePersistentEntity<E> runtimePersistentEntity, SqlQueryBuilder queryBuilder, io.micronaut.core.convert.ConversionService conversionService) - Parameters:
storedQuery- The stored queryruntimePersistentEntity- The persistent entityqueryBuilder- The query builderconversionService- The conversion service
-
-
Method Details
-
getQueryResultInfo
- Specified by:
getQueryResultInfoin interfaceSqlStoredQuery<E,R> - Returns:
- the query result info
-
isExpandableQuery
public boolean isExpandableQuery()- Specified by:
isExpandableQueryin interfaceSqlStoredQuery<E,R> - Returns:
- true if query is expandable
-
getDialect
Description copied from interface:SqlStoredQueryGet dialect.- Specified by:
getDialectin interfaceSqlStoredQuery<E,R> - Returns:
- dialect
-
getQueryBuilder
- Specified by:
getQueryBuilderin interfaceSqlStoredQuery<E,R> - Returns:
- query builder for possible modification in the prepared query
-
collectAutoPopulatedPreviousValues
Description copied from interface:SqlStoredQueryCollect auto-populated property values before pre-actions are triggered and property values are modified.- Specified by:
collectAutoPopulatedPreviousValuesin interfaceSqlStoredQuery<E,R> - Parameters:
entity- The entity instance- Returns:
- collected values
-