Interface EntityInterceptor<T>
- All Known Implementing Classes:
EntityInterceptorAdapter
public interface EntityInterceptor<T>
-
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) boolean
Boolean 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
-