Class EntityInterceptorAdapter<T>
java.lang.Object
com.foreach.across.modules.hibernate.aop.EntityInterceptorAdapter<T>
- All Implemented Interfaces:
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
.
- Author:
- Arne Vandamme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.foreach.across.modules.hibernate.aop.EntityInterceptor
handles
-
Constructor Details
-
EntityInterceptorAdapter
public EntityInterceptorAdapter()
-
-
Method Details
-
beforeCreate
- Specified by:
beforeCreate
in interfaceEntityInterceptor<T>
-
beforeUpdate
- Specified by:
beforeUpdate
in interfaceEntityInterceptor<T>
-
afterDelete
- Specified by:
afterDelete
in interfaceEntityInterceptor<T>
-
afterCreate
- Specified by:
afterCreate
in interfaceEntityInterceptor<T>
-
afterUpdate
- Specified by:
afterUpdate
in interfaceEntityInterceptor<T>
-
beforeDelete
- Specified by:
beforeDelete
in interfaceEntityInterceptor<T>
-
beforeDeleteAll
- Specified by:
beforeDeleteAll
in interfaceEntityInterceptor<T>
-
afterDeleteAll
- Specified by:
afterDeleteAll
in interfaceEntityInterceptor<T>
-