@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
| Constructor and Description |
|---|
DatabaseListener() |
| Modifier and Type | Method and 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) |
public boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)
public void onPostDelete(org.hibernate.event.spi.PostDeleteEvent event)
onPostDelete in interface org.hibernate.event.spi.PostDeleteEventListenerpublic void onPostInsert(org.hibernate.event.spi.PostInsertEvent event)
onPostInsert in interface org.hibernate.event.spi.PostInsertEventListenerpublic void onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event)
onPostUpdate in interface org.hibernate.event.spi.PostUpdateEventListenerpublic void onAutoFlush(org.hibernate.event.spi.AutoFlushEvent event)
throws org.hibernate.HibernateException
onAutoFlush in interface org.hibernate.event.spi.AutoFlushEventListenerorg.hibernate.HibernateExceptionpublic void onFlushEntity(org.hibernate.event.spi.FlushEntityEvent event)
throws org.hibernate.HibernateException
onFlushEntity in interface org.hibernate.event.spi.FlushEntityEventListenerorg.hibernate.HibernateExceptionpublic void onFlush(org.hibernate.event.spi.FlushEvent event)
throws org.hibernate.HibernateException
onFlush in interface org.hibernate.event.spi.FlushEventListenerorg.hibernate.HibernateException@PostConstruct protected void init()
public boolean requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)
Copyright © 2018–2021 Tesler. All rights reserved.