Class DefaultBindableParametersStoredQuery<E,R>

java.lang.Object
io.micronaut.data.runtime.operations.internal.query.DefaultBindableParametersStoredQuery<E,R>
Type Parameters:
E - The entity type
R - 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 Object implements BindableParametersStoredQuery<E,R>, DelegateStoredQuery<E,R>
Since:
3.8.0
  • Constructor Details

    • DefaultBindableParametersStoredQuery

      public DefaultBindableParametersStoredQuery(io.micronaut.data.model.runtime.StoredQuery<E,R> storedQuery, io.micronaut.data.model.runtime.RuntimePersistentEntity<E> runtimePersistentEntity)
      Parameters:
      storedQuery - The stored query
      runtimePersistentEntity - The persistent entity
  • Method Details

    • getPersistentEntity

      public io.micronaut.data.model.runtime.RuntimePersistentEntity<E> getPersistentEntity()
      Specified by:
      getPersistentEntity in interface PersistentEntityAwareQuery<E>
      Returns:
      The persistent entity
    • getStoredQueryDelegate

      public io.micronaut.data.model.runtime.StoredQuery<E,R> getStoredQueryDelegate()
      Specified by:
      getStoredQueryDelegate in interface DelegateStoredQuery<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<io.micronaut.data.model.runtime.QueryParameterBinding,Object> previousValues)
      Description copied from interface: BindableParametersStoredQuery
      Bind query parameters.
      Specified by:
      bindParameters in interface BindableParametersStoredQuery<E,R>
      Parameters:
      binder - The binder
      invocationContext - The invocation context
      entity - The entity
      previousValues - 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<io.micronaut.data.model.runtime.QueryParameterBinding,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)