org.eclipse.wst.rdb.internal.models.sql.constraints
Interface UniqueConstraint

All Superinterfaces:
Constraint, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, ReferenceConstraint, SQLObject, TableConstraint
All Known Subinterfaces:
PrimaryKey
All Known Implementing Classes:
UniqueConstraintImpl

public interface UniqueConstraint
extends ReferenceConstraint

A representation of the model object 'Unique Constraint'. Section 4.17.2 A unique constraint is satisfied if and only if no two rows in a table have the same non-null values in the unique columns. Section 11.7 3) If UCL is specified, then a) Each in the shall identify a column of T, and the same column shall not be identified more than once. b) The set of columns in the shall be distinct from the unique columns of any other unique constraint descriptor that is included in the base table descriptor of T.

The following features are supported:

See Also:
SQLConstraintsPackage.getUniqueConstraint()

Method Summary
 org.eclipse.emf.common.util.EList getForeignKey()
          Returns the value of the 'Foreign Key' reference list.
 
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.constraints.ReferenceConstraint
getMembers
 
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.constraints.TableConstraint
getBaseTable, setBaseTable
 
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.constraints.Constraint
isDeferrable, isEnforced, isInitiallyDeferred, setDeferrable, setEnforced, setInitiallyDeferred
 
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.schema.SQLObject
addEAnnotation, addEAnnotationDetail, getDependencies, getDescription, getEAnnotation, getEAnnotationDetail, getLabel, removeEAnnotationDetail, setAnnotationDetail, setDescription, setLabel
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getForeignKey

public org.eclipse.emf.common.util.EList getForeignKey()
Returns the value of the 'Foreign Key' reference list. The list contents are of type ForeignKey. It is bidirectional and its opposite is 'Unique Constraint'.

If the meaning of the 'Foreign Key' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Foreign Key' reference list.
See Also:
SQLConstraintsPackage.getUniqueConstraint_ForeignKey(), ForeignKey.getUniqueConstraint()