T - The declaring typepublic class DefaultFindOptionalInterceptor<T> extends AbstractQueryInterceptor<T,java.util.Optional<java.lang.Object>> implements FindOptionalInterceptor<T>
FindOptionalInterceptor.operations| Constructor and Description |
|---|
DefaultFindOptionalInterceptor(RepositoryOperations datastore)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.Object> |
intercept(RepositoryMethodKey methodKey,
io.micronaut.aop.MethodInvocationContext<T,java.util.Optional<java.lang.Object>> context)
Intercepts a data method execution.
|
convertNumberArgumentIfNecessary, getBatchOperation, getBatchOperation, getBatchOperation, getBatchOperation, getInsertOperation, getInsertOperation, getPageable, getPagedQuery, getRequiredEntity, getRequiredRootEntity, getUpdateOperation, instantiateEntity, isNullable, prepareCountQuery, prepareQuery, prepareQuery, validateNullArgumentspublic DefaultFindOptionalInterceptor(@NonNull
RepositoryOperations datastore)
datastore - The operationspublic java.util.Optional<java.lang.Object> intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,java.util.Optional<java.lang.Object>> context)
DataInterceptorintercept in interface DataInterceptor<T,java.util.Optional<java.lang.Object>>methodKey - The method keycontext - The context