public class CreateTriggerNode extends DDLStatementNode
Modifier and Type | Field and Description |
---|---|
static int |
TRIGGER_EVENT_DELETE |
static int |
TRIGGER_EVENT_INSERT |
static int |
TRIGGER_EVENT_UPDATE |
ADD_TYPE, DROP_TYPE, LOCKING_TYPE, MODIFY_TYPE, UNKNOWN_TYPE
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
CreateTriggerNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node.
|
void |
init(java.lang.Object triggerName,
java.lang.Object tableName,
java.lang.Object triggerEventMask,
java.lang.Object triggerCols,
java.lang.Object isBefore,
java.lang.Object isRow,
java.lang.Object isEnabled,
java.lang.Object refClause,
java.lang.Object whenClause,
java.lang.Object whenText,
java.lang.Object whenOffset,
java.lang.Object actionNode,
java.lang.Object actionText,
java.lang.Object actionOffset)
Initializer for a CreateTriggerNode
|
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
java.lang.String |
statementToString() |
java.lang.String |
toString()
Convert this object to a String.
|
getFullName, getObjectName, getRelativeName, init, initAndCheck, isAtomic
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
public static final int TRIGGER_EVENT_UPDATE
public static final int TRIGGER_EVENT_DELETE
public static final int TRIGGER_EVENT_INSERT
public void init(java.lang.Object triggerName, java.lang.Object tableName, java.lang.Object triggerEventMask, java.lang.Object triggerCols, java.lang.Object isBefore, java.lang.Object isRow, java.lang.Object isEnabled, java.lang.Object refClause, java.lang.Object whenClause, java.lang.Object whenText, java.lang.Object whenOffset, java.lang.Object actionNode, java.lang.Object actionText, java.lang.Object actionOffset) throws StandardException
init
in class QueryTreeNode
triggerName
- name of the triggertableName
- name of the table which the trigger is declared upontriggerEventMask
- TRIGGER_EVENT_XXXtriggerCols
- columns trigger is to fire upon. Valid for UPDATE case only.isBefore
- is before trigger (false for after)isRow
- true for row trigger, false for statementisEnabled
- true if enabledrefClause
- the referencing clausewhenClause
- the WHEN clause treewhenText
- the text of the WHEN clausewhenOffset
- offset of start of WHEN clauseactionNode
- the trigger action treeactionText
- the text of the trigger actionactionOffset
- offset of start of action clauseStandardException
- Thrown on errorpublic void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class DDLStatementNode
StandardException
public java.lang.String statementToString()
statementToString
in class StatementNode
public void printSubNodes(int depth)
printSubNodes
in class QueryTreeNode
depth
- The depth of this node in the treepublic java.lang.String toString()
toString
in class DDLStatementNode
Copyright © 2013. All Rights Reserved.