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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCreate(T entity) voidafterDelete(T entity) voidafterDeleteAll(Class<?> entityClass) voidafterUpdate(T entity) voidbeforeCreate(T entity) voidbeforeDelete(T entity) voidbeforeDeleteAll(Class<?> entityClass) voidbeforeUpdate(T entity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.foreach.across.modules.hibernate.aop.EntityInterceptor
handles
-
Constructor Details
-
EntityInterceptorAdapter
public EntityInterceptorAdapter()
-
-
Method Details
-
beforeCreate
- Specified by:
beforeCreatein interfaceEntityInterceptor<T>
-
beforeUpdate
- Specified by:
beforeUpdatein interfaceEntityInterceptor<T>
-
afterDelete
- Specified by:
afterDeletein interfaceEntityInterceptor<T>
-
afterCreate
- Specified by:
afterCreatein interfaceEntityInterceptor<T>
-
afterUpdate
- Specified by:
afterUpdatein interfaceEntityInterceptor<T>
-
beforeDelete
- Specified by:
beforeDeletein interfaceEntityInterceptor<T>
-
beforeDeleteAll
- Specified by:
beforeDeleteAllin interfaceEntityInterceptor<T>
-
afterDeleteAll
- Specified by:
afterDeleteAllin interfaceEntityInterceptor<T>
-