Package org.hibernate.event.spi
Interface PostCommitInsertEventListener
- All Superinterfaces:
PostInsertEventListener
Called after an entity insert is committed to the datastore.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when a commit fails and an entity was scheduled for insertionboolean
requiresPostCommitHandling
(EntityPersister persister) Does this listener require that after transaction hooks be registered?Methods inherited from interface org.hibernate.event.spi.PostInsertEventListener
onPostInsert
-
Method Details
-
onPostInsertCommitFailed
Called when a commit fails and an entity was scheduled for insertion- Parameters:
event
- the insert event to be handled
-
requiresPostCommitHandling
Does this listener require that after transaction hooks be registered?- Parameters:
persister
- The persister for the entity in question.- Returns:
true
if after transaction callbacks should be added.
-