Class PostDeleteHandling
java.lang.Object
org.hibernate.action.queue.spi.decompose.entity.PostDeleteHandling
- All Implemented Interfaces:
PostExecutionCallback
Post-execution callback for entity delete actions.
This handles all the finalization work that needs to happen after all table DELETEs
(or soft-delete UPDATEs) for the entity have been executed, including:
- Removing entity entry from persistence context
- Updating EntityEntry state (postDelete)
- Removing entity holder from persistence context
- Removing item from cache
- Natural ID resolution cleanup
- Firing POST_DELETE event listeners
- Updating statistics
- Since:
- 8.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPostDeleteHandling(org.hibernate.action.internal.EntityDeleteAction action, Object cacheKey, Object naturalIdValues, PreDeleteHandling preDeleteHandling) -
Method Summary
-
Constructor Details
-
PostDeleteHandling
public PostDeleteHandling(org.hibernate.action.internal.EntityDeleteAction action, Object cacheKey, Object naturalIdValues, PreDeleteHandling preDeleteHandling)
-
-
Method Details
-
getPreDeleteHandling
-
handle
Description copied from interface:PostExecutionCallbackThe callback.- Specified by:
handlein interfacePostExecutionCallback
-