public abstract class AbstractBeanPersistListener extends Object implements 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 and Description |
|---|
AbstractBeanPersistListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleted(Object bean)
Notified that a bean has been deleted locally.
|
boolean |
inserted(Object bean)
Notified that a bean has been inserted locally.
|
void |
remoteDelete(Object id)
Notify that a bean was deleted on another node of the cluster.
|
void |
remoteInsert(Object id)
Notify that a bean was inserted on another node of the cluster.
|
void |
remoteUpdate(Object id)
Notify that a bean was updated on another node of the cluster.
|
boolean |
updated(Object bean,
Set<String> updatedProperties)
Notified that a bean has been updated locally.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRegisterForpublic AbstractBeanPersistListener()
public boolean inserted(Object bean)
inserted in interface BeanPersistListenerbean - The bean that was inserted.public boolean updated(Object bean, Set<String> updatedProperties)
updated in interface BeanPersistListenerbean - The bean that was updated.updatedProperties - The properties that were modified by this update.public boolean deleted(Object bean)
deleted in interface BeanPersistListenerbean - The bean that was deleted.public void remoteInsert(Object id)
remoteInsert in interface BeanPersistListenerid - the id value of the inserted beanpublic void remoteUpdate(Object id)
remoteUpdate in interface BeanPersistListenerid - the id value of the updated bean.public void remoteDelete(Object id)
remoteDelete in interface BeanPersistListenerid - the id value of the deleted bean.Copyright © 2015. All rights reserved.