public class ColumnDefinitionNode extends TableElementNode
TableElementNode.ElementType
Modifier and Type | Field and Description |
---|---|
static int |
CREATE_AUTOINCREMENT |
static int |
MODIFY_AUTOINCREMENT_INC_VALUE |
static int |
MODIFY_AUTOINCREMENT_RESTART_VALUE |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
ColumnDefinitionNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
long |
getAutoinc_create_or_modify_Start_Increment()
Get the status of this autoincrement column
|
long |
getAutoincrementIncrement()
Get the autoincrement increment value
|
long |
getAutoincrementStart()
Get the autoincrement start value
|
java.lang.String |
getColumnName()
Returns the unqualified name of the column being defined.
|
DefaultNode |
getDefaultNode()
Return the DefaultNode, if any, associated with this node.
|
GenerationClauseNode |
getGenerationClauseNode()
Get the generation clause.
|
DataTypeDescriptor |
getType()
Returns the data type of the column being defined.
|
boolean |
hasGenerationClause()
Return true if this column has a generation clause.
|
void |
init(java.lang.Object name,
java.lang.Object defaultNode,
java.lang.Object type,
java.lang.Object autoIncrementInfo)
Initializer for a ColumnDefinitionNode
|
boolean |
isAutoincrementColumn()
Is this an autoincrement column?
|
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
void |
setType(DataTypeDescriptor dts)
Set the type of this column
|
java.lang.String |
toString()
Convert this object to a String.
|
getName, init, init
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
public static final int CREATE_AUTOINCREMENT
public static final int MODIFY_AUTOINCREMENT_RESTART_VALUE
public static final int MODIFY_AUTOINCREMENT_INC_VALUE
public void init(java.lang.Object name, java.lang.Object defaultNode, java.lang.Object type, java.lang.Object autoIncrementInfo) throws StandardException
init
in class QueryTreeNode
name
- The name of the columndefaultNode
- The default value of the columntype
- A DataTypeDescriptor telling the type of the columnautoIncrementInfo
- Info for autoincrement columnsStandardException
- Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class TableElementNode
StandardException
public java.lang.String toString()
toString
in class TableElementNode
public java.lang.String getColumnName()
public final DataTypeDescriptor getType()
public void setType(DataTypeDescriptor dts)
public DefaultNode getDefaultNode()
public boolean hasGenerationClause()
public GenerationClauseNode getGenerationClauseNode()
public boolean isAutoincrementColumn()
public long getAutoincrementStart()
public long getAutoincrementIncrement()
public long getAutoinc_create_or_modify_Start_Increment()
public void printSubNodes(int depth)
printSubNodes
in class QueryTreeNode
depth
- The depth of this node in the treeCopyright © 2013. All Rights Reserved.