T - The declaring typeR - The result type.public abstract class AbstractAsyncInterceptor<T,R> extends AbstractQueryInterceptor<T,java.util.concurrent.CompletionStage<R>>
| Modifier and Type | Field and Description |
|---|---|
protected AsyncRepositoryOperations |
asyncDatastoreOperations |
protected static io.micronaut.core.type.Argument<java.util.List<java.lang.Object>> |
LIST_OF_OBJECTS |
operations, preparedQueryResolver| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAsyncInterceptor(RepositoryOperations datastore)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Number |
convertNumberToReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context,
java.lang.Number number)
Convert a number argument if necessary.
|
protected io.micronaut.core.type.Argument<?> |
findReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context,
io.micronaut.core.type.Argument<?> defaultArg) |
protected io.micronaut.core.type.Argument<?> |
getReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context)
Returns the return type.
|
convertNumberArgumentIfNecessary, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getPageable, getPagedQuery, getParameterValueMap, getRequiredEntity, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, prepareQuery, prepareQuery, validateNullArgumentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinterceptprotected static final io.micronaut.core.type.Argument<java.util.List<java.lang.Object>> LIST_OF_OBJECTS
@NonNull protected final AsyncRepositoryOperations asyncDatastoreOperations
protected AbstractAsyncInterceptor(@NonNull
RepositoryOperations datastore)
datastore - The operationsprotected final io.micronaut.core.type.Argument<?> getReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context)
AbstractQueryInterceptorgetReturnType in class AbstractQueryInterceptor<T,java.util.concurrent.CompletionStage<R>>context - The contextprotected final io.micronaut.core.type.Argument<?> findReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context,
io.micronaut.core.type.Argument<?> defaultArg)
@Nullable
protected java.lang.Number convertNumberToReturnType(io.micronaut.aop.MethodInvocationContext<?,?> context,
java.lang.Number number)
context - The method contextnumber - The number