public class TCursorDeclStmt extends TCustomSqlStatement
Cursor declaration
Cursor specification
Cursor body
Ref cursor type definition
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 |
dbvendor, dummytag, isparsed, joins, parser, plsqlparser, rootNode, sourcetokenlist, sqlstatementtype, tables
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) |
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()
what's kind of SQL stateemnt this class represents for.
|
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 |
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, analyzeJoin, analyzeTablename, checkNonQualifiedColumnReferenceInSubQueryOfUplevelStmt, clearError, dochecksyntax, findTable, fireOnMetaDatabaseTableColumn, getAncestorStmt, getCteList, getDaxFunctionStack, getEndlabelName, getErrorCount, getFirstPhysicalTable, getIndexColumns, getJoins, getLabelName, getOrphanColumns, getOutputClause, getParentStmt, getResultColumnList, getReturningClause, getStatements, getSymbolTable, getTables, getTargetTable, getTopClause, getTopStatement, getVariableStack, getWhereClause, isnzplsql, isoracleplsql, ispgplsql, isTableACTE, isverticaplsql, linkColumnReferenceToTable, linkColumnToTable, linkToFirstTable, locateVariableOrParameter, OracleStatementCanBeSeparatedByBeginEndPair, parseerrormessagehandle, parsestatement, searchCTEList, searchDaxVariableInStack, setCteList, setEndlabelName, setLabelName, setOutputClause, setParentStmt, setResultColumnList, setReturningClause, setTargetTable, setTopClause, setVariableStack, setWhereClause, VerticaStatementCanBeSeparatedByBeginEndPair
addAllMyTokensToTokenList, appendString, doParse, fastSetString, getColumnNo, getDummyTag, getEndToken, getGsqlparser, getLineNo, getNodeType, getStartToken, init, init, init, init, init, removeAllMyTokensFromTokenList, setDummyTag, setEndToken, setEndToken, setEndToken, setEndToken, setGsqlparser, setIncludingComment, setNodeType, setStartToken, setStartToken, setStartToken, setStartToken, setString, toScript, toString
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 void setKind(int kind)
public int getKind()
public TSelectSqlStatement getSubquery()
public int doParseStatement(TCustomSqlStatement psql)
doParseStatement
in class TCustomSqlStatement
public void init(Object arg1)
TParseTreeNode
init
in class TParseTreeNode
arg1
- first argumentpublic 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)
Copyright © 2019. All rights reserved.