Class DefaultFindOptionalInterceptor<T>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,Optional<Object>>
io.micronaut.data.runtime.intercept.DefaultFindOptionalInterceptor<T>
- Type Parameters:
T
- The declaring type
- All Implemented Interfaces:
DataInterceptor<T,
,Optional<Object>> FindOptionalInterceptor<T>
public class DefaultFindOptionalInterceptor<T>
extends AbstractQueryInterceptor<T,Optional<Object>>
implements FindOptionalInterceptor<T>
Default implementation of
FindOptionalInterceptor
.- Since:
- 1.0.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver
-
Constructor Summary
ConstructorDescriptionDefaultFindOptionalInterceptor
(@NonNull RepositoryOperations datastore) Default constructor. -
Method Summary
Methods inherited from class io.micronaut.data.runtime.intercept.AbstractQueryInterceptor
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getDeleteReturningBatchOperation, getDeleteReturningOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getLimit, getOffset, getPageable, getPageableInRole, getPagedQuery, getParameterInRole, getParameterValueMap, getRequiredEntity, getRequiredParameterInRole, getRequiredRootEntity, getReturnType, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, validateNullArguments
-
Constructor Details
-
DefaultFindOptionalInterceptor
Default constructor.- Parameters:
datastore
- The operations
-
-
Method Details
-
intercept
public Optional<Object> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T, Optional<Object>> context) Description copied from interface:DataInterceptor
Intercepts a data method execution.- Specified by:
intercept
in interfaceDataInterceptor<T,
Optional<Object>> - Parameters:
methodKey
- The method keycontext
- The context- Returns:
- The result
-