Package org.alfresco.util.schemacomp
Class Difference
- java.lang.Object
-
- org.alfresco.util.schemacomp.Result
-
- org.alfresco.util.schemacomp.Difference
-
public final class Difference extends Result
Result of a comparison between two database objects.- Author:
- Matt Ward
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDifference.WhereSpecifies the type of differences
-
Constructor Summary
Constructors Constructor Description Difference(Difference.Where where, DbProperty left, DbProperty right)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescribe()A loggable message to describe the comparison result.Stringdescribe(Locale locale)An overload of theResult.describe()that allows you to specify what locale to use for the loggable message that describes the comparison result.DbPropertygetLeft()DbPropertygetRight()Difference.WheregetWhere()StringtoString()
-
-
-
Constructor Detail
-
Difference
public Difference(Difference.Where where, DbProperty left, DbProperty right)
-
-
Method Detail
-
getWhere
public Difference.Where getWhere()
- Returns:
- the where
-
getLeft
public DbProperty getLeft()
- Returns:
- the left
-
getRight
public DbProperty getRight()
- Returns:
- the right
-
describe
public String describe()
Description copied from class:ResultA loggable message to describe the comparison result. Default implementation delegates to toString() but this should generally be overridden as toString() is used in a multitude of contexts.
-
describe
public String describe(Locale locale)
Description copied from class:ResultAn overload of theResult.describe()that allows you to specify what locale to use for the loggable message that describes the comparison result.
-
-