Class DefaultBindableParametersStoredQuery<E,R>
java.lang.Object
io.micronaut.data.runtime.operations.internal.query.DefaultBindableParametersStoredQuery<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>
,DelegateStoredQuery<E,
R>
- Direct Known Subclasses:
DefaultSqlStoredQuery
@Internal
public class DefaultBindableParametersStoredQuery<E,R>
extends Object
implements BindableParametersStoredQuery<E,R>, DelegateStoredQuery<E,R>
Implementation of
BindableParametersStoredQuery
.- Since:
- 3.8.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
ConstructorDescriptionDefaultBindableParametersStoredQuery
(StoredQuery<E, R> storedQuery, RuntimePersistentEntity<E> runtimePersistentEntity) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
bindParameter
(BindableParametersStoredQuery.Binder binder, @Nullable io.micronaut.aop.InvocationContext<?, ?> invocationContext, E entity, @Nullable Map<QueryParameterBinding, Object> previousValues, QueryParameterBinding binding) void
bindParameters
(BindableParametersStoredQuery.Binder binder, @Nullable io.micronaut.aop.InvocationContext<?, ?> invocationContext, E entity, @Nullable Map<QueryParameterBinding, Object> previousValues) Bind query parameters.protected final <T> PersistentPropertyPath
getRequiredPropertyPath
(QueryParameterBinding queryParameterBinding, RuntimePersistentEntity<T> persistentEntity) protected final void
requireInvocationContext
(io.micronaut.aop.InvocationContext<?, ?> invocationContext) 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.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
-
Constructor Details
-
DefaultBindableParametersStoredQuery
public DefaultBindableParametersStoredQuery(StoredQuery<E, R> storedQuery, RuntimePersistentEntity<E> runtimePersistentEntity) - Parameters:
storedQuery
- The stored queryruntimePersistentEntity
- The persistent entity
-
-
Method Details
-
getPersistentEntity
- Specified by:
getPersistentEntity
in interfacePersistentEntityAwareQuery<E>
- Returns:
- The persistent entity
-
getStoredQueryDelegate
- Specified by:
getStoredQueryDelegate
in interfaceDelegateStoredQuery<E,
R> - Returns:
- The delegate
-
bindParameters
public void bindParameters(BindableParametersStoredQuery.Binder binder, @Nullable @Nullable io.micronaut.aop.InvocationContext<?, ?> invocationContext, @Nullable E entity, @Nullable @Nullable Map<QueryParameterBinding, Object> previousValues) Description copied from interface:BindableParametersStoredQuery
Bind query parameters.- Specified by:
bindParameters
in interfaceBindableParametersStoredQuery<E,
R> - Parameters:
binder
- The binderinvocationContext
- The invocation contextentity
- The entitypreviousValues
- The previous auto-populated collected values
-
bindParameter
protected final void bindParameter(BindableParametersStoredQuery.Binder binder, @Nullable @Nullable io.micronaut.aop.InvocationContext<?, ?> invocationContext, @Nullable E entity, @Nullable @Nullable Map<QueryParameterBinding, Object> previousValues, QueryParameterBinding binding) -
getRequiredPropertyPath
protected final <T> PersistentPropertyPath getRequiredPropertyPath(QueryParameterBinding queryParameterBinding, RuntimePersistentEntity<T> persistentEntity) -
requireInvocationContext
protected final void requireInvocationContext(io.micronaut.aop.InvocationContext<?, ?> invocationContext)
-