public abstract class AbstractChangedListener<T>
extends java.lang.Object
implements org.hibernate.event.spi.PostCommitUpdateEventListener, org.hibernate.event.spi.PostCommitInsertEventListener, org.hibernate.event.spi.PostCommitDeleteEventListener
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractChangedListener(org.hibernate.event.spi.EventType... types) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
missing(org.hibernate.event.spi.PostDeleteEvent event) |
protected boolean |
missing(org.hibernate.event.spi.PostInsertEvent event) |
protected boolean |
missing(org.hibernate.event.spi.PostUpdateEvent event) |
protected boolean |
modify(org.hibernate.event.spi.PostUpdateEvent event,
java.lang.String property) |
void |
onPostDelete(org.hibernate.event.spi.PostDeleteEvent event) |
protected void |
onPostDelete(T entity,
org.hibernate.event.spi.PostDeleteEvent event) |
void |
onPostDeleteCommitFailed(org.hibernate.event.spi.PostDeleteEvent event) |
void |
onPostInsert(org.hibernate.event.spi.PostInsertEvent event) |
protected void |
onPostInsert(T entity,
org.hibernate.event.spi.PostInsertEvent event) |
void |
onPostInsertCommitFailed(org.hibernate.event.spi.PostInsertEvent event) |
void |
onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event) |
protected void |
onPostUpdate(T entity,
org.hibernate.event.spi.PostUpdateEvent event) |
void |
onPostUpdateCommitFailed(org.hibernate.event.spi.PostUpdateEvent event) |
void |
postConstruct() |
boolean |
requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister) |
default boolean |
requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setEventListenerRegistry(org.hibernate.event.service.spi.EventListenerRegistry eventListenerRegistry) |
protected transient org.springframework.context.ApplicationContext applicationContext
protected AbstractChangedListener(org.hibernate.event.spi.EventType... types)
@PostConstruct public void postConstruct()
public void onPostUpdateCommitFailed(org.hibernate.event.spi.PostUpdateEvent event)
onPostUpdateCommitFailed in interface org.hibernate.event.spi.PostCommitUpdateEventListenerpublic void onPostDeleteCommitFailed(org.hibernate.event.spi.PostDeleteEvent event)
onPostDeleteCommitFailed in interface org.hibernate.event.spi.PostCommitDeleteEventListenerpublic void onPostInsertCommitFailed(org.hibernate.event.spi.PostInsertEvent event)
onPostInsertCommitFailed in interface org.hibernate.event.spi.PostCommitInsertEventListenerprotected boolean missing(org.hibernate.event.spi.PostInsertEvent event)
protected boolean missing(org.hibernate.event.spi.PostUpdateEvent event)
protected boolean missing(org.hibernate.event.spi.PostDeleteEvent event)
public 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.PostUpdateEventListenerprotected void onPostInsert(T entity, org.hibernate.event.spi.PostInsertEvent event)
protected void onPostUpdate(T entity, org.hibernate.event.spi.PostUpdateEvent event)
protected void onPostDelete(T entity, org.hibernate.event.spi.PostDeleteEvent event)
public void onPostDelete(org.hibernate.event.spi.PostDeleteEvent event)
onPostDelete in interface org.hibernate.event.spi.PostDeleteEventListenerpublic boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)
protected boolean modify(org.hibernate.event.spi.PostUpdateEvent event,
java.lang.String property)
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
@Autowired public void setEventListenerRegistry(org.hibernate.event.service.spi.EventListenerRegistry eventListenerRegistry)
public boolean requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)