Interface EntityInterceptor<T>

All Known Implementing Classes:
EntityInterceptorAdapter

public interface EntityInterceptor<T>
  • Method Details

    • handles

      boolean handles(Class<?> entityClass)
      Boolean method that checks if the interceptor should be executed for a particular target entity class.
      Parameters:
      entityClass - the interceptor should be checked for
      Returns:
      true if the interceptor should be applied
    • beforeCreate

      void beforeCreate(T entity)
    • afterCreate

      void afterCreate(T entity)
    • beforeUpdate

      void beforeUpdate(T entity)
    • afterUpdate

      void afterUpdate(T entity)
    • beforeDelete

      void beforeDelete(T entity)
    • afterDelete

      void afterDelete(T entity)
    • beforeDeleteAll

      void beforeDeleteAll(Class<?> entityClass)
    • afterDeleteAll

      void afterDeleteAll(Class<?> entityClass)