Class DefaultSaveEntityInterceptor<T>

java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,Object>
io.micronaut.data.runtime.intercept.DefaultSaveEntityInterceptor<T>
Type Parameters:
T - The declaring type
All Implemented Interfaces:
io.micronaut.data.intercept.DataInterceptor<T,Object>, io.micronaut.data.intercept.SaveEntityInterceptor<T>

public class DefaultSaveEntityInterceptor<T> extends AbstractQueryInterceptor<T,Object> implements io.micronaut.data.intercept.SaveEntityInterceptor<T>
Default implementation of SaveEntityInterceptor.
Since:
1.0.0
  • Constructor Details

    • DefaultSaveEntityInterceptor

      protected DefaultSaveEntityInterceptor(@NonNull @NonNull io.micronaut.data.operations.RepositoryOperations datastore)
      Default constructor.
      Parameters:
      datastore - The operations
  • Method Details

    • intercept

      public Object intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,Object> context)
      Specified by:
      intercept in interface io.micronaut.data.intercept.DataInterceptor<T,Object>