public class TPlsqlCreateType_Placeholder extends TCustomSqlStatement
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.
dbvendor, dummytag, isparsed, joins, parser, plsqlparser, rootNode, sourcetokenlist, sqlstatementtype, tables
Constructor and Description |
---|
TPlsqlCreateType_Placeholder(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) |
EOracleCreateType |
getCreatedType() |
int |
getKind() |
TPlsqlTableTypeDefStmt |
getNestedTableStatement()
Valid only when kind =
TBaseType.kind_create_nested_table
Represents a statement that create the specification of a nested table type. |
TPlsqlCreateType |
getObjectStatement()
Valid only when kind =
TBaseType.kind_create or kind = TBaseType.kind_create_incomplete
Represents a statement that create the specification of an object type. |
TPlsqlVarrayTypeDefStmt |
getVarrayStatement()
Valid only when kind =
TBaseType.kind_create_varray
Represents a statement that create the specification of a varray type. |
void |
setCreatedType(EOracleCreateType createdType) |
void |
setKind(int kind) |
void |
setNestedTableStatement(TPlsqlTableTypeDefStmt nestedTableStatement) |
void |
setObjectStatement(TPlsqlCreateType objectStatement) |
void |
setVarrayStatement(TPlsqlVarrayTypeDefStmt varrayStatement) |
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, init, removeAllMyTokensFromTokenList, setDummyTag, setEndToken, setEndToken, setEndToken, setEndToken, setGsqlparser, setIncludingComment, setNodeType, setStartToken, setStartToken, setStartToken, setStartToken, setString, toScript, toString
public TPlsqlCreateType_Placeholder(EDbVendor dbvendor)
public void setCreatedType(EOracleCreateType createdType)
public EOracleCreateType getCreatedType()
public void setKind(int kind)
public int getKind()
TBaseType.kind_define
: create the specification of an object type, check getObjectStatement()
TBaseType.kind_create_incomplete
: create an incomplete object type, check getObjectStatement()
TBaseType.kind_create_varray
: create a varray type, check getVarrayStatement()
TBaseType.kind_create_nested_table
: create a nested table type,check getNestedTableStatement()
public TPlsqlCreateType getObjectStatement()
TBaseType.kind_create
or kind = TBaseType.kind_create_incomplete
Represents a statement that create the specification of an object type.
or create an incomplete object type.public TPlsqlVarrayTypeDefStmt getVarrayStatement()
TBaseType.kind_create_varray
Represents a statement that create the specification of a varray type.public TPlsqlTableTypeDefStmt getNestedTableStatement()
TBaseType.kind_create_nested_table
Represents a statement that create the specification of a nested table type.public int doParseStatement(TCustomSqlStatement psql)
doParseStatement
in class TCustomSqlStatement
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 setObjectStatement(TPlsqlCreateType objectStatement)
public void setVarrayStatement(TPlsqlVarrayTypeDefStmt varrayStatement)
public void setNestedTableStatement(TPlsqlTableTypeDefStmt nestedTableStatement)
Copyright © 2019. All rights reserved.