mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-7260: unit tests, bug fixes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31455 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,7 +21,7 @@ package org.alfresco.util.schemacomp.model;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.util.schemacomp.Differences;
|
||||
import org.alfresco.util.schemacomp.SchemaUtils;
|
||||
import org.alfresco.util.schemacomp.Result.Strength;
|
||||
|
||||
/**
|
||||
* Primary key on a table.
|
||||
@@ -33,6 +33,17 @@ public class PrimaryKey extends AbstractDbObject
|
||||
private List<String> columnNames;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param name
|
||||
* @param columnNames
|
||||
*/
|
||||
public PrimaryKey(String name, List<String> columnNames)
|
||||
{
|
||||
super(name);
|
||||
this.columnNames = columnNames;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the columnNames
|
||||
*/
|
||||
@@ -74,9 +85,9 @@ public class PrimaryKey extends AbstractDbObject
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doDiff(DbObject right, Differences differences)
|
||||
protected void doDiff(DbObject right, Differences differences, Strength strength)
|
||||
{
|
||||
PrimaryKey rightPK = (PrimaryKey) right;
|
||||
SchemaUtils.compareSimpleCollections(columnNames, rightPK.columnNames, differences);
|
||||
comparisonUtils.compareSimpleCollections(columnNames, rightPK.columnNames, differences, strength);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user