Interface EntityInterceptor<T>
- All Known Implementing Classes:
EntityInterceptorAdapter
public interface EntityInterceptor<T>
-
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) booleanBoolean method that checks if the interceptor should be executed for a particular target entity class.
-
Method Details
-
handles
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
-
afterCreate
-
beforeUpdate
-
afterUpdate
-
beforeDelete
-
afterDelete
-
beforeDeleteAll
-
afterDeleteAll
-