|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgudusoft.gsqlparser.nodes.TParseTreeNode
gudusoft.gsqlparser.TCustomSqlStatement
gudusoft.gsqlparser.stmt.oracle.TPlsqlStmt
gudusoft.gsqlparser.stmt.oracle.TPlsqlCreateType_Placeholder
public class TPlsqlCreateType_Placeholder
This class is a placeholder for CREATE TYPE statement.
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.
Field Summary |
---|
Fields inherited from class gudusoft.gsqlparser.TCustomSqlStatement |
---|
dbvendor, dummytag, joins, parser, plsqlparser, rootNode, sourcetokenlist, sqlstatementtype, tables |
Constructor Summary | |
---|---|
TPlsqlCreateType_Placeholder(EDbVendor dbvendor)
|
Method Summary | |
---|---|
void |
accept(TParseTreeVisitor v)
|
int |
doParseStatement(TCustomSqlStatement psql)
|
int |
getKind()
Indicates what's kind of SQL statement this class represents for. |
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 |
setKind(int kind)
|
Methods inherited from class gudusoft.gsqlparser.stmt.oracle.TPlsqlStmt |
---|
getEndlabelName, getLabelName, setEndlabelName, setLabelName |
Methods inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode |
---|
addAllMyTokensToTokenList, doParse, getColumnNo, getDummyTag, getEndToken, getGsqlparser, getLineNo, getNodeType, getStartToken, init, init, init, init, init, init, setDummyTag, setEndToken, setEndToken, setGsqlparser, setNodeType, setStartToken, setStartToken, setString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TPlsqlCreateType_Placeholder(EDbVendor dbvendor)
Method Detail |
---|
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)
accept
in interface Visitable
accept
in class TParseTreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |