org.apache.derby.impl.sql.compile
Class ColumnDefinitionNode
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.QueryTreeNode
-
- org.apache.derby.impl.sql.compile.ColumnDefinitionNode
-
- All Implemented Interfaces:
- Visitable
public class ColumnDefinitionNode extends QueryTreeNode
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.
-
-
Field Summary
Fields Modifier and Type Field and Description static intAT_ADD_CHECK_CONSTRAINTstatic intAT_ADD_FOREIGN_KEY_CONSTRAINTstatic intAT_ADD_PRIMARY_KEY_CONSTRAINTstatic intAT_ADD_UNIQUE_CONSTRAINTstatic intAT_DROP_COLUMNstatic intAT_DROP_CONSTRAINTstatic intAT_MODIFY_COLUMNstatic intAT_MODIFY_CONSTRAINTstatic intAT_UNKNOWNstatic intCREATE_AUTOINCREMENTstatic intMODIFY_AUTOINCREMENT_INC_VALUEstatic intMODIFY_AUTOINCREMENT_RESTART_VALUE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanhasGenerationClause()Return true if this column has a generation clause.voidsetDefaultInfo(DefaultInfoImpl dii)Set the generation clause (Default) bound to this column.voidsetType(DataTypeDescriptor dts)Set the type of this columnjava.lang.StringtoString()Convert this object to a String.-
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, addTag, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, createTypeDependency, getBeginOffset, getDataDictionary, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getUDTDesc, isAtomic, makeConstantAction, makeTableName, makeTableName, optimizerTracingIsOn, orReliability, referencesSessionSchema, setBeginOffset, setEndOffset, taggedWith, treePrint
-
-
-
-
Field Detail
-
CREATE_AUTOINCREMENT
public static final int CREATE_AUTOINCREMENT
- See Also:
- Constant Field Values
-
MODIFY_AUTOINCREMENT_RESTART_VALUE
public static final int MODIFY_AUTOINCREMENT_RESTART_VALUE
- See Also:
- Constant Field Values
-
MODIFY_AUTOINCREMENT_INC_VALUE
public static final int MODIFY_AUTOINCREMENT_INC_VALUE
- See Also:
- Constant Field Values
-
AT_UNKNOWN
public static final int AT_UNKNOWN
- See Also:
- Constant Field Values
-
AT_ADD_FOREIGN_KEY_CONSTRAINT
public static final int AT_ADD_FOREIGN_KEY_CONSTRAINT
- See Also:
- Constant Field Values
-
AT_ADD_PRIMARY_KEY_CONSTRAINT
public static final int AT_ADD_PRIMARY_KEY_CONSTRAINT
- See Also:
- Constant Field Values
-
AT_ADD_UNIQUE_CONSTRAINT
public static final int AT_ADD_UNIQUE_CONSTRAINT
- See Also:
- Constant Field Values
-
AT_ADD_CHECK_CONSTRAINT
public static final int AT_ADD_CHECK_CONSTRAINT
- See Also:
- Constant Field Values
-
AT_DROP_CONSTRAINT
public static final int AT_DROP_CONSTRAINT
- See Also:
- Constant Field Values
-
AT_MODIFY_COLUMN
public static final int AT_MODIFY_COLUMN
- See Also:
- Constant Field Values
-
AT_DROP_COLUMN
public static final int AT_DROP_COLUMN
- See Also:
- Constant Field Values
-
AT_MODIFY_CONSTRAINT
public static final int AT_MODIFY_CONSTRAINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public java.lang.String toString()
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.- Returns:
- This object as a String
-
setType
public void setType(DataTypeDescriptor dts)
Set the type of this column
-
setDefaultInfo
public void setDefaultInfo(DefaultInfoImpl dii)
Set the generation clause (Default) bound to this column.
-
hasGenerationClause
public boolean hasGenerationClause()
Return true if this column has a generation clause.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG