org.eclipse.wst.rdb.internal.models.sql.datatypes
Interface AttributeDefinition

All Superinterfaces:
org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, SQLObject, TypedElement
All Known Implementing Classes:
AttributeDefinitionImpl

public interface AttributeDefinition
extends TypedElement

A representation of the model object 'Attribute Definition'. 4.13 Columns, fields, and attributes The terms column, field, and attribute refer to structural components of tables, row types, and structured types, respectively, in analogous fashion. As the structure of a table consists of one or more columns, so does the structure of a row type consist of one or more fields and that of a structured type one or more attributes. Every structural element, whether a column, a field, or an attribute, is primarily a name paired with a declared type. The elements of a structure are ordered. Elements in different positions in the same structure can have the same declared type but not the same name. Although the elements of a structure are distinguished from each other by name, in some circumstances the compatibility of two structures (for the purpose at hand) is determined solely by considering the declared types of each pair of elements at the same ordinal position. An attribute A is described by an attribute descriptor. An attribute descriptor includes: - The name of the attribute. - The data type descriptor of the declared type of A. - The ordinal position of A within the structured type that contains it. - The value of the implicit or explicit of A. - If the data type of the attribute is a reference type, then an indication of whether reference values shall be checked, and the , if specified or implied. - The name of the structured type defined by the that defines A.

The following features are supported:

See Also:
SQLDataTypesPackage.getAttributeDefinition()

Method Summary
 java.lang.String getDefaultValue()
          Returns the value of the 'Default Value' attribute.
 ReferentialActionType getScopeCheck()
          Returns the value of the 'Scope Check' attribute.
 boolean isScopeChecked()
          Returns the value of the 'Scope Checked' attribute.
 void setDefaultValue(java.lang.String value)
          Sets the value of the 'Default Value' attribute.
 void setScopeCheck(ReferentialActionType value)
          Sets the value of the 'Scope Check' attribute.
 void setScopeChecked(boolean value)
          Sets the value of the 'Scope Checked' attribute.
 
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.schema.TypedElement
getContainedType, getDataType, getReferencedType, setContainedType, setDataType, setReferencedType
 
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

getScopeCheck

public ReferentialActionType getScopeCheck()
Returns the value of the 'Scope Check' attribute. The literals are from the enumeration ReferentialActionType.

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

Returns:
the value of the 'Scope Check' attribute.
See Also:
ReferentialActionType, setScopeCheck(ReferentialActionType), SQLDataTypesPackage.getAttributeDefinition_ScopeCheck()

setScopeCheck

public void setScopeCheck(ReferentialActionType value)
Sets the value of the 'Scope Check' attribute.
Parameters:
value - the new value of the 'Scope Check' attribute.
See Also:
ReferentialActionType, getScopeCheck()

isScopeChecked

public boolean isScopeChecked()
Returns the value of the 'Scope Checked' attribute.

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

Returns:
the value of the 'Scope Checked' attribute.
See Also:
setScopeChecked(boolean), SQLDataTypesPackage.getAttributeDefinition_ScopeChecked()

setScopeChecked

public void setScopeChecked(boolean value)
Sets the value of the 'Scope Checked' attribute.
Parameters:
value - the new value of the 'Scope Checked' attribute.
See Also:
isScopeChecked()

getDefaultValue

public java.lang.String getDefaultValue()
Returns the value of the 'Default Value' attribute.

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

Returns:
the value of the 'Default Value' attribute.
See Also:
setDefaultValue(String), SQLDataTypesPackage.getAttributeDefinition_DefaultValue()

setDefaultValue

public void setDefaultValue(java.lang.String value)
Sets the value of the 'Default Value' attribute.
Parameters:
value - the new value of the 'Default Value' attribute.
See Also:
getDefaultValue()