public class TCursorDeclStmt extends TCustomSqlStatement
Cursor declaration
Cursor specification
Cursor body
Ref cursor type definition
Modifier and Type | Class and Description |
---|---|
static class |
TCursorDeclStmt.CursorKind |
Modifier and Type | Field and Description |
---|---|
static int |
kind_cursor_body |
static int |
kind_cursor_declaration |
static int |
kind_cursor_specification |
static int |
kind_ref_cursor_type_definition |
dummytag, fromClause, fromSourceJoin, fromSourceTable, isparsed, joins, parser, plsqlparser, relationAttributes, rootNode, sourcetokenlist, sqlstatementtype, stmtScope, tables
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken
Constructor and Description |
---|
TCursorDeclStmt() |
TCursorDeclStmt(EDbVendor dbvendor) |
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
|
int |
doParseStatement(TCustomSqlStatement psql) |
TCursorDeclStmt.CursorKind |
getCursorKind() |
TObjectName |
getCursorName()
Name of an explicit cursor.
|
TParameterDeclarationList |
getCursorParameterDeclarations()
List of cursor parameter declaration, which is represented by
TParameterDeclaration . |
TObjectName |
getCursorTypeName()
Name of a REF CURSOR type.
|
int |
getKind()
Deprecated.
since 2.5.0.9, please use
getCursorKind() instead. |
TObjectName |
getResultsetName() |
TTypeName |
getRowtype()
A record type that represents a row in a database table or a row fetched from a previously declared cursor or cursor variable.
|
TSelectSqlStatement |
getSubquery()
A SQL SELECT statement.
|
void |
init(Object arg1)
Initialize a query tree node.
|
void |
init(Object arg1,
Object arg2) |
void |
setCursorName(TObjectName cursorName) |
void |
setCursorParameterDeclarations(TParameterDeclarationList cursorParameterDeclarations) |
void |
setCursorTypeName(TObjectName cursorTypeName) |
void |
setKind(int kind) |
void |
setRowtype(TTypeName rowtype) |
void |
setSubquery(TSelectSqlStatement subquery) |
addToTables, addWhereClause, analyzeFromTable, analyzeFromTable, analyzeJoin, analyzeTablename, analyzeTableOrJoin, asCanonical, checkNonQualifiedColumnReferenceInSubQueryOfUplevelStmt, clearError, dochecksyntax, findTable, fireOnMetaDatabaseTableColumn, getAncestorStmt, getAttributes, getColumnsInTable, getColumnsInTable, getCteIncludeThisStmt, getCteList, getDaxFunctionStack, getEndlabelName, getErrorCount, getErrormessage, getExpandedResultColumns, getFirstPhysicalTable, getFrameStack, getFromClause, getFromSourceJoin, getFromSourceTable, getGlobalScope, getIndexColumns, getJoins, getLabelName, getOrphanColumns, getOutputClause, getParentObjectName, getParentStmt, getRelationName, getRelations, getResultColumnList, getReturningClause, getSqlEnv, getStatements, getStmtScope, getSymbolTable, getSyntaxErrors, getSyntaxHints, getTables, getTargetTable, getTokenList, getTopClause, getTopStatement, getUsingVariableList, getVariableStack, getWhereClause, isathenaplsql, isBigQueryplsql, isdatabricksplsql, isGaussDBStoredProcedure, isgreeplumplsql, isnzplsql, isoracleplsql, ispgplsql, isprestoplsql, issnowflakeplsql, isTableACTE, isverticaplsql, linkColumnReferenceToTable, linkColumnToTable, linkToFirstTable, locateVariableOrParameter, locateVariableOrParameter, OracleStatementCanBeSeparatedByBeginEndPair, parseerrormessagehandle, parsestatement, parsestatement, searchCTEList, searchDaxVariableInStack, searchFunctionInSQLEnv, setAlreadyAddToParent, setCteIncludeThisStmt, setCteList, setEndlabelName, setFrameStack, setFromClause, setLabelName, setOutputClause, setParentStmt, setParentStmtToNull, setResultColumnList, setReturningClause, setStmtScope, setTargetTable, setTopClause, setUsingVariableList, setVariableStack, setWhereClause, size, toScript, VerticaStatementCanBeSeparatedByBeginEndPair
addAllMyTokensToTokenList, addToTokenChain, appendNewNode, calculateTokenCount, doAppendNewNode, doParse, fastSetString, getAnchorNode, getColumnNo, getCommentAfterNode, getCommentBeforeNode, getCompactString, getDummyTag, getEndToken, getEvaluateDatatype, getEvalValue, getGsqlparser, getLineNo, getLocation, getMd5, getNodeStatus, getNodeType, getPlainText, getStartToken, getTokenCount, hasNext, 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, toString, toString2
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
public static final int kind_cursor_declaration
public static final int kind_cursor_specification
public static final int kind_cursor_body
public static final int kind_ref_cursor_type_definition
public TCursorDeclStmt()
public TCursorDeclStmt(EDbVendor dbvendor)
public TCursorDeclStmt.CursorKind getCursorKind()
public void setKind(int kind)
public int getKind()
getCursorKind()
instead.public TSelectSqlStatement getSubquery()
public int doParseStatement(TCustomSqlStatement psql)
doParseStatement
in class TCustomSqlStatement
public TObjectName getResultsetName()
public void init(Object arg1)
TParseTreeNode
init
in class TParseTreeNode
arg1
- first argumentpublic void init(Object arg1, Object arg2)
init
in class TParseTreeNode
public void setCursorName(TObjectName cursorName)
public TObjectName getCursorName()
public TParameterDeclarationList getCursorParameterDeclarations()
TParameterDeclaration
.public void setCursorParameterDeclarations(TParameterDeclarationList cursorParameterDeclarations)
public void setRowtype(TTypeName rowtype)
public TTypeName getRowtype()
public void setCursorTypeName(TObjectName cursorTypeName)
public TObjectName getCursorTypeName()
public void accept(TParseTreeVisitor v)
TParseTreeNode
accept
in interface Visitable
accept
in class TParseTreeNode
v
- visitor is a descendant class of TParseTreeVisitor
public void acceptChildren(TParseTreeVisitor v)
TParseTreeNode
acceptChildren
in interface Visitable
acceptChildren
in class TParseTreeNode
v
- visitor is a descendant class of TParseTreeVisitor
public void setSubquery(TSelectSqlStatement subquery)