public class EnversPostInsertEventListenerImpl extends BaseEnversEventListener implements PostInsertEventListener
Modifier | Constructor and Description |
---|---|
protected |
EnversPostInsertEventListenerImpl(AuditConfiguration enversConfiguration) |
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, getAuditConfiguration
protected EnversPostInsertEventListenerImpl(AuditConfiguration enversConfiguration)
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-2015 Red Hat, Inc. All Rights Reserved.