A PersistenceEventListener that uses Spring's validation mechanism to evict objects if an error occurs
| Fields inherited from class | Fields |
|---|---|
class AbstractPersistenceEventListener |
datastore |
| Constructor and description |
|---|
ValidatingEventListener
(Datastore datastore) |
| Type | Name and description |
|---|---|
boolean |
beforeInsert(PersistentEntity entity, EntityAccess e) |
boolean |
beforeUpdate(PersistentEntity entity, EntityAccess e) |
protected void |
onErrors(java.lang.Object object, org.springframework.validation.Errors errors)Sub classes should override to receive error notifications |
protected void |
onPersistenceEvent(AbstractPersistenceEvent event) |
boolean |
supportsEventType(java.lang.Class<? extends org.springframework.context.ApplicationEvent> eventType) |
| Methods inherited from class | Name |
|---|---|
class AbstractPersistenceEventListener |
getOrder, isValidSource, onApplicationEvent, onPersistenceEvent, supportsSourceType |
Sub classes should override to receive error notifications
object - The object being validatederrors - The errors instance