Invokes closure events on domain entities such as beforeInsert, beforeUpdate and beforeDelete.
Modifiers | Name | Description |
---|---|---|
protected GrailsDomainBinder |
domainBinder |
|
protected java.util.concurrent.ConcurrentMap<SoftKey<java.lang.Class<?>>, ClosureEventListener> |
eventListeners |
Fields inherited from class | Fields |
---|---|
class AbstractEventTriggeringInterceptor |
cachedShouldTrigger, failOnError, failOnErrorPackages, log |
class AbstractPersistenceEventListener |
datastore |
Constructor and description |
---|
EventTriggeringInterceptor
(HibernateDatastore datastore, org.springframework.core.env.PropertyResolver co) |
Type | Name and description |
---|---|
protected ClosureEventListener |
findEventListener(java.lang.Object entity) |
protected java.util.List<java.lang.String> |
getDatasourceNames(PersistentEntity dc) |
TimestampProvider |
getTimestampProvider() |
protected void |
onPersistenceEvent(AbstractPersistenceEvent event) |
void |
onPostDelete(org.hibernate.event.spi.PostDeleteEvent event) |
void |
onPostInsert(org.hibernate.event.spi.PostInsertEvent event) |
void |
onPostLoad(org.hibernate.event.spi.PostLoadEvent event) |
void |
onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event) |
boolean |
onPreDelete(org.hibernate.event.spi.PreDeleteEvent event) |
boolean |
onPreInsert(org.hibernate.event.spi.PreInsertEvent event) |
void |
onPreLoad(org.hibernate.event.spi.PreLoadEvent event) |
boolean |
onPreUpdate(org.hibernate.event.spi.PreUpdateEvent event) |
void |
onSaveOrUpdate(org.hibernate.event.spi.SaveOrUpdateEvent event) |
void |
onValidate(ValidationEvent event) |
void |
setTimestampProvider(TimestampProvider timestampProvider) |
boolean |
supportsEventType(java.lang.Class<? extends org.springframework.context.ApplicationEvent> eventType) {@inheritDoc} |
Methods inherited from class | Name |
---|---|
class AbstractEventTriggeringInterceptor |
getDatasourceNames, isDefinedByCurrentDataStore, supportsEventType |
class AbstractPersistenceEventListener |
getOrder, onApplicationEvent, onPersistenceEvent, supportsSourceType |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
{@inheritDoc}