Implements JPA-compliant "PreUpdate", "PostUpdate", "PostPersist", "PostRemove", "PostLoad" callbacks for the DataChannel operations.
Depending on how callbacks are registered, they are invoked either on persistent object instances directly or on an instance of an arbitrary listener class. Signature of a callback method of a persistent object is
"void method()"
, while for a non-persistent listener it is
"void method(Object)"
.
Note that this interceptor does not apply "PreRemove" and "PrePersist" callbacks during "onSync", assuming that a child ObjectContext did that already. It is often used in conjunction with {@link ObjectContextCallbackInterceptor} that adds those callbacks.
@see ObjectContextCallbackInterceptor
@since 3.0
@author Andrus Adamchik