Class AbstractReactiveInterceptor<T,R>
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,R>
io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor<T,R>
- Type Parameters:
T- The declaring typeR- The return type
- All Implemented Interfaces:
DataInterceptor<T,R>
- Direct Known Subclasses:
AbstractPublisherInterceptor, DefaultDeleteAllReactiveInterceptor, DefaultDeleteOneReactiveInterceptor, DefaultInsertAllReactiveInterceptor, DefaultInsertEntityReactiveInterceptor, DefaultInsertOneReactiveInterceptor, DefaultSaveAllReactiveInterceptor, DefaultSaveEntityReactiveInterceptor, DefaultSaveOneReactiveInterceptor, DefaultUpdateAllEntitiesReactiveInterceptor, DefaultUpdateEntityReactiveInterceptor
Abstract reactive repository interceptor.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractQueryInterceptor
AbstractQueryInterceptor.SaveOperation -
Field Summary
FieldsFields inherited from class AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractReactiveInterceptor(@NonNull RepositoryOperations operations) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.reactivestreams.Publisher<Integer> count(org.reactivestreams.Publisher<?> publisher) Count the items.protected final <E> org.reactivestreams.Publisher<E> persistOrUpdateReactive(io.micronaut.aop.MethodInvocationContext<T, ?> context, E entity) protected final <E> org.reactivestreams.Publisher<E> persistWithUpdateFallbackReactive(io.micronaut.aop.MethodInvocationContext<T, ?> context, E entity) Methods inherited from class AbstractQueryInterceptor
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, findRepositoryOperations, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getDeleteReturningBatchOperation, getDeleteReturningOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getLimit, getOffset, getPageable, getPageableInRole, getPagedQuery, getParameterInRole, getParameterInRole, getParametersInRole, getParametersInRole, getParameterValueMap, getRequiredEntity, getRequiredParameterInRole, getRequiredRootEntity, getReturnType, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, hasEntityId, hasReturnTypeInRole, instantiateEntity, isEntityExistsException, isEntityUpdateCandidate, isNumber, isSaveAsInsert, isSaveAssignedIdFallbackToUpdate, persistOrUpdate, persistWithUpdateFallback, prepareCountQuery, prepareQuery, propagate, resolveSaveOperation, unwrapCompletionException, validateNullArgumentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataInterceptor
intercept
-
Field Details
-
reactiveOperations
-
-
Constructor Details
-
AbstractReactiveInterceptor
Default constructor.- Parameters:
operations- The operations
-
-
Method Details
-
count
Count the items.- Parameters:
publisher- the publisher- Returns:
- the size
-
persistOrUpdateReactive
protected final <E> org.reactivestreams.Publisher<E> persistOrUpdateReactive(io.micronaut.aop.MethodInvocationContext<T, ?> context, E entity) -
persistWithUpdateFallbackReactive
protected final <E> org.reactivestreams.Publisher<E> persistWithUpdateFallbackReactive(io.micronaut.aop.MethodInvocationContext<T, ?> context, E entity)
-