|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | 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. |
java.math.BigInteger |
getIncrement()
Returns the value of the 'Increment' attribute. |
java.math.BigInteger |
getMaximum()
Returns the value of the 'Maximum' attribute. |
java.math.BigInteger |
getMinimum()
Returns the value of the 'Minimum' attribute. |
java.math.BigInteger |
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(java.math.BigInteger value)
Sets the value of the ' Increment' attribute. |
void |
setMaximum(java.math.BigInteger value)
Sets the value of the ' Maximum' attribute. |
void |
setMinimum(java.math.BigInteger value)
Sets the value of the ' Minimum' attribute. |
void |
setStartValue(java.math.BigInteger value)
Sets the value of the ' Start Value' attribute. |
| Methods inherited from interface org.eclipse.datatools.modelbase.sql.schema.SQLObject |
addEAnnotation, addEAnnotationDetail, getDependencies, getDescription, getEAnnotation, getEAnnotationDetail, getLabel, removeEAnnotationDetail, setAnnotationDetail, setDescription, setLabel |
| 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 java.math.BigInteger getStartValue()
If the meaning of the 'Start Value' attribute isn't clear, there really should be more of a description here...
setStartValue(BigInteger),
SQLSchemaPackage.getIdentitySpecifier_StartValue()public void setStartValue(java.math.BigInteger value)
Start Value' attribute.
value - the new value of the 'Start Value' attribute.getStartValue()public java.math.BigInteger getIncrement()
If the meaning of the 'Increment' attribute isn't clear, there really should be more of a description here...
setIncrement(BigInteger),
SQLSchemaPackage.getIdentitySpecifier_Increment()public void setIncrement(java.math.BigInteger value)
Increment' attribute.
value - the new value of the 'Increment' attribute.getIncrement()public java.math.BigInteger getMinimum()
If the meaning of the 'Minimum' attribute isn't clear, there really should be more of a description here...
setMinimum(BigInteger),
SQLSchemaPackage.getIdentitySpecifier_Minimum()public void setMinimum(java.math.BigInteger value)
Minimum' attribute.
value - the new value of the 'Minimum' attribute.getMinimum()public java.math.BigInteger getMaximum()
If the meaning of the 'Maximum' attribute isn't clear, there really should be more of a description here...
setMaximum(BigInteger),
SQLSchemaPackage.getIdentitySpecifier_Maximum()public void setMaximum(java.math.BigInteger 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||