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.convert.ConversionServiceProvider, 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 Object
implements BindableParametersPreparedQuery<E,R>, DelegatePreparedQuery<E,R>
Implementation of
BindableParametersPreparedQuery.- Since:
- 3.8.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
FieldsModifier and TypeFieldDescriptionprotected final @Nullable io.micronaut.aop.MethodInvocationContext<?, ?> protected final PreparedQuery<E, R> protected final BindableParametersStoredQuery<E, R> Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultBindableParametersPreparedQuery(PreparedQuery<E, R> preparedQuery) DefaultBindableParametersPreparedQuery(PreparedQuery<E, R> preparedQuery, @Nullable io.micronaut.aop.MethodInvocationContext<?, ?> invocationContext, BindableParametersStoredQuery<E, R> storedQuery) -
Method Summary
Modifier and TypeMethodDescriptionvoidBind query parameters.voidbindParameters(BindableParametersStoredQuery.Binder binder, @Nullable E entity, @Nullable Map<QueryParameterBinding, Object> previousValues) Bind query parameters.voidbindParameters(BindableParametersStoredQuery.Binder binder, @Nullable io.micronaut.aop.InvocationContext<?, ?> invocationContext, @Nullable E entity, @Nullable Map<QueryParameterBinding, Object> previousValues) Bind query parameters.io.micronaut.core.convert.ConversionServicegetSort()Methods 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 DelegatePreparedQuery
getArguments, getAttribute, getAttribute, getAttributes, getPageable, getParameterArray, getParameterInRole, getParametersInRole, getQuery, getQueryHints, getRepositoryType, getRootEntity, getStoredQueryDelegate, isDtoProjection, isRawQueryMethods inherited from interface DelegateStoredQuery
getAnnotationMetadata, getExpandableQueryParts, getJoinPaths, getName, getOperationType, getParameterExpressions, getQueryBindings, getResultArgument, getResultDataType, getResultType, hasPageable, hasResultConsumer, isCount, isJsonEntity, isNative, isOptimisticLock, isProcedure
-
Field Details
-
preparedQuery
-
invocationContext
protected final @Nullable io.micronaut.aop.MethodInvocationContext<?,?> invocationContext -
storedQuery
-
-
Constructor Details
-
DefaultBindableParametersPreparedQuery
-
DefaultBindableParametersPreparedQuery
public DefaultBindableParametersPreparedQuery(PreparedQuery<E, R> preparedQuery, @Nullable io.micronaut.aop.MethodInvocationContext<?, ?> invocationContext, BindableParametersStoredQuery<E, R> storedQuery)
-
-
Method Details
-
getConversionService
public io.micronaut.core.convert.ConversionService getConversionService()- Specified by:
getConversionServicein interfaceio.micronaut.core.convert.ConversionServiceProvider- Specified by:
getConversionServicein interfaceDelegatePreparedQuery<E,R> - Specified by:
getConversionServicein interfacePreparedQuery<E,R>
-
getPersistentEntity
- Specified by:
getPersistentEntityin interfacePersistentEntityAwareQuery<E>- Returns:
- The persistent entity
-
getPreparedQueryDelegate
- Specified by:
getPreparedQueryDelegatein interfaceDelegatePreparedQuery<E,R> - Returns:
- The delegate
-
bindParameters
public void bindParameters(BindableParametersStoredQuery.Binder binder, @Nullable E entity, @Nullable Map<QueryParameterBinding, Object> previousValues) Description copied from interface:BindableParametersPreparedQueryBind query parameters.- Specified by:
bindParametersin interfaceBindableParametersPreparedQuery<E,R> - Parameters:
binder- The binderentity- The entitypreviousValues- The previous auto-populated collected values
-
bindParameters
public void bindParameters(BindableParametersStoredQuery.Binder binder, @Nullable io.micronaut.aop.InvocationContext<?, ?> invocationContext, @Nullable E entity, @Nullable Map<QueryParameterBinding, 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
-
bindParameters
Description copied from interface:BindableParametersPreparedQueryBind query parameters.- Specified by:
bindParametersin interfaceBindableParametersPreparedQuery<E,R> - Parameters:
binder- The binder
-
getSort
- Specified by:
getSortin interfaceDelegatePreparedQuery<E,R> - Specified by:
getSortin interfaceDelegateStoredQuery<E,R> - Specified by:
getSortin interfacePagedQuery<E>- Specified by:
getSortin interfacePreparedQuery<E,R> - Specified by:
getSortin interfaceStoredQuery<E,R> - Returns:
- The sort
-
getQueryLimit
- Specified by:
getQueryLimitin interfaceDelegatePreparedQuery<E,R> - Specified by:
getQueryLimitin interfaceDelegateStoredQuery<E,R> - Specified by:
getQueryLimitin interfacePagedQuery<E>- Specified by:
getQueryLimitin interfacePreparedQuery<E,R> - Specified by:
getQueryLimitin interfaceStoredQuery<E,R> - Returns:
- The limit
-