gudusoft.gsqlparser.stmt.oracle
Class TPlsqlTableTypeDefStmt

java.lang.Object
  extended by gudusoft.gsqlparser.nodes.TParseTreeNode
      extended by gudusoft.gsqlparser.TCustomSqlStatement
          extended by gudusoft.gsqlparser.stmt.oracle.TPlsqlStmt
              extended by gudusoft.gsqlparser.stmt.oracle.TPlsqlTableTypeDefStmt
All Implemented Interfaces:
Visitable

public class TPlsqlTableTypeDefStmt
extends TPlsqlStmt

A collection groups elements of the same type in a specified order. Each element has a unique subscript that determines its position in the collection.

PL/SQL has three kinds of collections:

Associative arrays can be indexed by either integers or strings. Nested tables and varrays are indexed by integers.


Field Summary
 
Fields inherited from class gudusoft.gsqlparser.TCustomSqlStatement
dbvendor, dummytag, joins, parser, plsqlparser, rootNode, sourcetokenlist, sqlstatementtype, tables
 
Constructor Summary
TPlsqlTableTypeDefStmt()
           
TPlsqlTableTypeDefStmt(EDbVendor dbvendor)
           
 
Method Summary
 void accept(TParseTreeVisitor v)
           
 int doParseStatement(TCustomSqlStatement psql)
           
 TTypeName getElementDataType()
          The data type of the collection element.
 TTypeName getIndexByDataType()
          For an associative array, the data type of its indexes¡ªPLS_INTEGER, BINARY_INTGER, or VARCHAR2.
 java.lang.Boolean getNotNull()
          Specifies that no element of the collection can have the value NULL.
 TObjectName getTypeName()
          The name that you give to the collection type that you are defining.
 void init(java.lang.Object arg1, java.lang.Object arg2)
           
 void setIndexByDataType(TTypeName indexByDataType)
           
 void setNotNull(java.lang.Boolean notNull)
           
 
Methods inherited from class gudusoft.gsqlparser.stmt.oracle.TPlsqlStmt
getEndlabelName, getLabelName, setEndlabelName, setLabelName
 
Methods inherited from class gudusoft.gsqlparser.TCustomSqlStatement
addWhereClause, analyzeFromTable, analyzeJoin, analyzeTablename, checkNonQualifiedColumnReferenceInSubQueryOfUplevelStmt, getCteList, getErrorCount, getOutputClause, getParentStmt, getResultColumnList, getReturningClause, getStatements, getSymbolTable, getTargetTable, getTopClause, getTopStatement, getWhereClause, isnzplsql, isoracleplsql, ispgplsql, linkColumnReferenceToTable, locateVariableOrParameter, OracleStatementCanBeSeparatedByBeginEndPair, parsestatement, setCteList, setOutputClause, setParentStmt, setResultColumnList, setReturningClause, setTargetTable, setTopClause, setWhereClause
 
Methods inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
addAllMyTokensToTokenList, doParse, getColumnNo, getDummyTag, getEndToken, getGsqlparser, getLineNo, getNodeType, getStartToken, 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

TPlsqlTableTypeDefStmt

public TPlsqlTableTypeDefStmt()

TPlsqlTableTypeDefStmt

public TPlsqlTableTypeDefStmt(EDbVendor dbvendor)
Method Detail

doParseStatement

public int doParseStatement(TCustomSqlStatement psql)
Overrides:
doParseStatement in class TCustomSqlStatement

getIndexByDataType

public TTypeName getIndexByDataType()
For an associative array, the data type of its indexes¡ªPLS_INTEGER, BINARY_INTGER, or VARCHAR2.

Returns:

getNotNull

public java.lang.Boolean getNotNull()
Specifies that no element of the collection can have the value NULL.

Returns:

setIndexByDataType

public void setIndexByDataType(TTypeName indexByDataType)

setNotNull

public void setNotNull(java.lang.Boolean notNull)

getElementDataType

public TTypeName getElementDataType()
The data type of the collection element.

Returns:

getTypeName

public TObjectName getTypeName()
The name that you give to the collection type that you are defining.

Returns:

init

public void init(java.lang.Object arg1,
                 java.lang.Object arg2)
Overrides:
init in class TParseTreeNode

accept

public void accept(TParseTreeVisitor v)
Specified by:
accept in interface Visitable
Overrides:
accept in class TParseTreeNode