Class DefaultStoredDataOperation<R>

  • Type Parameters:
    R - The return type.
    All Implemented Interfaces:
    io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, StoredDataOperation<R>

    public class DefaultStoredDataOperation<R>
    extends java.lang.Object
    implements StoredDataOperation<R>
    Used as a super class to resolve and potentially cache data about a method.
    Since:
    2.2.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.micronaut.transaction.support.DefaultTransactionDefinition NO_TRANSACTION
      Deprecated.
      Not needed anymore
      • Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

        EMPTY
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultStoredDataOperation​(io.micronaut.inject.ExecutableMethod<?,​?> method)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()  
      io.micronaut.core.type.Argument<R> getResultArgument()  
      java.util.Optional<io.micronaut.transaction.TransactionDefinition> getTransactionDefinition()  
      • 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
    • Field Detail

      • NO_TRANSACTION

        @Deprecated
        public static final io.micronaut.transaction.support.DefaultTransactionDefinition NO_TRANSACTION
        Deprecated.
        Not needed anymore
    • Constructor Detail

      • DefaultStoredDataOperation

        public DefaultStoredDataOperation​(io.micronaut.inject.ExecutableMethod<?,​?> method)
    • Method Detail

      • getTransactionDefinition

        @NonNull
        public final java.util.Optional<io.micronaut.transaction.TransactionDefinition> getTransactionDefinition()
        Specified by:
        getTransactionDefinition in interface StoredDataOperation<R>
        Returns:
        If the operation defines a transaction this method returned it.
      • getResultArgument

        @NonNull
        public final io.micronaut.core.type.Argument<R> getResultArgument()
        Specified by:
        getResultArgument in interface StoredDataOperation<R>
        Returns:
        The query result type
      • getAnnotationMetadata

        public final io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
        Specified by:
        getAnnotationMetadata in interface io.micronaut.core.annotation.AnnotationMetadataProvider