Module io.ebean.api

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 Details

    • AbstractBeanPersistListener

      public AbstractBeanPersistListener()
  • Method Details

    • inserted

      public void inserted(Object bean)
      Notified that a bean has been inserted.
      Specified by:
      inserted in interface BeanPersistListener
      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 interface BeanPersistListener
      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 interface BeanPersistListener
      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 interface BeanPersistListener
      Parameters:
      bean - The bean that was deleted.