Community
Participate
Working Groups
if (clone instanceof ChangeTracker) {
((ChangeTracker)clone)._persistence_setPropertyChangeListener(null);
}
if(clone instanceof FetchGroupTracker) {
((FetchGroupTracker)clone)._persistence_setFetchGroup(null);
((FetchGroupTracker)clone)._persistence_setSession(null);
clearPrimaryKey(clone);
return clone;
this.containerPolicy.addInto(copyValue, attributeValue, group.getSession());
// if value holder is used, then the value holder shared with original substituted for a new ValueHolder.
getIndirectionPolicy().reset(copy);
setRealAttributeValueInObject(copy, attributeValue);
public void buildCopy(Object copy, Object original, CopyGroup group) {
Object attributeValue = getRealCollectionAttributeValueFromObject(original, group.getSession());
attributeValue = getContainerPolicy().cloneFor(attributeValue);
attributeValue = copyValue;
suite.addTest(new SimpleSerializeFetchGroupTests("copyWithoutPkUseFullGroup"));
suite.addTest(new SimpleSerializeFetchGroupTests("copyNoCascade"));
suite.addTest(new SimpleSerializeFetchGroupTests("copyCascadePrivateParts"));
// The following test commented out due to:
suite.addTest(new SimpleSerializeFetchGroupTests("copyCascadeAllParts"));
// Bug 319426 - Original and copy share ValueHolder.
// Please uncomment when the bug is fixed.
//suite.addTest(new SimpleSerializeFetchGroupTests("copyCascadeAllParts"));
return suite;