Package io.micronaut.data.model.runtime
Class DefaultStoredDataOperation<R>
java.lang.Object
io.micronaut.data.model.runtime.DefaultStoredDataOperation<R>
- Type Parameters:
R- The return type.
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider,io.micronaut.core.annotation.AnnotationSource,StoredDataOperation<R>
- Direct Known Subclasses:
DefaultPreparedQuery,DefaultStoredQuery
Used as a super class to resolve and potentially cache data about a method.
- Since:
- 2.2.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultStoredDataOperation(io.micronaut.inject.ExecutableMethod<?, ?> method) -
Method Summary
Modifier and TypeMethodDescriptionfinal io.micronaut.core.annotation.AnnotationMetadatafinal io.micronaut.core.type.Argument<R>final Optional<TransactionDefinition>Methods inherited from class java.lang.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, synthesizeDeclared
-
Constructor Details
-
DefaultStoredDataOperation
public DefaultStoredDataOperation(io.micronaut.inject.ExecutableMethod<?, ?> method)
-
-
Method Details
-
getTransactionDefinition
- Specified by:
getTransactionDefinitionin interfaceStoredDataOperation<R>- Returns:
- If the operation defines a transaction this method returned it.
-
getResultArgument
- Specified by:
getResultArgumentin interfaceStoredDataOperation<R>- Returns:
- The query result type
-
getAnnotationMetadata
public final io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
getAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
-