public class TMssqlBulkInsertOption extends TParseTreeNode
BULK INSERT ... WITH (...): NAME = value (DATA_SOURCE = 'MyAzureBlob',
FIRSTROW = 2), a flag (TABLOCK) or ORDER (column [ASC|DESC], ...), whose value is not
kept. The option names are SQL Server keywords, so they are compared ignoring case.dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken| Constructor and Description |
|---|
TMssqlBulkInsertOption(TSourceToken nameToken,
TSourceToken valueToken,
TSourceToken endToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TParseTreeVisitor v)
Accept a visitor
|
void |
acceptChildren(TParseTreeVisitor v)
Accept a visitor to iterate this class and sub-nodes of this class
|
String |
getName()
The option name as written.
|
TSourceToken |
getNameToken() |
String |
getValue()
The value: a string literal without its quotes (
N'..' and doubled quotes decoded), any other token as
written; null for a flag or ORDER (...). |
String |
getValueText()
The value token as written (
'MyAzureBlob', 2); null for a flag or ORDER (...). |
TSourceToken |
getValueToken() |
boolean |
isNamed(String optionName)
True when the option is
optionName, ignoring case. |
addAllMyTokensToTokenList, addToTokenChain, appendNewNode, calculateTokenCount, commentBlockAfter, commentBlockEndAfter, doAppendNewNode, doParse, fastSetString, getAnchorNode, getColumnNo, getCommentAfterNode, getCommentBeforeNode, getCommentBeforeNode, getCommentBeforeNode, getCompactString, getDummyTag, getEndToken, getEvaluateDatatype, getEvalValue, getGsqlparser, getLineNo, getLocation, getMd5, getNodeStatus, getNodeType, getParentObjectName, getPlainText, getStartToken, getTokenCount, hasNext, init, init, init, init, init, init, init, init, init, init, insertAfterAToken, insertNewNodeBeforeMe, isChanged, isTokensInChain, next, refreshAllNodesTokenCount, remove, removeAllMyTokensFromTokenList, removeTokens, removeTokensBetweenNodes, removeTokensBetweenToken, replaceWithNewNode, resetIterator, setAnchorNode, setChanged, setDummyTag, setEndToken, setEndToken, setEndToken, setEndToken, setEndToken, setEndTokenDirectly, setEvaluateDatatype, setEvalValue, setGsqlparser, setIncludingComment, setLocation, setNewSubNode, setNodeStatus, setNodeType, setParent, setPlainText, setStartToken, setStartToken, setStartToken, setStartToken, setStartTokenDirectly, setString, setString2, subNodeInNode, toScript, toString, toString2clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingpublic TMssqlBulkInsertOption(TSourceToken nameToken, TSourceToken valueToken, TSourceToken endToken)
nameToken - the option namevalueToken - the value after =, or null for a flag or ORDER (...)endToken - the last token of the optionpublic TSourceToken getNameToken()
public boolean isNamed(String optionName)
optionName, ignoring case.public TSourceToken getValueToken()
public String getValueText()
'MyAzureBlob', 2); null for a flag or ORDER (...).public String getValue()
N'..' and doubled quotes decoded), any other token as
written; null for a flag or ORDER (...).public void accept(TParseTreeVisitor v)
TParseTreeNodeaccept in interface Visitableaccept in class TParseTreeNodev - visitor is a descendant class of TParseTreeVisitorpublic void acceptChildren(TParseTreeVisitor v)
TParseTreeNodeacceptChildren in interface VisitableacceptChildren in class TParseTreeNodev - visitor is a descendant class of TParseTreeVisitor