public abstract class EntityInterceptorAdapter<T> extends Object implements EntityInterceptor<T>
Base class for an interceptor hooked to repository persistence events. Which repositories are supported is module/implementation dependant.
Currently implementations are available for BasicRepository
and JpaRepository.
| Constructor and Description |
|---|
EntityInterceptorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate(T entity) |
void |
afterDelete(T entity) |
void |
afterDeleteAll(Class<?> entityClass) |
void |
afterUpdate(T entity) |
void |
beforeCreate(T entity) |
void |
beforeDelete(T entity) |
void |
beforeDeleteAll(Class<?> entityClass) |
void |
beforeUpdate(T entity) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlespublic void beforeCreate(T entity)
beforeCreate in interface EntityInterceptor<T>public void beforeUpdate(T entity)
beforeUpdate in interface EntityInterceptor<T>public void afterDelete(T entity)
afterDelete in interface EntityInterceptor<T>public void afterCreate(T entity)
afterCreate in interface EntityInterceptor<T>public void afterUpdate(T entity)
afterUpdate in interface EntityInterceptor<T>public void beforeDelete(T entity)
beforeDelete in interface EntityInterceptor<T>public void beforeDeleteAll(Class<?> entityClass)
beforeDeleteAll in interface EntityInterceptor<T>public void afterDeleteAll(Class<?> entityClass)
afterDeleteAll in interface EntityInterceptor<T>Copyright © 2020. All rights reserved.