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

pack-priv Class SetConstraintsNode

extends MiscellaneousStatementNode
Class Inheritance
Imports
java.util.List, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.iapi.sql.compile.Visitor, org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.shared.common.sanity.SanityManager

A SetConstraintsNode is the root of a QueryTree that represents a SET CONSTRAINTS statement.

Field Summary

Modifier and TypeField and Description
private final List<TableName>
constraints

List of strings representing the constraints we want to set.

private final boolean
deferred

Encodes IMMEDIATE (false), DEFERRED (true)

Constructor Summary

AccessConstructor and Description
pack-priv
SetConstraintsNode(List<TableName>
List of strings representing the constraints we want to set (empty means ALL).
constraints
,
boolean
Encodes IMMEDIATE (false) or DEFERRED (true)
deferred
,
ContextManager
The context manager
cm
)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
acceptChildren(Visitor
the visitor
v
)

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

Accept a visitor on all child nodes.

public void
bindStatement()

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

Perform the binding operation statement.

pack-priv String
formatList(List<TableName> constraints)

public ConstantAction
makeConstantAction()

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

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

public String
public String

Returns:

This object as a String
toString
()

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

Convert this object to a String.

Inherited from org.apache.derby.impl.sql.compile.MiscellaneousStatementNode:
activationKindgenerateneedsSavepoint

Field Detail

constraintsback to summary
private final List<TableName> constraints

List of strings representing the constraints we want to set. If empty, this means ALL.

deferredback to summary
private final boolean deferred

Encodes IMMEDIATE (false), DEFERRED (true)

Constructor Detail

SetConstraintsNodeback to summary
pack-priv SetConstraintsNode(List<TableName> constraints, boolean deferred, ContextManager cm)
Parameters
constraints:List<TableName>

List of strings representing the constraints we want to set (empty means ALL).

deferred:boolean

Encodes IMMEDIATE (false) or DEFERRED (true)

cm:ContextManager

The context manager

Method Detail

acceptChildrenback to summary
pack-priv void acceptChildren(Visitor v) throws StandardException

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

Doc from org.apache.derby.impl.sql.compile.QueryTreeNode.acceptChildren.

Accept a visitor on all child nodes. All sub-classes that add fields that should be visited, should override this method and call accept(v) on all visitable fields, as well as super.acceptChildren(v) to make sure all visitable fields defined by the super-class are accepted too.

Parameters
v:Visitor

the visitor

Annotations
@Override
Exceptions
StandardException:
on errors raised by the visitor
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
formatListback to summary
pack-priv String formatList(List<TableName> constraints)
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
public 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.StatementNode.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