Package io.ebean.event
Class AbstractBeanPersistListener
- java.lang.Object
-
- io.ebean.event.AbstractBeanPersistListener
-
- All Implemented Interfaces:
BeanPersistListener
public abstract class AbstractBeanPersistListener extends Object implements 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 Constructor Description AbstractBeanPersistListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleted(Object bean)
Notified that a bean has been deleted.void
inserted(Object bean)
Notified that a bean has been inserted.void
softDeleted(Object bean)
Notified that a bean has been soft deleted.void
updated(Object bean, Set<String> updatedProperties)
Notified that a bean has been updated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.ebean.event.BeanPersistListener
isRegisterFor
-
-
-
-
Constructor Detail
-
AbstractBeanPersistListener
public AbstractBeanPersistListener()
-
-
Method Detail
-
inserted
public void inserted(Object bean)
Notified that a bean has been inserted.- Specified by:
inserted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was inserted.
-
updated
public void updated(Object bean, Set<String> updatedProperties)
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
public void deleted(Object bean)
Notified that a bean has been deleted.- Specified by:
deleted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was deleted.
-
softDeleted
public void softDeleted(Object bean)
Notified that a bean has been soft deleted.- Specified by:
softDeleted
in interfaceBeanPersistListener
- Parameters:
bean
- The bean that was deleted.
-
-