public class ClosureEventTriggeringInterceptor extends AbstractClosureEventTriggeringInterceptor
Listens for Hibernate events and publishes corresponding Datastore events.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
AFTER_DELETE_EVENT |
|
static java.lang.String |
AFTER_INSERT_EVENT |
|
static java.lang.String |
AFTER_LOAD_EVENT |
|
static java.lang.String |
AFTER_UPDATE_EVENT |
|
static java.lang.String |
BEFORE_DELETE_EVENT |
|
static java.lang.String |
BEFORE_INSERT_EVENT |
|
static java.lang.String |
BEFORE_LOAD_EVENT |
|
static java.lang.String |
BEFORE_UPDATE_EVENT |
|
static java.lang.String |
ONLOAD_EVENT |
|
static java.lang.String |
ONLOAD_SAVE |
|
protected AbstractHibernateDatastore |
datastore |
|
protected org.grails.datastore.gorm.events.ConfigurableApplicationEventPublisher |
eventPublisher |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.Object |
getEntity(org.hibernate.event.spi.SaveOrUpdateEvent hibernateEvent) |
|
public void |
onPostDelete(org.hibernate.event.spi.PostDeleteEvent hibernateEvent) |
|
public void |
onPostInsert(org.hibernate.event.spi.PostInsertEvent hibernateEvent) |
|
public void |
onPostLoad(org.hibernate.event.spi.PostLoadEvent hibernateEvent) |
|
public void |
onPostUpdate(org.hibernate.event.spi.PostUpdateEvent hibernateEvent) |
|
public boolean |
onPreDelete(org.hibernate.event.spi.PreDeleteEvent hibernateEvent) |
|
public boolean |
onPreInsert(org.hibernate.event.spi.PreInsertEvent hibernateEvent) |
|
public void |
onPreLoad(org.hibernate.event.spi.PreLoadEvent hibernateEvent) |
|
public boolean |
onPreUpdate(org.hibernate.event.spi.PreUpdateEvent hibernateEvent) |
|
public void |
onSaveOrUpdate(org.hibernate.event.spi.SaveOrUpdateEvent hibernateEvent) |
|
public boolean |
requiresPostCommitHanding(org.grails.datastore.mapping.engine.EntityPersister persister) |
|
public void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
|
public void |
setDatastore(AbstractHibernateDatastore datastore) |
|
public void |
setEventPublisher(org.grails.datastore.gorm.events.ConfigurableApplicationEventPublisher eventPublisher) |