java.lang.Object
io.ebean.event.AbstractBeanPersistListener
- All Implemented Interfaces:
BeanPersistListener
Provides a base implementation of BeanPersistListener.
Objects extending this should override the methods then are interested in. The default inserted() updated() and deleted() methods return false and as such means other servers in the cluster are not notified.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notified that a bean has been deleted.void
Notified that a bean has been inserted.void
softDeleted
(Object bean) Notified that a bean has been soft deleted.void
Notified that a bean has been updated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.ebean.event.BeanPersistListener
isRegisterFor
-
Constructor Details
-
AbstractBeanPersistListener
public AbstractBeanPersistListener()
-
-
Method Details
-
inserted
Notified that a bean has been inserted.- Specified by:
inserted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was inserted.
-
updated
Notified that a bean has been updated.- Specified by:
updated
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was updated.updatedProperties
- The properties that were modified by this update.
-
deleted
Notified that a bean has been deleted.- Specified by:
deleted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was deleted.
-
softDeleted
Notified that a bean has been soft deleted.- Specified by:
softDeleted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was deleted.
-