/** * Get changed values. Null is returned if nothing has changed * * @param field * @return */ public static Collection<?> getChanged(Collection<?> field) { if (field instanceof Proxy) { return ((Proxy) field).getChangeTracker().getChanged(); } return null; }
/** * Get added values. If the item is not a proxy it is returned as a collection * * @param field * @return */ public static Object getChanged(Object field) { if (field instanceof Proxy) { ChangeTracker tracker = ((Proxy) field).getChangeTracker(); if (tracker == null) { return field; } Iterator<?> resultItr = tracker.getChanged().iterator(); if (resultItr.hasNext()) { return resultItr.next(); } } return null; } }
Collection change = ct.getChanged(); boolean canChange = val.getForeignKey().isLogical(); Object mkey;
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); boolean canChange = val.getForeignKey().isLogical(); Object mkey;
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); if (!change.isEmpty()) { Row changeRow = rm.getSecondaryRow(field.getTable(),
Collection change = ct.getChanged(); boolean canChange = val.getForeignKey().isLogical(); Object mkey;
Collection change = ct.getChanged(); boolean canChange = val.getForeignKey().isLogical(); Object mkey;
Collection change = ct.getChanged(); boolean canChange = val.getForeignKey().isLogical(); Object mkey;
preFlushPCs(fmd.getElement(), ct.getAdded(), logical, call); preFlushPCs(fmd.getElement(), ct.getChanged(), logical, call); flushed = true;
preFlushPCs(fmd.getElement(), ct.getAdded(), logical, call); preFlushPCs(fmd.getElement(), ct.getChanged(), logical, call); flushed = true;
preFlushPCs(fmd.getElement(), ct.getAdded(), logical, call); preFlushPCs(fmd.getElement(), ct.getChanged(), logical, call); flushed = true;