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

pack-priv Class DropTableNode

extends DDLStatementNode
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.compile.CompilerContext, org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor, .TableDescriptor, org.apache.derby.iapi.sql.execute.ConstantAction

A DropTableNode is the root of a QueryTree that represents a DROP TABLE statement.

Field Summary

Modifier and TypeField and Description
private long
private int
private TableDescriptor
Inherited from org.apache.derby.impl.sql.compile.DDLStatementNode:
ADD_TYPEDROP_STATISTICSDROP_TYPEimplicitCreateSchemaLOCKING_TYPEMODIFY_TYPEUNKNOWN_TYPEUPDATE_STATISTICS

Constructor Summary

AccessConstructor and Description
pack-priv
DropTableNode(TableName
The name of the object being dropped
dropObjectName
,
int
Drop behavior (RESTRICT | CASCADE)
dropBehavior
,
ContextManager
The context manager
cm
)

Constructor for a DropTableNode

Method Summary

Modifier and TypeMethod and Description
public void
public ConstantAction
makeConstantAction()

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

Create the Constant information that will drive the guts of Execution.

public boolean

Returns:

true if references SESSION schema tables, else false
referencesSessionSchema
()

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

Return true if the node references SESSION schema tables (temporary or permanent)

pack-priv String
public String

Returns:

This object as a String
toString
()

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

Convert this object to a String.

Inherited from org.apache.derby.impl.sql.compile.DDLStatementNode:
acceptChildrenactivationKindgenerategetFullNamegetObjectNamegetRelativeNamegetSchemaDescriptorgetSchemaDescriptorgetTableDescriptorgetTableDescriptorgetTableDescriptorgetTableDescriptorinitAndCheckisAtomicmakeFromList

Field Detail

conglomerateNumberback to summary
private long conglomerateNumber
dropBehaviorback to summary
private int dropBehavior
tdback to summary
private TableDescriptor td

Constructor Detail

DropTableNodeback to summary
pack-priv DropTableNode(TableName dropObjectName, int dropBehavior, ContextManager cm) throws StandardException

Constructor for a DropTableNode

Parameters
dropObjectName:TableName

The name of the object being dropped

dropBehavior:int

Drop behavior (RESTRICT | CASCADE)

cm:ContextManager

The context manager

Method Detail

bindStatementback to summary
public void bindStatement() throws StandardException

Overrides org.apache.derby.impl.sql.compile.StatementNode.bindStatement.

Bind this LockTableNode. This means looking up the table, verifying it exists and getting the heap conglomerate number.

Annotations
@Override
Exceptions
StandardException:
Thrown on error
makeConstantActionback to summary
public ConstantAction makeConstantAction() throws StandardException

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

Create the Constant information that will drive the guts of Execution.

Annotations
@Override
Exceptions
StandardException:
Thrown on failure
referencesSessionSchemaback to summary
public boolean referencesSessionSchema() throws StandardException

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

Return true if the node references SESSION schema tables (temporary or permanent)

Returns:boolean

true if references SESSION schema tables, else false

Annotations
@Override
Exceptions
StandardException:
Thrown on error
statementToStringback to summary
pack-priv String statementToString()

Implements abstract org.apache.derby.impl.sql.compile.StatementNode.statementToString.

toStringback to summary
public String toString()

Overrides org.apache.derby.impl.sql.compile.DDLStatementNode.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