org.eclipse.datatools.modelbase.sql.constraints.impl
Class ForeignKeyImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.ecore.impl.FlatEObjectImpl
org.eclipse.datatools.modelbase.sql.schema.impl.EModelElementImpl
org.eclipse.datatools.modelbase.sql.schema.impl.ENamedElementImpl
org.eclipse.datatools.modelbase.sql.schema.impl.SQLObjectImpl
org.eclipse.datatools.modelbase.sql.constraints.impl.ConstraintImpl
org.eclipse.datatools.modelbase.sql.constraints.impl.TableConstraintImpl
org.eclipse.datatools.modelbase.sql.constraints.impl.ReferenceConstraintImpl
org.eclipse.datatools.modelbase.sql.constraints.impl.ForeignKeyImpl
- All Implemented Interfaces:
- Constraint, ForeignKey, ReferenceConstraint, TableConstraint, SQLObject, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject
- Direct Known Subclasses:
- JDBCForeignKey, SybaseASABaseForeignKeyImpl, SybaseASECatalogForeignKey
public class ForeignKeyImpl
- extends ReferenceConstraintImpl
- implements ForeignKey
An implementation of the model object 'Foreign Key'.
The following features are implemented:
| Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter> |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
org.eclipse.emf.ecore.InternalEObject.EStore |
| Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
ELAST_EOBJECT_FLAG |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
|
Method Summary |
BaseTable |
basicGetReferencedTable()
|
UniqueConstraint |
basicGetUniqueConstraint()
|
Index |
basicGetUniqueIndex()
|
org.eclipse.emf.common.notify.NotificationChain |
basicSetReferencedTable(BaseTable newReferencedTable,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
org.eclipse.emf.common.notify.NotificationChain |
basicSetUniqueConstraint(UniqueConstraint newUniqueConstraint,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
org.eclipse.emf.common.notify.NotificationChain |
basicSetUniqueIndex(Index newUniqueIndex,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
void |
eUnset(int featureID)
|
MatchType |
getMatch()
|
ReferentialActionType |
getOnDelete()
|
ReferentialActionType |
getOnUpdate()
|
org.eclipse.emf.common.util.EList |
getReferencedMembers()
|
BaseTable |
getReferencedTable()
|
UniqueConstraint |
getUniqueConstraint()
|
Index |
getUniqueIndex()
|
void |
setMatch(MatchType newMatch)
|
void |
setOnDelete(ReferentialActionType newOnDelete)
|
void |
setOnUpdate(ReferentialActionType newOnUpdate)
|
void |
setReferencedTable(BaseTable newReferencedTable)
|
void |
setUniqueConstraint(UniqueConstraint newUniqueConstraint)
|
void |
setUniqueIndex(Index newUniqueIndex)
|
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.datatools.modelbase.sql.schema.impl.SQLObjectImpl |
addEAnnotation, addEAnnotationDetail, getComments, getDependencies, getDescription, getEAnnotation, getEAnnotationDetail, getExtensions, getLabel, getPrivileges, removeEAnnotationDetail, setAnnotationDetail, setDescription, setLabel |
| Methods inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl |
eIsProxy, eProxyURI, eSetProxyURI |
| Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver |
| Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset |
| Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
eNotificationRequired, eNotify |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.datatools.modelbase.sql.schema.SQLObject |
addEAnnotation, addEAnnotationDetail, getComments, getDependencies, getDescription, getEAnnotation, getEAnnotationDetail, getExtensions, getLabel, getPrivileges, 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 |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
eNotificationRequired |
getMatch
public MatchType getMatch()
-
- Specified by:
getMatch in interface ForeignKey
- Returns:
- the value of the 'Match' attribute.
- See Also:
MatchType,
ForeignKey.setMatch(MatchType),
SQLConstraintsPackage.getForeignKey_Match()
setMatch
public void setMatch(MatchType newMatch)
-
- Specified by:
setMatch in interface ForeignKey
- Parameters:
newMatch - the new value of the 'Match' attribute.- See Also:
MatchType,
ForeignKey.getMatch()
getOnUpdate
public ReferentialActionType getOnUpdate()
-
- Specified by:
getOnUpdate in interface ForeignKey
- Returns:
- the value of the 'On Update' attribute.
- See Also:
ReferentialActionType,
ForeignKey.setOnUpdate(ReferentialActionType),
SQLConstraintsPackage.getForeignKey_OnUpdate()
setOnUpdate
public void setOnUpdate(ReferentialActionType newOnUpdate)
-
- Specified by:
setOnUpdate in interface ForeignKey
- Parameters:
newOnUpdate - the new value of the 'On Update' attribute.- See Also:
ReferentialActionType,
ForeignKey.getOnUpdate()
getOnDelete
public ReferentialActionType getOnDelete()
-
- Specified by:
getOnDelete in interface ForeignKey
- Returns:
- the value of the 'On Delete' attribute.
- See Also:
ReferentialActionType,
ForeignKey.setOnDelete(ReferentialActionType),
SQLConstraintsPackage.getForeignKey_OnDelete()
setOnDelete
public void setOnDelete(ReferentialActionType newOnDelete)
-
- Specified by:
setOnDelete in interface ForeignKey
- Parameters:
newOnDelete - the new value of the 'On Delete' attribute.- See Also:
ReferentialActionType,
ForeignKey.getOnDelete()
getUniqueConstraint
public UniqueConstraint getUniqueConstraint()
-
- Specified by:
getUniqueConstraint in interface ForeignKey
- Returns:
- the value of the 'Unique Constraint' reference.
- See Also:
ForeignKey.setUniqueConstraint(UniqueConstraint),
SQLConstraintsPackage.getForeignKey_UniqueConstraint(),
UniqueConstraint.getForeignKey()
basicGetUniqueConstraint
public UniqueConstraint basicGetUniqueConstraint()
-
basicSetUniqueConstraint
public org.eclipse.emf.common.notify.NotificationChain basicSetUniqueConstraint(UniqueConstraint newUniqueConstraint,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
setUniqueConstraint
public void setUniqueConstraint(UniqueConstraint newUniqueConstraint)
-
- Specified by:
setUniqueConstraint in interface ForeignKey
- Parameters:
newUniqueConstraint - the new value of the 'Unique Constraint' reference.- See Also:
ForeignKey.getUniqueConstraint()
getReferencedMembers
public org.eclipse.emf.common.util.EList getReferencedMembers()
-
- Specified by:
getReferencedMembers in interface ForeignKey
- Returns:
- the value of the 'Referenced Members' reference list.
- See Also:
SQLConstraintsPackage.getForeignKey_ReferencedMembers()
getUniqueIndex
public Index getUniqueIndex()
-
- Specified by:
getUniqueIndex in interface ForeignKey
- Returns:
- the value of the 'Unique Index' reference.
- See Also:
ForeignKey.setUniqueIndex(Index),
SQLConstraintsPackage.getForeignKey_UniqueIndex(),
Index.getForeignKey()
basicGetUniqueIndex
public Index basicGetUniqueIndex()
-
basicSetUniqueIndex
public org.eclipse.emf.common.notify.NotificationChain basicSetUniqueIndex(Index newUniqueIndex,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
setUniqueIndex
public void setUniqueIndex(Index newUniqueIndex)
-
- Specified by:
setUniqueIndex in interface ForeignKey
- Parameters:
newUniqueIndex - the new value of the 'Unique Index' reference.- See Also:
ForeignKey.getUniqueIndex()
getReferencedTable
public BaseTable getReferencedTable()
-
- Specified by:
getReferencedTable in interface ForeignKey
- Returns:
- the value of the 'Referenced Table' reference.
- See Also:
ForeignKey.setReferencedTable(BaseTable),
SQLConstraintsPackage.getForeignKey_ReferencedTable(),
BaseTable.getReferencingForeignKeys()
basicGetReferencedTable
public BaseTable basicGetReferencedTable()
-
basicSetReferencedTable
public org.eclipse.emf.common.notify.NotificationChain basicSetReferencedTable(BaseTable newReferencedTable,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
setReferencedTable
public void setReferencedTable(BaseTable newReferencedTable)
-
- Specified by:
setReferencedTable in interface ForeignKey
- Parameters:
newReferencedTable - the new value of the 'Referenced Table' reference.- See Also:
ForeignKey.getReferencedTable()
eInverseAdd
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
- Overrides:
eInverseAdd in class TableConstraintImpl
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
-
- Overrides:
eInverseRemove in class TableConstraintImpl
eGet
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
-
- Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject- Overrides:
eGet in class ReferenceConstraintImpl
eSet
public void eSet(int featureID,
java.lang.Object newValue)
-
- Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject- Overrides:
eSet in class ReferenceConstraintImpl
eUnset
public void eUnset(int featureID)
-
- Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject- Overrides:
eUnset in class ReferenceConstraintImpl
eIsSet
public boolean eIsSet(int featureID)
-
- Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject- Overrides:
eIsSet in class ReferenceConstraintImpl
toString
public java.lang.String toString()
-
- Overrides:
toString in class ConstraintImpl