@java.lang.SuppressWarnings({"rawtypes", "unchecked", "serial"}) public class ClosureEventListener extends java.lang.Object implements org.hibernate.event.spi.SaveOrUpdateEventListener, org.hibernate.event.spi.PreLoadEventListener, org.hibernate.event.spi.PostLoadEventListener, org.hibernate.event.spi.PostInsertEventListener, org.hibernate.event.spi.PostUpdateEventListener, org.hibernate.event.spi.PostDeleteEventListener, org.hibernate.event.spi.PreDeleteEventListener, org.hibernate.event.spi.PreUpdateEventListener
Invokes closure events on domain entities such as beforeInsert, beforeUpdate and beforeDelete.
Also deals with auto time stamping of domain classes that have properties named 'lastUpdated' and/or 'dateCreated'.
Modifiers | Name | Description |
---|---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and description |
---|
ClosureEventListener
(PersistentEntity persistentEntity, boolean failOnError, java.util.List failOnErrorPackages) |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.Object |
call() |
|
public java.lang.Object |
call() |
|
public java.lang.Object |
call() |
|
public java.lang.Object |
call() |
|
public java.lang.Object |
call() |
|
public java.lang.Boolean |
call() |
|
public java.lang.Boolean |
call() |
|
public java.lang.Boolean |
call() |
|
protected boolean |
doValidate(java.lang.Object entity) |
|
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 boolean |
requiresPostCommitHanding(EntityPersister persister) |
|
public boolean |
requiresPostCommitHandling(EntityPersister persister) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |