Interface PreparedDataOperation<R>

Type Parameters:
R - The result type
All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.attr.AttributeHolder, StoredDataOperation<R>
All Known Subinterfaces:
BatchOperation<E>, BindableParametersPreparedQuery<E,R>, DelegatePreparedQuery<E,R>, DeleteBatchOperation<E>, DeleteOperation<E>, DeleteReturningBatchOperation<E,R>, DeleteReturningOperation<E,R>, EntityInstanceOperation<E>, EntityOperation<E>, InsertBatchOperation<E>, InsertOperation<E>, MongoPreparedQuery<E,R>, PreparedQuery<E,R>, SqlPreparedQuery<E,R>, UpdateBatchOperation<E>, UpdateOperation<E>
All Known Implementing Classes:
AbstractPreparedDataOperation, DefaultBindableParametersPreparedQuery, DefaultPreparedQuery, DefaultSqlPreparedQuery, DummyPreparedQuery

public interface PreparedDataOperation<R> extends StoredDataOperation<R>, io.micronaut.core.attr.AttributeHolder
An operation that has been prepared for execution with the current context.
Since:
2.2.0
Author:
graemerocher
  • Field Summary

    Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

    EMPTY
  • Method Summary

    Modifier and Type
    Method
    Description
    default <RT> Optional<RT>
    getParameterInRole(@NonNull String role, @NonNull Class<RT> type)
    Return the value of the given parameter if the given role.

    Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

    findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, 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.core.attr.AttributeHolder

    getAttribute, getAttribute, getAttributes

    Methods inherited from interface io.micronaut.data.model.runtime.StoredDataOperation

    getResultArgument
  • Method Details

    • getParameterInRole

      default <RT> Optional<RT> getParameterInRole(@NonNull @NonNull String role, @NonNull @NonNull Class<RT> type)
      Return the value of the given parameter if the given role.
      Type Parameters:
      RT - The generic type
      Parameters:
      role - The role
      type - The type
      Returns:
      An optional value.