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
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
- Author:
- graemerocher
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultTransactionDefinition
NO_TRANSACTION
Deprecated.Not needed anymore
-
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<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
-
-
-
-
Field Detail
-
NO_TRANSACTION
@Deprecated public static final DefaultTransactionDefinition NO_TRANSACTION
Deprecated.Not needed anymore
-
-
Method Detail
-
getTransactionDefinition
@NonNull public final java.util.Optional<TransactionDefinition> getTransactionDefinition()
- Specified by:
getTransactionDefinition
in interfaceStoredDataOperation<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 interfaceStoredDataOperation<R>
- Returns:
- The query result type
-
getAnnotationMetadata
public final io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
- Specified by:
getAnnotationMetadata
in interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
-
-