All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mil.nga.geopackage.user.UserUniqueConstraint Maven / Gradle / Ivy

There is a newer version: 6.6.7
Show newest version
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