public class CreateTriggerNode extends DDLStatementNode
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateTriggerNode.Event |
static class |
CreateTriggerNode.Time |
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 triggerEvent,
Object triggerCols,
Object triggerTime,
Object isRow,
Object isEnabled,
Object refClause,
Object whenClause,
Object actionNodes,
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 void init(Object triggerName, Object tableName, Object triggerEvent, Object triggerCols, Object triggerTime, Object isRow, Object isEnabled, Object refClause, Object whenClause, Object actionNodes, Object actionText, Object actionOffset) throws StandardException
init in class QueryTreeNodetriggerName - name of the triggertableName - name of the table which the trigger is declared upontriggerEvent - the event on which the action happenstriggerCols - columns trigger is to fire upon. Valid for UPDATE case only.triggerTime - the time at which the trigger occursisRow - true for row trigger, false for statementisEnabled - true if enabledrefClause - the referencing clausewhenClause - the WHEN clause treeactionNodes - 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 © 2015 FoundationDB, LLC. All rights reserved.