Class DefaultBindableParametersPreparedQuery<E,R>
- java.lang.Object
-
- io.micronaut.data.runtime.operations.internal.query.DefaultBindableParametersPreparedQuery<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.attr.AttributeHolder
,io.micronaut.core.naming.Named
,PagedQuery<E>
,PreparedDataOperation<R>
,PreparedQuery<E,R>
,StoredDataOperation<R>
,StoredQuery<E,R>
,BindableParametersPreparedQuery<E,R>
,BindableParametersStoredQuery<E,R>
,PersistentEntityAwareQuery<E>
,DelegatePreparedQuery<E,R>
,DelegateStoredQuery<E,R>
- Direct Known Subclasses:
DefaultSqlPreparedQuery
@Internal public class DefaultBindableParametersPreparedQuery<E,R> extends java.lang.Object implements BindableParametersPreparedQuery<E,R>, DelegatePreparedQuery<E,R>
Implementation ofBindableParametersPreparedQuery
.- 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
-
-
Field Summary
Fields Modifier and Type Field Description protected io.micronaut.aop.InvocationContext<?,?>
invocationContext
protected PreparedQuery<E,R>
preparedQuery
protected BindableParametersStoredQuery<E,R>
storedQuery
-
Constructor Summary
Constructors Constructor Description DefaultBindableParametersPreparedQuery(PreparedQuery<E,R> preparedQuery)
DefaultBindableParametersPreparedQuery(PreparedQuery<E,R> preparedQuery, io.micronaut.aop.InvocationContext<?,?> invocationContext, BindableParametersStoredQuery<E,R> storedQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindParameters(BindableParametersStoredQuery.Binder binder, E entity, java.util.Map<QueryParameterBinding,java.lang.Object> previousValues)
Bind query parameters.void
bindParameters(BindableParametersStoredQuery.Binder binder, io.micronaut.aop.InvocationContext<?,?> invocationContext, E entity, java.util.Map<QueryParameterBinding,java.lang.Object> previousValues)
Bind query parameters.RuntimePersistentEntity<E>
getPersistentEntity()
PreparedQuery<E,R>
getPreparedQueryDelegate()
-
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.operations.internal.query.BindableParametersPreparedQuery
bindParameters
-
Methods inherited from interface io.micronaut.data.runtime.query.internal.DelegatePreparedQuery
getArguments, getAttribute, getAttribute, getAttributes, getPageable, getParameterArray, getParameterInRole, getParameterValues, getQuery, getQueryHints, getRepositoryType, getRootEntity, getStoredQueryDelegate, isDtoProjection, isRawQuery
-
Methods inherited from interface io.micronaut.data.runtime.query.internal.DelegateStoredQuery
getAnnotationMetadata, getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getIndexedParameterAutoPopulatedPreviousPropertyIndexes, getIndexedParameterAutoPopulatedPreviousPropertyPaths, getIndexedParameterAutoPopulatedPropertyPaths, getJoinFetchPaths, getName, getQueryBindings, getResultArgument, getResultDataType, getResultType, getTransactionDefinition, hasInExpression, hasPageable, hasResultConsumer, isCount, isNative, isOptimisticLock, isSingleResult, useNumericPlaceholders
-
Methods inherited from interface io.micronaut.data.model.runtime.PreparedQuery
getLastUpdatedType
-
Methods inherited from interface io.micronaut.data.model.runtime.StoredQuery
getIndexedParameterBinding, getIndexedParameterPaths, getIndexedParameterTypes, getLastUpdatedProperty, getParameterBinding, getParameterNames
-
-
-
-
Field Detail
-
preparedQuery
protected final PreparedQuery<E,R> preparedQuery
-
invocationContext
protected final io.micronaut.aop.InvocationContext<?,?> invocationContext
-
storedQuery
protected final BindableParametersStoredQuery<E,R> storedQuery
-
-
Constructor Detail
-
DefaultBindableParametersPreparedQuery
public DefaultBindableParametersPreparedQuery(PreparedQuery<E,R> preparedQuery)
-
DefaultBindableParametersPreparedQuery
public DefaultBindableParametersPreparedQuery(PreparedQuery<E,R> preparedQuery, io.micronaut.aop.InvocationContext<?,?> invocationContext, BindableParametersStoredQuery<E,R> storedQuery)
-
-
Method Detail
-
getPersistentEntity
public RuntimePersistentEntity<E> getPersistentEntity()
- Specified by:
getPersistentEntity
in interfacePersistentEntityAwareQuery<E>
- Returns:
- The persistent entity
-
getPreparedQueryDelegate
public PreparedQuery<E,R> getPreparedQueryDelegate()
- Specified by:
getPreparedQueryDelegate
in interfaceDelegatePreparedQuery<E,R>
- Returns:
- The delegate
-
bindParameters
public void bindParameters(BindableParametersStoredQuery.Binder binder, E entity, java.util.Map<QueryParameterBinding,java.lang.Object> previousValues)
Description copied from interface:BindableParametersPreparedQuery
Bind query parameters.- Specified by:
bindParameters
in interfaceBindableParametersPreparedQuery<E,R>
- Parameters:
binder
- The binderentity
- The entitypreviousValues
- The previous auto-populated collected values
-
bindParameters
public void bindParameters(BindableParametersStoredQuery.Binder binder, io.micronaut.aop.InvocationContext<?,?> invocationContext, E entity, java.util.Map<QueryParameterBinding,java.lang.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
-
-