public class JpaDeleteEventListener extends DefaultDeleteEventListener implements CallbackRegistryConsumer
Constructor and Description |
---|
JpaDeleteEventListener() |
JpaDeleteEventListener(CallbackRegistry callbackRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
injectCallbackRegistry(CallbackRegistry callbackRegistry)
Injection of the CallbackRegistry
|
protected boolean |
invokeDeleteLifecycle(EventSource session,
Object entity,
EntityPersister persister) |
protected void |
performDetachedEntityDeletionCheck(DeleteEvent event)
Called when we have recognized an attempt to delete a detached entity.
|
cascadeAfterDelete, cascadeBeforeDelete, deleteEntity, deleteTransientEntity, onDelete, onDelete
public JpaDeleteEventListener()
public JpaDeleteEventListener(CallbackRegistry callbackRegistry)
public void injectCallbackRegistry(CallbackRegistry callbackRegistry)
CallbackRegistryConsumer
injectCallbackRegistry
in interface CallbackRegistryConsumer
callbackRegistry
- The CallbackRegistryprotected boolean invokeDeleteLifecycle(EventSource session, Object entity, EntityPersister persister)
invokeDeleteLifecycle
in class DefaultDeleteEventListener
protected void performDetachedEntityDeletionCheck(DeleteEvent event)
DefaultDeleteEventListener
performDetachedEntityDeletionCheck
in class DefaultDeleteEventListener
event
- The event.Copyright © 2017 JBoss by Red Hat. All rights reserved.