| Modifier and Type | Field and Description |
|---|---|
| pack-priv long | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv long | |
| pack-priv boolean | |
| public static final int | |
| pack-priv DefaultInfoImpl | |
| pack-priv DefaultNode | |
| pack-priv DataValueDescriptor | |
| pack-priv GenerationClauseNode | |
| pack-priv boolean | |
| pack-priv boolean | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| pack-priv DataTypeDescriptor | type
The data type of this column. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ColumnDefinitionNode(String
The name of the column name, ValueNode The default value of the column defaultNode, DataTypeDescriptor A DataTypeServices telling the type
of the column dataTypeServices, long[] Info for auto-increment columns autoIncrementInfo, ContextManager The context manager cm)Constructor for a ColumnDefinitionNode |
| Modifier and Type | Method and Description |
|---|---|
| private void | autoincrementCheckRange(long minValue, long maxValue, String typeName)
checks to see if autoincrementIncrement and autoincrementInitial are within the bounds of the type whose min and max values are passed into this routine. |
| pack-priv void | bindAndValidateDefault(DataDictionary
The DataDictionary. dd, TableDescriptor The TableDescriptor. td)Check the validity of the default, if any, for this node. |
| pack-priv void | |
| protected static DefaultInfoImpl | |
| pack-priv boolean | Returns: True if the defaultNode abides by the restrictions imposed by DB2 on default constants; false otherwise.TypeId of the target column. columnType, DataTypeDescriptor Description of the type of the
target column. columnDesc, TypeId TypeId of the default node. defaultType, ValueNode Parsed ValueNode for the default value. defaultNode, String Unparsed default value (as entered
by user). defaultText)Check the validity of the default for this node |
| pack-priv int | |
| pack-priv long | Returns: ColumnDefinitionNode.CREATE_AUTOINCREMENT - if this definition is for autoincrement column creatoin ColumnDefinitionNode.MODIFY_AUTOINCREMENT_RESTART_VALUE - if this definition is for alter sutoincrement column to change the start value ColumnDefinitionNode.MODIFY_AUTOINCREMENT_INC_VALUE if this definition is for alter autoincrement column to change the increment valueGet the status of this autoincrement column |
| pack-priv boolean | |
| pack-priv long | Returns: Autoincrement increment value.Get the autoincrement increment value |
| pack-priv long | |
| pack-priv String | Returns: the name of the columnReturns the unqualified name of the column being defined. |
| pack-priv DefaultInfo | Returns: The default info for the columnReturn the DefaultInfo containing the default information for this column |
| pack-priv DefaultNode | Returns: The DefaultNode, if any, associated with this node.Return the DefaultNode, if any, associated with this node. |
| pack-priv DataValueDescriptor | Returns: The default value of the columnReturn the DataValueDescriptor containing the default value for this column |
| pack-priv GenerationClauseNode | |
| pack-priv UUID | Returns: The UUID of the old column default.Get the UUID of the old column default. |
| pack-priv final DataTypeDescriptor | |
| public boolean | |
| pack-priv boolean | Returns: Whether or not this is an autoincrement column.Is this an autoincrement column? |
| pack-priv void | printSubNodes(int
The depth of this node in the tree depth)Overrides org. Prints the sub-nodes of this object. |
| pack-priv void | setCollationType(int collationType)
Set the collation type, note derivation is always implicit for any catalog item. |
| public void | |
| pack-priv final void | |
| public void | |
| public String | Returns: This object as a StringOverrides org. Convert this object to a String. |
| pack-priv void | validateAutoincrement(DataDictionary
DataDictionary. dd, TableDescriptor table descriptor. td, int base table or declared global temporary table. tableType)Check the validity of the autoincrement values for this node. |
| pack-priv void | validateDefault(DataDictionary dd, TableDescriptor
The TableDescriptor. td)Check the validity of the default for this node. |
| autoinc_create_or_modify_Start_Increment | back to summary |
|---|---|
| pack-priv long autoinc_create_or_modify_Start_Increment | |
| autoincrementCycle | back to summary |
|---|---|
| pack-priv boolean autoincrementCycle | |
| autoincrementIncrement | back to summary |
|---|---|
| pack-priv long autoincrementIncrement | |
| autoincrementStart | back to summary |
|---|---|
| pack-priv long autoincrementStart | |
| autoincrementVerify | back to summary |
|---|---|
| pack-priv boolean autoincrementVerify | |
| CREATE_AUTOINCREMENT | back to summary |
|---|---|
| public static final int CREATE_AUTOINCREMENT | |
| defaultInfo | back to summary |
|---|---|
| pack-priv DefaultInfoImpl defaultInfo | |
| defaultNode | back to summary |
|---|---|
| pack-priv DefaultNode defaultNode | |
| defaultValue | back to summary |
|---|---|
| pack-priv DataValueDescriptor defaultValue | |
| generationClauseNode | back to summary |
|---|---|
| pack-priv GenerationClauseNode generationClauseNode | |
| isAutoincrement | back to summary |
|---|---|
| pack-priv boolean isAutoincrement | |
| keepCurrentDefault | back to summary |
|---|---|
| pack-priv boolean keepCurrentDefault | |
| MODIFY_AUTOINCREMENT_ALWAYS_VS_DEFAULT | back to summary |
|---|---|
| public static final int MODIFY_AUTOINCREMENT_ALWAYS_VS_DEFAULT | |
| MODIFY_AUTOINCREMENT_CYCLE_VALUE | back to summary |
|---|---|
| public static final int MODIFY_AUTOINCREMENT_CYCLE_VALUE | |
| MODIFY_AUTOINCREMENT_INC_VALUE | back to summary |
|---|---|
| public static final int MODIFY_AUTOINCREMENT_INC_VALUE | |
| MODIFY_AUTOINCREMENT_RESTART_VALUE | back to summary |
|---|---|
| public static final int MODIFY_AUTOINCREMENT_RESTART_VALUE | |
| type | back to summary |
|---|---|
| pack-priv DataTypeDescriptor type The data type of this column. | |
| ColumnDefinitionNode | back to summary |
|---|---|
| pack-priv ColumnDefinitionNode(String name, ValueNode defaultNode, DataTypeDescriptor dataTypeServices, long[] autoIncrementInfo, ContextManager cm) throws StandardException Constructor for a ColumnDefinitionNode
| |
| autoincrementCheckRange | back to summary |
|---|---|
| private void autoincrementCheckRange(long minValue, long maxValue, String typeName) throws StandardException checks to see if autoincrementIncrement and autoincrementInitial are within the bounds of the type whose min and max values are passed into this routine. | |
| bindAndValidateDefault | back to summary |
|---|---|
| pack-priv void bindAndValidateDefault(DataDictionary dd, TableDescriptor td) throws StandardException Check the validity of the default, if any, for this node.
| |
| checkUserType | back to summary |
|---|---|
| pack-priv void checkUserType(TableDescriptor td) throws StandardException Check the validity of a user type. Checks whether this column definition describes a user type that either doesn't exist or is inaccessible, or that doesn't implement Serializable.
| |
| createDefaultInfoOfAutoInc | back to summary |
|---|---|
| protected static DefaultInfoImpl createDefaultInfoOfAutoInc() | |
| defaultTypeIsValid | back to summary |
|---|---|
| pack-priv boolean defaultTypeIsValid(TypeId columnType, DataTypeDescriptor columnDesc, TypeId defaultType, ValueNode defaultNode, String defaultText) throws StandardException Check the validity of the default for this node
| |
| getAction | back to summary |
|---|---|
| pack-priv int getAction() Get the action associated with this node.
| |
| getAutoinc_create_or_modify_Start_Increment | back to summary |
|---|---|
| pack-priv long getAutoinc_create_or_modify_Start_Increment() Get the status of this autoincrement column
| |
| getAutoincrementCycle | back to summary |
|---|---|
| pack-priv boolean getAutoincrementCycle() Get the autoincrement cycle value
| |
| getAutoincrementIncrement | back to summary |
|---|---|
| pack-priv long getAutoincrementIncrement() Get the autoincrement increment value
| |
| getAutoincrementStart | back to summary |
|---|---|
| pack-priv long getAutoincrementStart() Get the autoincrement start value
| |
| getColumnName | back to summary |
|---|---|
| pack-priv String getColumnName() Returns the unqualified name of the column being defined.
| |
| getDefaultInfo | back to summary |
|---|---|
| pack-priv DefaultInfo getDefaultInfo() Return the DefaultInfo containing the default information for this column
| |
| getDefaultNode | back to summary |
|---|---|
| pack-priv DefaultNode getDefaultNode() Return the DefaultNode, if any, associated with this node.
| |
| getDefaultValue | back to summary |
|---|---|
| pack-priv DataValueDescriptor getDefaultValue() Return the DataValueDescriptor containing the default value for this column
| |
| getGenerationClauseNode | back to summary |
|---|---|
| pack-priv GenerationClauseNode getGenerationClauseNode() Get the generation clause. | |
| getOldDefaultUUID | back to summary |
|---|---|
| pack-priv UUID getOldDefaultUUID() Get the UUID of the old column default.
| |
| getType | back to summary |
|---|---|
| pack-priv final DataTypeDescriptor getType() Returns the data type of the column being defined.
| |
| hasGenerationClause | back to summary |
|---|---|
| public boolean hasGenerationClause() Return true if this column has a generation clause. | |
| isAutoincrementColumn | back to summary |
|---|---|
| pack-priv boolean isAutoincrementColumn() Is this an autoincrement column?
| |
| printSubNodes | back to summary |
|---|---|
| pack-priv void printSubNodes(int depth) Overrides org. Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.
| |
| setCollationType | back to summary |
|---|---|
| pack-priv void setCollationType(int collationType) Set the collation type, note derivation is always implicit for any catalog item. | |
| setDefaultInfo | back to summary |
|---|---|
| public void setDefaultInfo(DefaultInfoImpl dii) Set the generation clause (Default) bound to this column. | |
| setNullability | back to summary |
|---|---|
| pack-priv final void setNullability(boolean nullable) Set the nullability of the column definition node. | |
| setType | back to summary |
|---|---|
| public void setType(DataTypeDescriptor dts) Set the type of this column | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing. | |
| validateAutoincrement | back to summary |
|---|---|
| pack-priv void validateAutoincrement(DataDictionary dd, TableDescriptor td, int tableType) throws StandardException Check the validity of the autoincrement values for this node. The following errors are thrown by this routine. 1. 42z21 Invalid Increment; i.e 0. 2. 42z22 Invalid Type; autoincrement created on a non-exact-numeric type 3. 42995 The requested function does not apply to global temporary tables
| |
| validateDefault | back to summary |
|---|---|
| pack-priv void validateDefault(DataDictionary dd, TableDescriptor td) throws StandardException Check the validity of the default for this node.
| |