mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#88 - v4 - Breaking API Change - BeanPersistRequest.getOldValues() replaced with ... Map<String,ValuePair> getUpdatedValues()
This commit is contained in:
1 parent
fc628d336d
commit
2344f57f84
13 files changed
+377
-86
No files matched your search
@@ -2,6 +2,7 @@ package com.avaje.ebeaninternal.server.deploy;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import com.avaje.ebean.event.BeanPersistListener;
|
||||
|
||||
@@ -11,6 +12,7 @@ import com.avaje.ebean.event.BeanPersistListener;
|
||||
public class ChainedBeanPersistListener<T> implements BeanPersistListener<T> {
|
||||
|
||||
private final List<BeanPersistListener<T>> list;
|
||||
|
||||
private final BeanPersistListener<T>[] chain;
|
||||
|
||||
/**
|
||||
@@ -109,10 +111,10 @@ public class ChainedBeanPersistListener<T> implements BeanPersistListener<T> {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean updated(T bean) {
|
||||
public boolean updated(T bean, Set<String> updatedProperties) {
|
||||
boolean notifyCluster = false;
|
||||
for (int i = 0; i < chain.length; i++) {
|
||||
if (chain[i].updated(bean)) {
|
||||
if (chain[i].updated(bean, updatedProperties)) {
|
||||
notifyCluster = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user