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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotified that a bean has been deleted.voidNotified that a bean has been inserted.voidsoftDeleted(Object bean) Notified that a bean has been soft deleted.voidNotified that a bean has been updated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
insertedin interfaceBeanPersistListener- Parameters:
bean- The bean that was inserted.
-
updated
Notified that a bean has been updated.- Specified by:
updatedin 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:
deletedin interfaceBeanPersistListener- Parameters:
bean- The bean that was deleted.
-
softDeleted
Notified that a bean has been soft deleted.- Specified by:
softDeletedin interfaceBeanPersistListener- Parameters:
bean- The bean that was deleted.
-