mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-10772: schema comparator
Compares two abstract database schemas. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31312 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,8 +20,12 @@ package org.alfresco.util.schemacomp.model;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.util.schemacomp.Differences;
|
||||
import org.alfresco.util.schemacomp.SchemaUtils;
|
||||
|
||||
/**
|
||||
* TODO: comment me!
|
||||
* Primary key on a table.
|
||||
*
|
||||
* @author Matt Ward
|
||||
*/
|
||||
public class PrimaryKey extends AbstractDbObject
|
||||
@@ -68,4 +72,11 @@ public class PrimaryKey extends AbstractDbObject
|
||||
else if (!this.columnNames.equals(other.columnNames)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doDiff(DbObject right, Differences differences)
|
||||
{
|
||||
PrimaryKey rightPK = (PrimaryKey) right;
|
||||
SchemaUtils.compareSimpleCollections(columnNames, rightPK.columnNames, differences);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user