Class DatabaseListener
- java.lang.Object
-
- org.cxbox.model.core.listeners.hbn.DatabaseListener
-
- All Implemented Interfaces:
Serializable,org.hibernate.event.spi.AutoFlushEventListener,org.hibernate.event.spi.FlushEntityEventListener,org.hibernate.event.spi.FlushEventListener,org.hibernate.event.spi.PostDeleteEventListener,org.hibernate.event.spi.PostInsertEventListener,org.hibernate.event.spi.PostUpdateEventListener
@Component public class DatabaseListener extends Object implements org.hibernate.event.spi.PostInsertEventListener, org.hibernate.event.spi.PostUpdateEventListener, org.hibernate.event.spi.PostDeleteEventListener, org.hibernate.event.spi.FlushEntityEventListener, org.hibernate.event.spi.FlushEventListener, org.hibernate.event.spi.AutoFlushEventListener
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatabaseListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description protected voidinit()voidonAutoFlush(org.hibernate.event.spi.AutoFlushEvent event)voidonFlush(org.hibernate.event.spi.FlushEvent event)voidonFlushEntity(org.hibernate.event.spi.FlushEntityEvent event)voidonPostDelete(org.hibernate.event.spi.PostDeleteEvent event)voidonPostInsert(org.hibernate.event.spi.PostInsertEvent event)voidonPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)booleanrequiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)default booleanrequiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)
-
-
-
Method Detail
-
requiresPostCommitHanding
public boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)
-
onPostDelete
public void onPostDelete(org.hibernate.event.spi.PostDeleteEvent event)
- Specified by:
onPostDeletein interfaceorg.hibernate.event.spi.PostDeleteEventListener
-
onPostInsert
public void onPostInsert(org.hibernate.event.spi.PostInsertEvent event)
- Specified by:
onPostInsertin interfaceorg.hibernate.event.spi.PostInsertEventListener
-
onPostUpdate
public void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
- Specified by:
onPostUpdatein interfaceorg.hibernate.event.spi.PostUpdateEventListener
-
onAutoFlush
public void onAutoFlush(org.hibernate.event.spi.AutoFlushEvent event) throws org.hibernate.HibernateException- Specified by:
onAutoFlushin interfaceorg.hibernate.event.spi.AutoFlushEventListener- Throws:
org.hibernate.HibernateException
-
onFlushEntity
public void onFlushEntity(org.hibernate.event.spi.FlushEntityEvent event) throws org.hibernate.HibernateException- Specified by:
onFlushEntityin interfaceorg.hibernate.event.spi.FlushEntityEventListener- Throws:
org.hibernate.HibernateException
-
onFlush
public void onFlush(org.hibernate.event.spi.FlushEvent event) throws org.hibernate.HibernateException- Specified by:
onFlushin interfaceorg.hibernate.event.spi.FlushEventListener- Throws:
org.hibernate.HibernateException
-
init
@PostConstruct protected void init()
-
requiresPostCommitHandling
public default boolean requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)
-
-