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

pack-priv Class DropSchemaNode

extends DDLStatementNode
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.conn.Authorizer, .LanguageConnectionContext, .StatementContext, org.apache.derby.iapi.sql.execute.ConstantAction

A DropSchemaNode is the root of a QueryTree that represents a DROP SCHEMA statement.

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
DropSchemaNode(String
The name of the object being dropped
schemaName
,
int
Drop behavior (RESTRICT | CASCADE)
dropBehavior
,
ContextManager
Context Manager
cm
)

Constructor for a DropSchemaNode

Method Summary

Modifier and TypeMethod and Description
public void
bindStatement()

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

Perform the binding operation statement.

public ConstantAction
makeConstantAction()

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

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

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

dropBehaviorback to summary
private int dropBehavior
schemaNameback to summary
private String schemaName

Constructor Detail

DropSchemaNodeback to summary
pack-priv DropSchemaNode(String schemaName, int dropBehavior, ContextManager cm)

Constructor for a DropSchemaNode

Parameters
schemaName:String

The name of the object being dropped

dropBehavior:int

Drop behavior (RESTRICT | CASCADE)

cm:ContextManager

Context Manager

Method Detail

bindStatementback to summary
public void bindStatement() throws StandardException

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

Doc from org.apache.derby.impl.sql.compile.StatementNode.bindStatement.

Perform the binding operation statement. Binding consists of permissions checking, view resolution, datatype resolution, and creation of a dependency list (for determining whether a tree or plan is still up to date). This bindStatement() method does nothing. Each StatementNode type that can appear at the top of a tree can override this method with its own bindStatement() method that does "something".

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
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