|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Identity Specifier'. 4.14.4 Identity columns The columns of a base table BT can optionally include not more than one identity column. The declared type of an identity column is either an exact numeric type with scale 0 (zero), INTEGER for example, or a distinct type whose source type is an exact numeric type with scale 0 (zero). An identity column has a start value, an increment, a maximum value, a minimum value, and a cycle option. An identity column is associated with an internal sequence generator SG. Let IC be the identity column of BT. When a row R is presented for insertion into BT, if R does not contain a column corresponding to IC, then the value V for IC in the row inserted into BT is obtained by applying the General Rules of Subclause 9.21, "Generation of the next value of a sequence generator", to SG. The definition of an identity column may specify GENERATED ALWAYS or GENERATED BY DEFAULT. NOTE 24: "Start value", "increment", "maximum value", "minimum value", and "cycle option" are defined in Subclause 4.21, "Sequence generators". NOTE 25: The notion of an internal sequence generator being associated with an identity column is used only for definitional purposes in this International Standard.
The following features are supported:
SQLSchemaPackage.getIdentitySpecifier()
Method Summary | |
GenerateType |
getGenerationType()
Returns the value of the 'Generation Type' attribute. |
int |
getIncrement()
Returns the value of the 'Increment' attribute. |
int |
getMaximum()
Returns the value of the 'Maximum' attribute. |
int |
getMinimum()
Returns the value of the 'Minimum' attribute. |
int |
getStartValue()
Returns the value of the 'Start Value' attribute. |
boolean |
isCycleOption()
Returns the value of the 'Cycle Option' attribute. |
void |
setCycleOption(boolean value)
Sets the value of the ' Cycle Option ' attribute. |
void |
setGenerationType(GenerateType value)
Sets the value of the ' Generation Type ' attribute. |
void |
setIncrement(int value)
Sets the value of the ' Increment ' attribute. |
void |
setMaximum(int value)
Sets the value of the ' Maximum ' attribute. |
void |
setMinimum(int value)
Sets the value of the ' Minimum ' attribute. |
void |
setStartValue(int value)
Sets the value of the ' Start Value ' attribute. |
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 GenerateType getGenerationType()
GenerateType
.
If the meaning of the 'Generation Type' attribute isn't clear, there really should be more of a description here...
GenerateType
,
setGenerationType(GenerateType)
,
SQLSchemaPackage.getIdentitySpecifier_GenerationType()
public void setGenerationType(GenerateType value)
Generation Type
' attribute.
value
- the new value of the 'Generation Type' attribute.GenerateType
,
getGenerationType()
public int getStartValue()
If the meaning of the 'Start Value' attribute isn't clear, there really should be more of a description here...
setStartValue(int)
,
SQLSchemaPackage.getIdentitySpecifier_StartValue()
public void setStartValue(int value)
Start Value
' attribute.
value
- the new value of the 'Start Value' attribute.getStartValue()
public int getIncrement()
If the meaning of the 'Increment' attribute isn't clear, there really should be more of a description here...
setIncrement(int)
,
SQLSchemaPackage.getIdentitySpecifier_Increment()
public void setIncrement(int value)
Increment
' attribute.
value
- the new value of the 'Increment' attribute.getIncrement()
public int getMinimum()
If the meaning of the 'Minimum' attribute isn't clear, there really should be more of a description here...
setMinimum(int)
,
SQLSchemaPackage.getIdentitySpecifier_Minimum()
public void setMinimum(int value)
Minimum
' attribute.
value
- the new value of the 'Minimum' attribute.getMinimum()
public int getMaximum()
If the meaning of the 'Maximum' attribute isn't clear, there really should be more of a description here...
setMaximum(int)
,
SQLSchemaPackage.getIdentitySpecifier_Maximum()
public void setMaximum(int value)
Maximum
' attribute.
value
- the new value of the 'Maximum' attribute.getMaximum()
public boolean isCycleOption()
If the meaning of the 'Cycle Option' attribute isn't clear, there really should be more of a description here...
setCycleOption(boolean)
,
SQLSchemaPackage.getIdentitySpecifier_CycleOption()
public void setCycleOption(boolean value)
Cycle Option
' attribute.
value
- the new value of the 'Cycle Option' attribute.isCycleOption()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |