/*
* JBoss, Home of Professional Open Source.
*
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing.
*
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors.
*/
package org.teiid.designer.metamodels.relational.aspects.validation;
import org.teiid.designer.core.metamodel.aspect.MetamodelEntity;
import org.teiid.designer.core.validation.ValidationRuleSet;
/**
* UniqueKeyAspect
*
* @since 8.0
*/
public abstract class UniqueKeyAspect extends RelationalEntityAspect {
/**
* Construct an instance of UniqueKeyAspect.
* @param entity
*/
public UniqueKeyAspect(MetamodelEntity entity){
super(entity);
}
/**
* Get all the validation rules for unique key.
*/
@Override
public ValidationRuleSet getValidationRules() {
addRule(UNIQUE_KEY_COLUMNS_RULE);
return super.getValidationRules();
}
}