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 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
-
Constructor Summary
ConstructorDescriptionDefaultSqlStoredQuery
(StoredQuery<E, R> storedQuery, RuntimePersistentEntity<E> runtimePersistentEntity, SqlQueryBuilder queryBuilder) -
Method Summary
Modifier and TypeMethodDescriptioncollectAutoPopulatedPreviousValues
(E entity) Collect auto-populated property values before pre-actions are triggered and property values are modified.Get dialect.boolean
Methods inherited from class io.micronaut.data.runtime.operations.internal.query.DefaultBindableParametersStoredQuery
bindParameter, bindParameters, getPersistentEntity, getRequiredPropertyPath, getStoredQueryDelegate, requireInvocationContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, 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.data.runtime.query.internal.DelegateStoredQuery
getAnnotationMetadata, getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getJoinFetchPaths, getName, getOperationType, getParameterExpressions, getQuery, getQueryBindings, getQueryHints, getResultArgument, getResultDataType, getResultType, getRootEntity, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isProcedure, isRawQuery, isSingleResult, useNumericPlaceholders
Methods inherited from interface io.micronaut.data.runtime.operations.internal.query.PersistentEntityAwareQuery
getPersistentEntity
-
Constructor Details
-
DefaultSqlStoredQuery
public DefaultSqlStoredQuery(StoredQuery<E, R> storedQuery, RuntimePersistentEntity<E> runtimePersistentEntity, SqlQueryBuilder queryBuilder) - Parameters:
storedQuery
- The stored queryruntimePersistentEntity
- The persistent entityqueryBuilder
- The query builder
-
-
Method Details
-
getQueryResultInfo
- Specified by:
getQueryResultInfo
in interfaceSqlStoredQuery<E,
R> - Returns:
- the query result info
-
isExpandableQuery
public boolean isExpandableQuery()- Specified by:
isExpandableQuery
in interfaceSqlStoredQuery<E,
R> - Returns:
- true if query is expandable
-
getDialect
Description copied from interface:SqlStoredQuery
Get dialect.- Specified by:
getDialect
in interfaceSqlStoredQuery<E,
R> - Returns:
- dialect
-
getQueryBuilder
- Specified by:
getQueryBuilder
in interfaceSqlStoredQuery<E,
R> - Returns:
- query builder for possible modification in the prepared query
-
collectAutoPopulatedPreviousValues
Description copied from interface:SqlStoredQuery
Collect auto-populated property values before pre-actions are triggered and property values are modified.- Specified by:
collectAutoPopulatedPreviousValues
in interfaceSqlStoredQuery<E,
R> - Parameters:
entity
- The entity instance- Returns:
- collected values
-