ALF-11519: changed ONLY_IN_LEFT to ONLY_IN_REFERENCE, ONLY_IN_RIGHT to ONLY_IN_TARGET

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2011-11-18 18:25:26 +00:00
parent 29dadc748a
commit b8ea34e7bb
5 changed files with 22 additions and 22 deletions

View File

@@ -102,7 +102,7 @@ public class DefaultComparisonUtils implements ComparisonUtils
{
// No equivalent object in the right hand collection.
// Using rightIndexedProperty would result in index out of bounds error.
differences.add(Where.ONLY_IN_LEFT, leftIndexedProp, rightProp, strength);
differences.add(Where.ONLY_IN_REFERENCE, leftIndexedProp, rightProp, strength);
}
}
@@ -114,7 +114,7 @@ public class DefaultComparisonUtils implements ComparisonUtils
{
DbProperty rightIndexedProp = new DbProperty(rightProp.getDbObject(), rightProp.getPropertyName(), rightIndex);
// No equivalent object in the left hand collection.
differences.add(Where.ONLY_IN_RIGHT, leftProp, rightIndexedProp, strength);
differences.add(Where.ONLY_IN_TARGET, leftProp, rightIndexedProp, strength);
}
}
}
@@ -158,7 +158,7 @@ public class DefaultComparisonUtils implements ComparisonUtils
else
{
// No equivalent object in the right hand collection.
differences.add(Where.ONLY_IN_LEFT, new DbProperty(leftObj, null), null, strength);
differences.add(Where.ONLY_IN_REFERENCE, new DbProperty(leftObj, null), null, strength);
}
}
@@ -170,7 +170,7 @@ public class DefaultComparisonUtils implements ComparisonUtils
if (leftObj == null)
{
// No equivalent object in the left hand collection.
differences.add(Where.ONLY_IN_RIGHT, null, new DbProperty(rightObj, null), strength);
differences.add(Where.ONLY_IN_TARGET, null, new DbProperty(rightObj, null), strength);
}
}
}
@@ -214,12 +214,12 @@ public class DefaultComparisonUtils implements ComparisonUtils
else if (left == null)
{
// right can't be null, or left == right would have been true
where = Where.ONLY_IN_RIGHT;
where = Where.ONLY_IN_TARGET;
}
else if (right == null)
{
// left can't be null, or left == right would have been true
where = Where.ONLY_IN_LEFT;
where = Where.ONLY_IN_REFERENCE;
}
else
{