mil.nga.geopackage.user.UserUniqueConstraint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geopackage-core Show documentation
Show all versions of geopackage-core Show documentation
Core functionality for GeoPackage implementations
package mil.nga.geopackage.user;
import java.util.ArrayList;
import java.util.List;
/**
* User table unique constraint for one or more columns
*
* @param
*
* @author osbornb
*/
public class UserUniqueConstraint {
/**
* Columns included in the unique constraint
*/
private final List columns = new ArrayList();
/**
* Constructor
*/
public UserUniqueConstraint() {
}
/**
* Constructor
*
* @param columns
*/
public UserUniqueConstraint(
@SuppressWarnings("unchecked") TColumn... columns) {
for (TColumn column : columns) {
add(column);
}
}
/**
* Add a column
*
* @param column
*/
public void add(TColumn column) {
columns.add(column);
}
/**
* Get the columns
*
* @return columns
*/
public List getColumns() {
return columns;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy