#723 - Breaking API - Change BeanPersistListener to return void rather than boolean for inserted(), updated() and deleted()

This commit is contained in:
Robin Bygrave committed 2016-05-23 10:31:24 +12:00
1 parent 676f0d7a24
commit 1c162b9b18
4 files changed
+30 -55

No files matched your search

@@ -53,22 +53,19 @@ public class MyEBasicConfigStartup implements ServerConfigStartup {
return EBasic.class.isAssignableFrom(cls);
}
public boolean inserted(Object bean) {
public void inserted(Object bean) {
insertCount.incrementAndGet();
System.out.println("-- EBasic inserted " + ((EBasic) bean).getId());
return false;
}
public boolean updated(Object bean, Set<String> updatedProperties) {
public void updated(Object bean, Set<String> updatedProperties) {
updateCount.incrementAndGet();
System.out.println("-- EBasic updated " + ((EBasic) bean).getId() + " updatedProperties: " + updatedProperties);
return false;
}
public boolean deleted(Object bean) {
public void deleted(Object bean) {
deleteCount.incrementAndGet();
System.out.println("-- EBasic deleted " + ((EBasic) bean).getId());
return false;
}
}