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,io.micronaut.data.model.runtime.StoredDataOperation<R>,io.micronaut.data.model.runtime.StoredQuery<E,R>,BindableParametersStoredQuery<E,R>,PersistentEntityAwareQuery<E>,DelegateStoredQuery<E,R>
- Direct Known Subclasses:
DefaultSqlStoredQuery
@Internal public class DefaultBindableParametersStoredQuery<E,R> extends java.lang.Object implements BindableParametersStoredQuery<E,R>, DelegateStoredQuery<E,R>
Implementation ofBindableParametersStoredQuery.- Since:
- 3.8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.data.runtime.operations.internal.query.BindableParametersStoredQuery
BindableParametersStoredQuery.Binder
-
-
Constructor Summary
Constructors Constructor Description DefaultBindableParametersStoredQuery(io.micronaut.data.model.runtime.StoredQuery<E,R> storedQuery, io.micronaut.data.model.runtime.RuntimePersistentEntity<E> runtimePersistentEntity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbindParameter(BindableParametersStoredQuery.Binder binder, io.micronaut.aop.InvocationContext<?,?> invocationContext, E entity, java.util.Map<io.micronaut.data.model.runtime.QueryParameterBinding,java.lang.Object> previousValues, io.micronaut.data.model.runtime.QueryParameterBinding binding)voidbindParameters(BindableParametersStoredQuery.Binder binder, io.micronaut.aop.InvocationContext<?,?> invocationContext, E entity, java.util.Map<io.micronaut.data.model.runtime.QueryParameterBinding,java.lang.Object> previousValues)Bind query parameters.io.micronaut.data.model.runtime.RuntimePersistentEntity<E>getPersistentEntity()protected <T> io.micronaut.data.model.PersistentPropertyPathgetRequiredPropertyPath(io.micronaut.data.model.runtime.QueryParameterBinding queryParameterBinding, io.micronaut.data.model.runtime.RuntimePersistentEntity<T> persistentEntity)io.micronaut.data.model.runtime.StoredQuery<E,R>getStoredQueryDelegate()protected voidrequireInvocationContext(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, 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, getIndexedParameterAutoPopulatedPreviousPropertyIndexes, getIndexedParameterAutoPopulatedPreviousPropertyPaths, getIndexedParameterAutoPopulatedPropertyPaths, getJoinFetchPaths, getName, getQuery, getQueryBindings, getQueryHints, getResultArgument, getResultDataType, getResultType, getRootEntity, getTransactionDefinition, hasInExpression, hasPageable, hasResultConsumer, isCount, isDtoProjection, isNative, isOptimisticLock, isRawQuery, isSingleResult, useNumericPlaceholders
-
-
-
-
Constructor Detail
-
DefaultBindableParametersStoredQuery
public DefaultBindableParametersStoredQuery(io.micronaut.data.model.runtime.StoredQuery<E,R> storedQuery, io.micronaut.data.model.runtime.RuntimePersistentEntity<E> runtimePersistentEntity)
- Parameters:
storedQuery- The stored queryruntimePersistentEntity- The persistent entity
-
-
Method Detail
-
getPersistentEntity
public io.micronaut.data.model.runtime.RuntimePersistentEntity<E> getPersistentEntity()
- Specified by:
getPersistentEntityin interfacePersistentEntityAwareQuery<E>- Returns:
- The persistent entity
-
getStoredQueryDelegate
public io.micronaut.data.model.runtime.StoredQuery<E,R> getStoredQueryDelegate()
- Specified by:
getStoredQueryDelegatein interfaceDelegateStoredQuery<E,R>- Returns:
- The delegate
-
bindParameters
public void bindParameters(BindableParametersStoredQuery.Binder binder, @Nullable io.micronaut.aop.InvocationContext<?,?> invocationContext, @Nullable E entity, @Nullable java.util.Map<io.micronaut.data.model.runtime.QueryParameterBinding,java.lang.Object> previousValues)
Description copied from interface:BindableParametersStoredQueryBind query parameters.- Specified by:
bindParametersin 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 io.micronaut.aop.InvocationContext<?,?> invocationContext, @Nullable E entity, @Nullable java.util.Map<io.micronaut.data.model.runtime.QueryParameterBinding,java.lang.Object> previousValues, io.micronaut.data.model.runtime.QueryParameterBinding binding)
-
getRequiredPropertyPath
protected final <T> io.micronaut.data.model.PersistentPropertyPath getRequiredPropertyPath(io.micronaut.data.model.runtime.QueryParameterBinding queryParameterBinding, io.micronaut.data.model.runtime.RuntimePersistentEntity<T> persistentEntity)
-
requireInvocationContext
protected final void requireInvocationContext(io.micronaut.aop.InvocationContext<?,?> invocationContext)
-
-