public class JpaPostInsertEventListener extends java.lang.Object implements PostInsertEventListener, CallbackRegistryConsumer
| Constructor and Description |
|---|
JpaPostInsertEventListener() |
JpaPostInsertEventListener(CallbackRegistry callbackRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
injectCallbackRegistry(CallbackRegistry callbackRegistry)
Injection of the CallbackRegistry
|
void |
onPostInsert(PostInsertEvent event) |
boolean |
requiresPostCommitHanding(EntityPersister persister)
Does this listener require that after transaction hooks be registered?
|
default boolean |
requiresPostCommitHandling(EntityPersister persister)
Does this listener require that after transaction hooks be registered?
|
public JpaPostInsertEventListener()
public JpaPostInsertEventListener(CallbackRegistry callbackRegistry)
public void injectCallbackRegistry(CallbackRegistry callbackRegistry)
CallbackRegistryConsumerinjectCallbackRegistry in interface CallbackRegistryConsumercallbackRegistry - The CallbackRegistrypublic void onPostInsert(PostInsertEvent event)
onPostInsert in interface PostInsertEventListenerpublic boolean requiresPostCommitHanding(EntityPersister persister)
persister - The persister for the entity in question.true if after transaction callbacks should be added.public boolean requiresPostCommitHandling(EntityPersister persister)
persister - The persister for the entity in question.true if after transaction callbacks should be added.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.