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

All Superinterfaces:
Constraint, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, SQLObject
All Known Subinterfaces:
CheckConstraint, ForeignKey, PrimaryKey, ReferenceConstraint, UniqueConstraint
All Known Implementing Classes:
TableConstraintImpl

public interface TableConstraint
extends Constraint

A representation of the model object 'Table Constraint'. 4.17.2 Table constraints A table constraint is either a unique constraint, a referential constraint or a table check constraint. A table constraint is described by a table constraint descriptor which is either a unique constraint descriptor, a referential constraint descriptor or a table check constraint descriptor. Every table constraint specified for base table T is implicitly a constraint on every subtable of T, by virtue of the fact that every row in a subtable is considered to have a corresponding superrow in every one of its supertables.

The following features are supported:

See Also:
SQLConstraintsPackage.getTableConstraint()

Method Summary
 BaseTable getBaseTable()
          Returns the value of the 'Base Table' container reference.
 void setBaseTable(BaseTable value)
          Sets the value of the 'Base Table' container reference.
 
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

getBaseTable

public BaseTable getBaseTable()
Returns the value of the 'Base Table' container reference. It is bidirectional and its opposite is 'Constraints'.

If the meaning of the 'Base Table' container reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Base Table' container reference.
See Also:
setBaseTable(BaseTable), SQLConstraintsPackage.getTableConstraint_BaseTable(), BaseTable.getConstraints()

setBaseTable

public void setBaseTable(BaseTable value)
Sets the value of the 'Base Table' container reference.
Parameters:
value - the new value of the 'Base Table' container reference.
See Also:
getBaseTable()