|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.TableElementNode
com.akiban.sql.parser.ColumnDefinitionNode
public class ColumnDefinitionNode
A ColumnDefinitionNode represents a column definition in a DDL statement. There will be a ColumnDefinitionNode for each column in a CREATE TABLE statement, and for the column in an ALTER TABLE ADD COLUMN statement.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.akiban.sql.parser.TableElementNode |
|---|
TableElementNode.ElementType |
| Field Summary | |
|---|---|
static int |
CREATE_AUTOINCREMENT
|
static int |
MODIFY_AUTOINCREMENT_INC_VALUE
|
static int |
MODIFY_AUTOINCREMENT_RESTART_VALUE
|
| Fields inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX |
| Constructor Summary | |
|---|---|
ColumnDefinitionNode()
|
|
| Method Summary | |
|---|---|
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 |
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(Object name,
Object defaultNode,
Object type,
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 |
String |
toString()
Convert this object to a String. |
| Methods inherited from class com.akiban.sql.parser.TableElementNode |
|---|
getName, init, init |
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CREATE_AUTOINCREMENT
public static final int MODIFY_AUTOINCREMENT_RESTART_VALUE
public static final int MODIFY_AUTOINCREMENT_INC_VALUE
| Constructor Detail |
|---|
public ColumnDefinitionNode()
| Method Detail |
|---|
public void init(Object name,
Object defaultNode,
Object type,
Object autoIncrementInfo)
throws StandardException
init in class QueryTreeNodename - The name of the columndefaultNode - The default value of the columntype - A DataTypeDescriptor telling the type of the columnautoIncrementInfo - Info for autoincrement columns
StandardException - Thrown on error
public void copyFrom(QueryTreeNode node)
throws StandardException
copyFrom in class TableElementNodeStandardExceptionpublic String toString()
toString in class TableElementNodepublic 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 QueryTreeNodedepth - The depth of this node in the tree
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||