Package io.micronaut.data.model.runtime
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>
,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
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <RT> java.util.Optional<RT>
getParameterInRole(java.lang.String role, java.lang.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, 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, getTransactionDefinition
-
-
-
-
Method Detail
-
getParameterInRole
default <RT> java.util.Optional<RT> getParameterInRole(@NonNull java.lang.String role, @NonNull java.lang.Class<RT> type)
Return the value of the given parameter if the given role.- Type Parameters:
RT
- The generic type- Parameters:
role
- The roletype
- The type- Returns:
- An optional value.
-
-