|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.util.schemacomp.DefaultComparisonUtils
public class DefaultComparisonUtils
A collection of utility methods for determining differences between two database schemas.
| Nested Class Summary | |
|---|---|
static class |
DefaultComparisonUtils.EquivalentObjectSeeker
|
| Constructor Summary | |
|---|---|
DefaultComparisonUtils()
|
|
| Method Summary | |
|---|---|
void |
compareCollections(java.util.Collection leftCollection,
java.util.Collection rightCollection,
DiffContext ctx)
Compare collections, reporting differences using the default Difference.Strength |
void |
compareCollections(java.util.Collection leftCollection,
java.util.Collection rightCollection,
DiffContext ctx,
Result.Strength strength)
Compare collections of DbObjects using their DbObject#diff(DbObject, Results) method. |
void |
compareSimple(DbProperty left,
DbProperty right,
DiffContext ctx)
Compare two simple objects. |
void |
compareSimple(DbProperty leftProperty,
DbProperty rightProperty,
DiffContext ctx,
Result.Strength strength)
Compare two 'simple' (i.e. |
void |
compareSimpleCollections(DbProperty leftProp,
DbProperty rightProp,
DiffContext ctx,
Result.Strength strength)
|
java.util.List |
findEquivalentObjects(DbObject rootObject,
DbObject objToMatch)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultComparisonUtils()
| Method Detail |
|---|
public java.util.List findEquivalentObjects(DbObject rootObject,
DbObject objToMatch)
findEquivalentObjects in interface ComparisonUtils
public void compareSimpleCollections(DbProperty leftProp,
DbProperty rightProp,
DiffContext ctx,
Result.Strength strength)
compareSimpleCollections in interface ComparisonUtils
public void compareCollections(java.util.Collection leftCollection,
java.util.Collection rightCollection,
DiffContext ctx)
Difference.Strength
compareCollections in interface ComparisonUtils#compareCollections(Collection, Collection, Results, Strength)
public void compareCollections(java.util.Collection leftCollection,
java.util.Collection rightCollection,
DiffContext ctx,
Result.Strength strength)
DbObjects using their DbObject#diff(DbObject, Results) method.
Differences are reported using the specified Difference.Strength.
compareCollections in interface ComparisonUtilsleftCollection - rightCollection - differences - strength -
public void compareSimple(DbProperty left,
DbProperty right,
DiffContext ctx)
compareSimple in interface ComparisonUtils#compareSimple(Object, Object, Results, Strength)
public void compareSimple(DbProperty leftProperty,
DbProperty rightProperty,
DiffContext ctx,
Result.Strength strength)
DbObject objects) using their Object.equals(Object) method
to decide if there is a difference. Differences are reported using the Result.Strength specified.
compareSimple in interface ComparisonUtilsleft - right - differences - strength -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||