|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Column'.
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.
A table (see Subclause 4.14, "Tables") is defined on one or more columns and consists of zero or more rows. A column has a name and a declared type. Each row in a table has exactly one value for each column. Each value in a row is a value in the declared type of the column.
NOTE 21: The declared type includes the null value and values in proper subtypes of the declared type. Every column has a nullability characteristic that indicates whether the value from that column can be the null value. The possible values of nullability characteristic are known not nullable and possibly nullable.
A column C is described by a column descriptor. A column descriptor includes:
- The name of the column.
- Whether the name of the column is an implementation-dependent name.
- If the column is based on a domain, then the name of that domain; otherwise, the data type descriptor of the declared type of C.
- The value of
The following features are supported:
SQLTablesPackage.getColumn()
Method Summary | |
java.lang.String |
getDefaultValue()
Returns the value of the 'Default Value' attribute. |
ValueExpression |
getGenerateExpression()
Returns the value of the 'Generate Expression' reference. |
IdentitySpecifier |
getIdentitySpecifier()
Returns the value of the 'Identity Specifier' containment reference. |
ReferentialActionType |
getScopeCheck()
Returns the value of the 'Scope Check' attribute. |
Table |
getTable()
Returns the value of the 'Table' container reference. |
boolean |
isImplementationDependent()
Returns the value of the 'Implementation Dependent' attribute. |
boolean |
isNullable()
Returns the value of the 'Nullable' attribute. |
boolean |
isPartOfForeignKey()
|
boolean |
isPartOfPrimaryKey()
|
boolean |
isPartOfUniqueConstraint()
|
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 |
setGenerateExpression(ValueExpression value)
Sets the value of the ' Generate Expression ' reference. |
void |
setIdentitySpecifier(IdentitySpecifier value)
Sets the value of the ' Identity Specifier ' containment reference. |
void |
setImplementationDependent(boolean value)
Sets the value of the ' Implementation Dependent ' attribute. |
void |
setNullable(boolean value)
Sets the value of the ' Nullable ' 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. |
void |
setTable(Table value)
Sets the value of the ' Table ' container reference. |
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 |
public Table getTable()
Columns
'.
If the meaning of the 'Table' container reference isn't clear, there really should be more of a description here...
setTable(Table)
,
SQLTablesPackage.getColumn_Table()
,
Table.getColumns()
public void setTable(Table value)
Table
' container reference.
value
- the new value of the 'Table' container reference.getTable()
public IdentitySpecifier getIdentitySpecifier()
If the meaning of the 'Identity Specifier' containment reference isn't clear, there really should be more of a description here...
setIdentitySpecifier(IdentitySpecifier)
,
SQLTablesPackage.getColumn_IdentitySpecifier()
public void setIdentitySpecifier(IdentitySpecifier value)
Identity Specifier
' containment reference.
value
- the new value of the 'Identity Specifier' containment reference.getIdentitySpecifier()
public ValueExpression getGenerateExpression()
If the meaning of the 'Generate Expression' reference isn't clear, there really should be more of a description here...
setGenerateExpression(ValueExpression)
,
SQLTablesPackage.getColumn_GenerateExpression()
public void setGenerateExpression(ValueExpression value)
Generate Expression
' reference.
value
- the new value of the 'Generate Expression' reference.getGenerateExpression()
public boolean isImplementationDependent()
"False"
.
If the meaning of the 'Implementation Dependent' attribute isn't clear, there really should be more of a description here...
setImplementationDependent(boolean)
,
SQLTablesPackage.getColumn_ImplementationDependent()
public void setImplementationDependent(boolean value)
Implementation Dependent
' attribute.
value
- the new value of the 'Implementation Dependent' attribute.isImplementationDependent()
public boolean isNullable()
"True"
.
If the meaning of the 'Nullable' attribute isn't clear, there really should be more of a description here...
setNullable(boolean)
,
SQLTablesPackage.getColumn_Nullable()
public void setNullable(boolean value)
Nullable
' attribute.
value
- the new value of the 'Nullable' attribute.isNullable()
public java.lang.String getDefaultValue()
If the meaning of the 'Default Value' attribute isn't clear, there really should be more of a description here...
setDefaultValue(String)
,
SQLTablesPackage.getColumn_DefaultValue()
public void setDefaultValue(java.lang.String value)
Default Value
' attribute.
value
- the new value of the 'Default Value' attribute.getDefaultValue()
public ReferentialActionType getScopeCheck()
"NO_ACTION"
.
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...
ReferentialActionType
,
setScopeCheck(ReferentialActionType)
,
SQLTablesPackage.getColumn_ScopeCheck()
public void setScopeCheck(ReferentialActionType value)
Scope Check
' attribute.
value
- the new value of the 'Scope Check' attribute.ReferentialActionType
,
getScopeCheck()
public boolean isScopeChecked()
If the meaning of the 'Scope Checked' attribute isn't clear, there really should be more of a description here...
setScopeChecked(boolean)
,
SQLTablesPackage.getColumn_ScopeChecked()
public void setScopeChecked(boolean value)
Scope Checked
' attribute.
value
- the new value of the 'Scope Checked' attribute.isScopeChecked()
public boolean isPartOfForeignKey()
public boolean isPartOfUniqueConstraint()
public boolean isPartOfPrimaryKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |