public class HibernateEventListener extends AbstractHibernateEventListener
Invokes closure events on domain entities such as beforeInsert, beforeUpdate and beforeDelete.
Modifiers | Name | Description |
---|---|---|
protected java.util.concurrent.ConcurrentMap<SoftKey<java.lang.Class<?>>, ClosureEventListener> |
eventListeners |
Fields inherited from class | Fields |
---|---|
class AbstractHibernateEventListener |
cachedShouldTrigger, failOnError, failOnErrorPackages |
class AbstractPersistenceEventListener |
datastore |
Constructor and description |
---|
HibernateEventListener
(AbstractHibernateDatastore datastore) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected ClosureEventListener |
findEventListener(java.lang.Object entity, org.hibernate.engine.spi.SessionFactoryImplementor factory) |
|
public TimestampProvider |
getTimestampProvider()
|
|
protected void |
onPersistenceEvent(AbstractPersistenceEvent event) |
|
public void |
onPostDelete(org.hibernate.event.spi.PostDeleteEvent event) |
|
public void |
onPostInsert(org.hibernate.event.spi.PostInsertEvent event) |
|
public void |
onPostLoad(org.hibernate.event.spi.PostLoadEvent event) |
|
public void |
onPostUpdate(org.hibernate.event.spi.PostUpdateEvent event) |
|
public boolean |
onPreDelete(org.hibernate.event.spi.PreDeleteEvent event) |
|
public boolean |
onPreInsert(org.hibernate.event.spi.PreInsertEvent event) |
|
public void |
onPreLoad(org.hibernate.event.spi.PreLoadEvent event) |
|
public boolean |
onPreUpdate(org.hibernate.event.spi.PreUpdateEvent event) |
|
public void |
onSaveOrUpdate(org.hibernate.event.spi.SaveOrUpdateEvent event) |
|
public void |
onValidate(ValidationEvent event) |
|
public void |
setTimestampProvider(TimestampProvider timestampProvider)
|
|
public boolean |
supportsEventType(java.lang.Class<? extends org.springframework.context.ApplicationEvent> eventType) {@inheritDoc} |
Methods inherited from class | Name |
---|---|
class AbstractHibernateEventListener |
getDatastore, supportsEventType |
class AbstractPersistenceEventListener |
getOrder, isValidSource, onApplicationEvent, onPersistenceEvent, supportsSourceType |
{@inheritDoc}