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_TYPEAUTOINCREMENT_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(Object triggerName,
Object tableName,
Object triggerEventMask,
Object triggerCols,
Object isBefore,
Object isRow,
Object isEnabled,
Object refClause,
Object whenClause,
Object whenText,
Object whenOffset,
Object actionNode,
Object actionText,
Object actionOffset)
Initializer for a CreateTriggerNode
|
void |
printSubNodes(int depth)
Prints the sub-nodes of this object.
|
String |
statementToString() |
String |
toString()
Convert this object to a String.
|
getFullName, getObjectName, getRelativeName, init, initAndCheck, isAtomicaccept, 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, treePrintpublic static final int TRIGGER_EVENT_UPDATE
public static final int TRIGGER_EVENT_DELETE
public static final int TRIGGER_EVENT_INSERT
public void init(Object triggerName, Object tableName, Object triggerEventMask, Object triggerCols, Object isBefore, Object isRow, Object isEnabled, Object refClause, Object whenClause, Object whenText, Object whenOffset, Object actionNode, Object actionText, Object actionOffset) throws StandardException
init in class QueryTreeNodetriggerName - 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 DDLStatementNodeStandardExceptionpublic String statementToString()
statementToString in class StatementNodepublic void printSubNodes(int depth)
printSubNodes in class QueryTreeNodedepth - The depth of this node in the treepublic String toString()
toString in class DDLStatementNodeCopyright © 2014 FoundationDB, LLC. All rights reserved.