*/
public static KeyRecord createKey(KeyRecord.Type type, String name, Table group, List<Column> elements) {
KeyRecord key = new KeyRecord(type);
key.setName(name);
for (Column column : elements) {
key.addColumn(column);
}
switch (type) {
case Primary:
group.setPrimaryKey(key);
break;