Class DefaultDeleteAllReturningInterceptor<E,R>

java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<E,R>
io.micronaut.data.runtime.intercept.DefaultDeleteAllReturningInterceptor<E,R>
Type Parameters:
E - The entity type
R - The result type
All Implemented Interfaces:
DataInterceptor<E,R>, DeleteAllReturningInterceptor<E,R>

public class DefaultDeleteAllReturningInterceptor<E,R> extends AbstractQueryInterceptor<E,R> implements DeleteAllReturningInterceptor<E,R>
Default implementation of DeleteAllInterceptor.
Since:
4.2.0
Author:
Denis Stepanov
  • Constructor Details

    • DefaultDeleteAllReturningInterceptor

      protected DefaultDeleteAllReturningInterceptor(@NonNull @NonNull RepositoryOperations datastore)
      Default constructor.
      Parameters:
      datastore - The operations
  • Method Details

    • intercept

      public R intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<E,R> context)
      Description copied from interface: DataInterceptor
      Intercepts a data method execution.
      Specified by:
      intercept in interface DataInterceptor<E,R>
      Parameters:
      methodKey - The method key
      context - The context
      Returns:
      The result