#709 - Refactor: BeanCollection internals, rename method isEmptyAndUntouched() to isSkipSave(), remove 'touched' flag

This commit is contained in:
Robin Bygrave committed 2016-05-18 11:19:01 +12:00
1 parent 1c9b974427
commit 362ceea79b
8 files changed
+32 -65

No files matched your search

@@ -238,13 +238,13 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
/**
* Return true if this is considered 'empty' from a save perspective.
*/
public boolean isEmptyBeanCollection(EntityBean bean, boolean insertedParent) {
public boolean isSkipSaveBeanCollection(EntityBean bean, boolean insertedParent) {
Object val = getValue(bean);
if (val == null) {
return true;
}
if ((val instanceof BeanCollection<?>)) {
return ((BeanCollection<?>) val).isEmptyAndUntouched();
return ((BeanCollection<?>) val).isSkipSave();
}
if (insertedParent) {
// check 'vanilla' collection types