org.eclipse.datatools.enablement.sybase.asa.catalog
Class SybaseASACatalogForeignKey

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.ecore.impl.FlatEObjectImpl
                  extended by org.eclipse.datatools.modelbase.sql.schema.impl.EModelElementImpl
                      extended by org.eclipse.datatools.modelbase.sql.schema.impl.ENamedElementImpl
                          extended by org.eclipse.datatools.modelbase.sql.schema.impl.SQLObjectImpl
                              extended by org.eclipse.datatools.modelbase.sql.constraints.impl.ConstraintImpl
                                  extended by org.eclipse.datatools.modelbase.sql.constraints.impl.TableConstraintImpl
                                      extended by org.eclipse.datatools.modelbase.sql.constraints.impl.ReferenceConstraintImpl
                                          extended by org.eclipse.datatools.modelbase.sql.constraints.impl.ForeignKeyImpl
                                              extended by org.eclipse.datatools.enablement.sybase.asa.models.sybaseasabasesqlmodel.impl.SybaseASABaseForeignKeyImpl
                                                  extended by org.eclipse.datatools.enablement.sybase.asa.models.sybaseasasqlmodel.impl.SybaseASAForeignKeyImpl
                                                      extended by org.eclipse.datatools.enablement.sybase.asa.catalog.SybaseASACatalogForeignKey
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ICatalogObject, SybaseASABaseForeignKey, SybaseASAForeignKey, 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

public class SybaseASACatalogForeignKey
extends SybaseASAForeignKeyImpl
implements ICatalogObject, org.eclipse.core.runtime.IAdaptable


Nested Class Summary
 
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>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
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
 
Constructor Summary
SybaseASACatalogForeignKey()
           
 
Method Summary
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 Database getCatalogDatabase()
           
 java.sql.Connection getConnection()
           
 java.lang.String getDescription()
          Returns the value of the 'Description' attribute.
 org.eclipse.emf.common.util.EList getMembers()
          Returns the value of the 'Members' reference list.
 ReferentialActionType getOnDelete()
          Returns the value of the 'On Delete' attribute.
 ReferentialActionType getOnUpdate()
          Returns the value of the 'On Update' attribute.
 org.eclipse.emf.common.util.EList getReferencedMembers()
          Returns the value of the 'Referenced Members' reference list.
 BaseTable getReferencedTable()
          Returns the value of the 'Referenced Table' reference.
 java.lang.String getRoleName()
           
 UniqueConstraint getUniqueConstraint()
          Returns the value of the 'Unique Constraint' reference.
 boolean isCheckOnCommit()
           
 boolean isClustered()
           
 boolean isNullable()
           
 void refresh()
           
 
Methods inherited from class org.eclipse.datatools.enablement.sybase.asa.models.sybaseasasqlmodel.impl.SybaseASAForeignKeyImpl
eGet, eIsSet, eSet, eUnset, setCheckOnCommit, setNullable, toString
 
Methods inherited from class org.eclipse.datatools.enablement.sybase.asa.models.sybaseasabasesqlmodel.impl.SybaseASABaseForeignKeyImpl
setClustered, setRoleName
 
Methods inherited from class org.eclipse.datatools.modelbase.sql.constraints.impl.ForeignKeyImpl
basicGetReferencedTable, basicGetUniqueConstraint, basicGetUniqueIndex, basicSetReferencedTable, basicSetUniqueConstraint, basicSetUniqueIndex, eInverseAdd, eInverseRemove, getMatch, getUniqueIndex, setMatch, setOnDelete, setOnUpdate, setReferencedTable, setUniqueConstraint, setUniqueIndex
 
Methods inherited from class org.eclipse.datatools.modelbase.sql.constraints.impl.TableConstraintImpl
basicSetBaseTable, eBasicRemoveFromContainerFeature, getBaseTable, setBaseTable
 
Methods inherited from class org.eclipse.datatools.modelbase.sql.constraints.impl.ConstraintImpl
isDeferrable, isEnforced, isInitiallyDeferred, setDeferrable, setEnforced, setInitiallyDeferred
 
Methods inherited from class org.eclipse.datatools.modelbase.sql.schema.impl.SQLObjectImpl
addEAnnotation, addEAnnotationDetail, getComments, getDependencies, getEAnnotation, getEAnnotationDetail, getExtensions, getLabel, getPrivileges, removeEAnnotationDetail, setAnnotationDetail, setDescription, setLabel
 
Methods inherited from class org.eclipse.datatools.modelbase.sql.schema.impl.ENamedElementImpl
eContents, eCrossReferences, getName, getNameGen, setName
 
Methods inherited from class org.eclipse.datatools.modelbase.sql.schema.impl.EModelElementImpl
eObjectForURIFragmentSegment, eURIFragmentSegment, getEAnnotations
 
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, eInvoke, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, 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.enablement.sybase.asa.models.sybaseasabasesqlmodel.SybaseASABaseForeignKey
setClustered, setRoleName
 
Methods inherited from interface org.eclipse.datatools.modelbase.sql.constraints.ForeignKey
getMatch, getUniqueIndex, setMatch, setOnDelete, setOnUpdate, setReferencedTable, setUniqueConstraint, setUniqueIndex
 
Methods inherited from interface org.eclipse.datatools.modelbase.sql.constraints.TableConstraint
getBaseTable, setBaseTable
 
Methods inherited from interface org.eclipse.datatools.modelbase.sql.constraints.Constraint
isDeferrable, isEnforced, isInitiallyDeferred, setDeferrable, setEnforced, setInitiallyDeferred
 
Methods inherited from interface org.eclipse.datatools.modelbase.sql.schema.SQLObject
addEAnnotation, addEAnnotationDetail, getComments, getDependencies, 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, eInvoke, eIsProxy, 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
 

Constructor Detail

SybaseASACatalogForeignKey

public SybaseASACatalogForeignKey()
Method Detail

getCatalogDatabase

public Database getCatalogDatabase()
Specified by:
getCatalogDatabase in interface ICatalogObject

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface ICatalogObject

refresh

public void refresh()
Specified by:
refresh in interface ICatalogObject

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

getMembers

public org.eclipse.emf.common.util.EList getMembers()
Description copied from interface: ReferenceConstraint
Returns the value of the 'Members' reference list. The list contents are of type Column.

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

Specified by:
getMembers in interface ReferenceConstraint
Overrides:
getMembers in class org.eclipse.datatools.modelbase.sql.constraints.impl.ReferenceConstraintImpl
Returns:
the value of the 'Members' reference list.
See Also:
SQLConstraintsPackage.getReferenceConstraint_Members()

isClustered

public boolean isClustered()
Description copied from class: SybaseASABaseForeignKeyImpl

Specified by:
isClustered in interface SybaseASABaseForeignKey
Overrides:
isClustered in class SybaseASABaseForeignKeyImpl
Returns:
the value of the 'Clustered' attribute.
See Also:
SybaseASABaseForeignKey.setClustered(boolean), SybaseasabasesqlmodelPackage.getSybaseASABaseForeignKey_Clustered()

getReferencedMembers

public org.eclipse.emf.common.util.EList getReferencedMembers()
Description copied from interface: ForeignKey
Returns the value of the 'Referenced Members' reference list. The list contents are of type Column.

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

Specified by:
getReferencedMembers in interface ForeignKey
Overrides:
getReferencedMembers in class org.eclipse.datatools.modelbase.sql.constraints.impl.ForeignKeyImpl
Returns:
the value of the 'Referenced Members' reference list.
See Also:
SQLConstraintsPackage.getForeignKey_ReferencedMembers()

getOnUpdate

public ReferentialActionType getOnUpdate()
Description copied from interface: ForeignKey
Returns the value of the 'On Update' attribute. The default value is "NO_ACTION". The literals are from the enumeration ReferentialActionType.

If the meaning of the 'On Update' attribute isn't clear, there really should be more of a description here...

Specified by:
getOnUpdate in interface ForeignKey
Overrides:
getOnUpdate in class org.eclipse.datatools.modelbase.sql.constraints.impl.ForeignKeyImpl
Returns:
the value of the 'On Update' attribute.
See Also:
ReferentialActionType, ForeignKey.setOnUpdate(ReferentialActionType), SQLConstraintsPackage.getForeignKey_OnUpdate()

getOnDelete

public ReferentialActionType getOnDelete()
Description copied from interface: ForeignKey
Returns the value of the 'On Delete' attribute. The default value is "NO_ACTION". The literals are from the enumeration ReferentialActionType.

If the meaning of the 'On Delete' attribute isn't clear, there really should be more of a description here...

Specified by:
getOnDelete in interface ForeignKey
Overrides:
getOnDelete in class org.eclipse.datatools.modelbase.sql.constraints.impl.ForeignKeyImpl
Returns:
the value of the 'On Delete' attribute.
See Also:
ReferentialActionType, ForeignKey.setOnDelete(ReferentialActionType), SQLConstraintsPackage.getForeignKey_OnDelete()

getReferencedTable

public BaseTable getReferencedTable()
Description copied from interface: ForeignKey
Returns the value of the 'Referenced Table' reference. It is bidirectional and its opposite is 'Referencing Foreign Keys'.

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

Specified by:
getReferencedTable in interface ForeignKey
Overrides:
getReferencedTable in class org.eclipse.datatools.modelbase.sql.constraints.impl.ForeignKeyImpl
Returns:
the value of the 'Referenced Table' reference.
See Also:
ForeignKey.setReferencedTable(BaseTable), SQLConstraintsPackage.getForeignKey_ReferencedTable(), BaseTable.getReferencingForeignKeys()

getRoleName

public java.lang.String getRoleName()
Description copied from class: SybaseASABaseForeignKeyImpl

Specified by:
getRoleName in interface SybaseASABaseForeignKey
Overrides:
getRoleName in class SybaseASABaseForeignKeyImpl
Returns:
the value of the 'Role Name' attribute.
See Also:
SybaseASABaseForeignKey.setRoleName(String), SybaseasabasesqlmodelPackage.getSybaseASABaseForeignKey_RoleName()

getDescription

public java.lang.String getDescription()
Description copied from interface: SQLObject
Returns the value of the 'Description' attribute.

If the meaning of the 'Description' attribute isn't clear, there really should be more of a description here...

Specified by:
getDescription in interface SQLObject
Overrides:
getDescription in class org.eclipse.datatools.modelbase.sql.schema.impl.SQLObjectImpl
Returns:
the value of the 'Description' attribute.
See Also:
SQLObject.setDescription(String), SQLSchemaPackage.getSQLObject_Description()

getUniqueConstraint

public UniqueConstraint getUniqueConstraint()
Description copied from interface: ForeignKey
Returns the value of the 'Unique Constraint' reference. It is bidirectional and its opposite is 'Foreign Key'.

If the meaning of the 'Unique Constraint' reference isn't clear, there really should be more of a description here...

Specified by:
getUniqueConstraint in interface ForeignKey
Overrides:
getUniqueConstraint in class org.eclipse.datatools.modelbase.sql.constraints.impl.ForeignKeyImpl
Returns:
the value of the 'Unique Constraint' reference.
See Also:
ForeignKey.setUniqueConstraint(UniqueConstraint), SQLConstraintsPackage.getForeignKey_UniqueConstraint(), UniqueConstraint.getForeignKey()

isCheckOnCommit

public boolean isCheckOnCommit()
Description copied from class: SybaseASAForeignKeyImpl

Specified by:
isCheckOnCommit in interface SybaseASAForeignKey
Overrides:
isCheckOnCommit in class SybaseASAForeignKeyImpl
Returns:
the value of the 'Check On Commit' attribute.
See Also:
SybaseASAForeignKey.setCheckOnCommit(boolean), SybaseasasqlmodelPackage.getSybaseASAForeignKey_CheckOnCommit()

isNullable

public boolean isNullable()
Description copied from class: SybaseASAForeignKeyImpl

Specified by:
isNullable in interface SybaseASAForeignKey
Overrides:
isNullable in class SybaseASAForeignKeyImpl
Returns:
the value of the 'Nullable' attribute.
See Also:
SybaseASAForeignKey.setNullable(boolean), SybaseasasqlmodelPackage.getSybaseASAForeignKey_Nullable()

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable