Top Description Fields Constructors Methods
org.apache.derby.impl.sql.compile

pack-priv Class TableElementNode

extends QueryTreeNode
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.compile.ColumnDefinitionNode, org.apache.derby.impl.sql.compile.ConstraintDefinitionNode
Imports
org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager

A TableElementNode is an item in a TableElementList, and represents a single table element such as a column or constraint in a CREATE TABLE or ALTER TABLE statement.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
pack-priv int
pack-priv String
Inherited from org.apache.derby.impl.sql.compile.QueryTreeNode:
AUTOINCREMENT_CREATE_MODIFYAUTOINCREMENT_CYCLEAUTOINCREMENT_INC_INDEXAUTOINCREMENT_IS_AUTOINCREMENT_INDEXAUTOINCREMENT_START_INDEX

Constructor Summary

AccessConstructor and Description
pack-priv
TableElementNode(String
The name of the table element, if any
name
,
ContextManager cm)

Constructor for a TableElementNode

Method Summary

Modifier and TypeMethod and Description
pack-priv int

Returns:

one of the constants at the front of this file
getElementType
()

Get the type of this table element.

pack-priv String

Returns:

String The name.
getName
()

Get the name from this node.

pack-priv boolean

Returns:

boolean Whether or not this element has a check constraint
hasCheckConstraint
()

Does this element have a check constraint.

pack-priv boolean

Returns:

boolean Whether or not this element has a constraint on it
hasConstraint
()

Does this element have a constraint on it.

pack-priv boolean

Returns:

boolean Whether or not this element has a foreign key constraint
hasForeignKeyConstraint
()

Does this element have a foreign key constraint.

pack-priv boolean

Returns:

boolean Whether or not this element has a primary key constraint
hasPrimaryKeyConstraint
()

Does this element have a primary key constraint.

pack-priv boolean

Returns:

boolean Whether or not this element has a unique key constraint
hasUniqueKeyConstraint
()

Does this element have a unique key constraint.

public String

Returns:

This object as a String
toString
()

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.toString.

Convert this object to a String.

Inherited from org.apache.derby.impl.sql.compile.QueryTreeNode:
acceptacceptChildrenaddTagaddUDTUsagePrivaddUDTUsagePrivbindOffsetFetchbindRowMultiSetbindUserCatalogTypebindUserTypecheckReliabilitycheckReliabilityconvertDefaultNodecopyTagsFromcreateTypeDependencydebugFlushdebugPrintdisablePrivilegeCollectionformatNodeStringgenerategenerateAuthorizeCheckgetBeginOffsetgetClassFactorygetCompilerContextgetContextgetContextManagergetDataDictionarygetDependencyManagergetEndOffsetgetExecutionFactorygetGenericConstantActionFactorygetIntPropertygetLanguageConnectionContextgetLongPropertygetNullNodegetOffsetOrderedNodesgetOptimizerFactorygetOptimizerTracergetParameterTypesgetSchemaDescriptorgetSchemaDescriptorgetStatementTypegetTableDescriptorgetTypeCompilergetUDTDescisAtomicisPrivilegeCollectionRequiredisSessionSchemaisSessionSchemamakeConstantActionmakeTableNamemakeTableNamenodeHeaderoptimizerTracingIsOnorReliabilityparseSearchConditionparseStatementprintLabelprintSubNodesreferencesSessionSchemaresolveTableToSynonymsetBeginOffsetsetEndOffsetsetRefActionInfostackPrinttaggedWithtreePrinttreePrintverifyClassExist

Field Detail

AT_ADD_CHECK_CONSTRAINTback to summary
public static final int AT_ADD_CHECK_CONSTRAINT
AT_ADD_FOREIGN_KEY_CONSTRAINTback to summary
public static final int AT_ADD_FOREIGN_KEY_CONSTRAINT
AT_ADD_PRIMARY_KEY_CONSTRAINTback to summary
public static final int AT_ADD_PRIMARY_KEY_CONSTRAINT
AT_ADD_UNIQUE_CONSTRAINTback to summary
public static final int AT_ADD_UNIQUE_CONSTRAINT
AT_DROP_COLUMNback to summary
public static final int AT_DROP_COLUMN
AT_DROP_CONSTRAINTback to summary
public static final int AT_DROP_CONSTRAINT
AT_MODIFY_COLUMNback to summary
public static final int AT_MODIFY_COLUMN
AT_MODIFY_CONSTRAINTback to summary
public static final int AT_MODIFY_CONSTRAINT
AT_UNKNOWNback to summary
public static final int AT_UNKNOWN
elementTypeback to summary
pack-priv int elementType
nameback to summary
pack-priv String name

Constructor Detail

TableElementNodeback to summary
pack-priv TableElementNode(String name, ContextManager cm)

Constructor for a TableElementNode

Parameters
name:String

The name of the table element, if any

Method Detail

getElementTypeback to summary
pack-priv int getElementType()

Get the type of this table element.

Returns:int

one of the constants at the front of this file

getNameback to summary
pack-priv String getName()

Get the name from this node.

Returns:String

String The name.

hasCheckConstraintback to summary
pack-priv boolean hasCheckConstraint()

Does this element have a check constraint.

Returns:boolean

boolean Whether or not this element has a check constraint

hasConstraintback to summary
pack-priv boolean hasConstraint()

Does this element have a constraint on it.

Returns:boolean

boolean Whether or not this element has a constraint on it

hasForeignKeyConstraintback to summary
pack-priv boolean hasForeignKeyConstraint()

Does this element have a foreign key constraint.

Returns:boolean

boolean Whether or not this element has a foreign key constraint

hasPrimaryKeyConstraintback to summary
pack-priv boolean hasPrimaryKeyConstraint()

Does this element have a primary key constraint.

Returns:boolean

boolean Whether or not this element has a primary key constraint

hasUniqueKeyConstraintback to summary
pack-priv boolean hasUniqueKeyConstraint()

Does this element have a unique key constraint.

Returns:boolean

boolean Whether or not this element has a unique key constraint

toStringback to summary
public String toString()

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.toString.

Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

Returns:String

This object as a String

Annotations
@Override