Class TPlsqlCreateType_Placeholder
- All Implemented Interfaces:
IRelation,Visitable,Iterator<TSourceToken>
The CREATE TYPE statement creates or replaces
the specification of an object type,represented by TPlsqlCreateType.
a SQLJ object type (not supported),
a named varying array (varray), represented by TPlsqlVarrayTypeDefStmt.
a nested table type, represented by TPlsqlTableTypeDefStmt.
or an incomplete object type, represented by TPlsqlCreateType.
You can check kind property to determine what's kind of SQL statement this class represents for.
Various SQL statement can be fetched via following properties:
getObjectStatement(), getVarrayStatement(),getNestedTableStatement() accordingly.
-
Nested Class Summary
Nested classes/interfaces inherited from class gudusoft.gsqlparser.TCustomSqlStatement
TCustomSqlStatement.SqlNormalizationProfile -
Field Summary
Fields inherited from class gudusoft.gsqlparser.TCustomSqlStatement
dummytag, fromClause, fromSourceJoin, fromSourceTable, isctequery, isparsed, joins, parser, plsqlparser, relationAttributes, rootNode, semicolonended, sourcetokenlist, sqlstatementtype, stmtScope, tablesFields inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccept a visitorvoidAccept a visitor to iterate this class and sub-nodes of this classintintgetKind()Valid only when kind =TBaseType.kind_create_nested_tableRepresents a statement that create the specification of a nested table type.Valid only when kind =TBaseType.kind_createor kind =TBaseType.kind_create_incompleteRepresents a statement that create the specification of an object type.Valid only when kind =TBaseType.kind_create_varrayRepresents a statement that create the specification of a varray type.voidsetCreatedType(EOracleCreateType createdType) voidsetKind(int kind) voidsetNestedTableStatement(TPlsqlTableTypeDefStmt nestedTableStatement) voidsetObjectStatement(TPlsqlCreateType objectStatement) voidsetVarrayStatement(TPlsqlVarrayTypeDefStmt varrayStatement) Methods inherited from class gudusoft.gsqlparser.TCustomSqlStatement
addToTables, addWhereClause, analyzeFromTable, analyzeFromTable, analyzeJoin, analyzeTablename, analyzeTableOrJoin, asCanonical, checkNonQualifiedColumnReferenceInSubQueryOfUplevelStmt, clearError, computeSqlHash, 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, getQueryId, getRelationName, getRelations, getResultColumnList, getReturningClause, getSqlEnv, getSqlHash, getSqlHash, 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, setQueryId, setResultColumnList, setReturningClause, setSqlHash, setStmtScope, setTargetTable, setTopClause, setUsingVariableList, setVariableStack, setWhereClause, size, toNormalizedSql, toScript, VerticaStatementCanBeSeparatedByBeginEndPairMethods inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
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, 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, toString2Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
TPlsqlCreateType_Placeholder
-
-
Method Details
-
setCreatedType
-
getCreatedType
-
setKind
-
getKind
- Returns:
- what's kind of SQL statement this class represents for.
TBaseType.kind_define: create the specification of an object type, checkgetObjectStatement()TBaseType.kind_create_incomplete: create an incomplete object type, checkgetObjectStatement()TBaseType.kind_create_varray: create a varray type, checkgetVarrayStatement()TBaseType.kind_create_nested_table: create a nested table type,checkgetNestedTableStatement()
-
getObjectStatement
Valid only when kind =TBaseType.kind_createor kind =TBaseType.kind_create_incompleteRepresents a statement that create the specification of an object type. or create an incomplete object type.- Returns:
-
getVarrayStatement
Valid only when kind =TBaseType.kind_create_varrayRepresents a statement that create the specification of a varray type.- Returns:
-
getNestedTableStatement
Valid only when kind =TBaseType.kind_create_nested_tableRepresents a statement that create the specification of a nested table type.- Returns:
-
doParseStatement
- Overrides:
doParseStatementin classTCustomSqlStatement
-
accept
Description copied from class:TParseTreeNodeAccept a visitor- Specified by:
acceptin interfaceVisitable- Overrides:
acceptin classTParseTreeNode- Parameters:
v- visitor is a descendant class ofTParseTreeVisitor
-
acceptChildren
Description copied from class:TParseTreeNodeAccept a visitor to iterate this class and sub-nodes of this class- Specified by:
acceptChildrenin interfaceVisitable- Overrides:
acceptChildrenin classTParseTreeNode- Parameters:
v- visitor is a descendant class ofTParseTreeVisitor
-
setObjectStatement
-
setVarrayStatement
-
setNestedTableStatement
-