mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11032: Load file in to object graph
Added facility to load an object graph from an XML input stream. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31568 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
package org.alfresco.util.schemacomp.model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.util.schemacomp.DbObjectVisitor;
|
||||
@@ -32,9 +33,14 @@ import org.alfresco.util.schemacomp.Result.Strength;
|
||||
*/
|
||||
public class PrimaryKey extends AbstractDbObject
|
||||
{
|
||||
private List<String> columnNames;
|
||||
private final List<String> columnNames = new ArrayList<String>();
|
||||
|
||||
|
||||
public PrimaryKey(String name)
|
||||
{
|
||||
super(null, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param table the parent table
|
||||
@@ -44,7 +50,7 @@ public class PrimaryKey extends AbstractDbObject
|
||||
public PrimaryKey(Table table, String name, List<String> columnNames)
|
||||
{
|
||||
super(table, name);
|
||||
this.columnNames = columnNames;
|
||||
this.columnNames.addAll(columnNames);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,7 +66,8 @@ public class PrimaryKey extends AbstractDbObject
|
||||
*/
|
||||
public void setColumnNames(List<String> columnNames)
|
||||
{
|
||||
this.columnNames = columnNames;
|
||||
this.columnNames.clear();
|
||||
this.columnNames.addAll(columnNames);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user