public class EnversPostInsertEventListenerImpl extends BaseEnversEventListener implements PostInsertEventListener
Constructor and Description |
---|
EnversPostInsertEventListenerImpl(EnversService enversService) |
Modifier and Type | Method and Description |
---|---|
void |
onPostInsert(PostInsertEvent event) |
boolean |
requiresPostCommitHanding(EntityPersister persister)
Does this listener require that after transaction hooks be registered? Typically this is
true
for post-insert event listeners, but may not be, for example, in JPA cases where there are no callbacks defined
for the particular entity. |
checkIfTransactionInProgress, generateBidirectionalCollectionChangeWorkUnits, getEnversService
public EnversPostInsertEventListenerImpl(EnversService enversService)
public void onPostInsert(PostInsertEvent event)
onPostInsert
in interface PostInsertEventListener
public boolean requiresPostCommitHanding(EntityPersister persister)
PostInsertEventListener
true
for post-insert event listeners, but may not be, for example, in JPA cases where there are no callbacks defined
for the particular entity.requiresPostCommitHanding
in interface PostInsertEventListener
persister
- The persister for the entity in question.true
if after transaction callbacks should be added.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.