Class DatabaseListener
- java.lang.Object
-
- io.tesler.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 void
init()
void
onAutoFlush(org.hibernate.event.spi.AutoFlushEvent event)
void
onFlush(org.hibernate.event.spi.FlushEvent event)
void
onFlushEntity(org.hibernate.event.spi.FlushEntityEvent event)
void
onPostDelete(org.hibernate.event.spi.PostDeleteEvent event)
void
onPostInsert(org.hibernate.event.spi.PostInsertEvent event)
void
onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
boolean
requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)
default boolean
requiresPostCommitHandling(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:
onPostDelete
in interfaceorg.hibernate.event.spi.PostDeleteEventListener
-
onPostInsert
public void onPostInsert(org.hibernate.event.spi.PostInsertEvent event)
- Specified by:
onPostInsert
in interfaceorg.hibernate.event.spi.PostInsertEventListener
-
onPostUpdate
public void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
- Specified by:
onPostUpdate
in interfaceorg.hibernate.event.spi.PostUpdateEventListener
-
onAutoFlush
public void onAutoFlush(org.hibernate.event.spi.AutoFlushEvent event) throws org.hibernate.HibernateException
- Specified by:
onAutoFlush
in 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:
onFlushEntity
in 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:
onFlush
in 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)
-
-