You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
408 B
19 lines
408 B
package de.kreth.dbmanager;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
public class UniqueConstraint {
|
|
private List<String> names = new ArrayList<>();
|
|
|
|
public UniqueConstraint(ColumnDefinition... defs) {
|
|
for(ColumnDefinition c: defs) {
|
|
names.add(c.getColumnName());
|
|
}
|
|
}
|
|
|
|
public List<String> getNames() {
|
|
return Collections.unmodifiableList(names);
|
|
}
|
|
}
|
|
|