Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


oracle.javatools.parser.plsql.data
Interface SqlExpression

All Superinterfaces:
PlsqlNode
All Known Implementing Classes:
SqlAjndef, SqlColdef, SqlFrodef, SqlGbydef, SqlHqcdef, SqlLogdef, SqlOdmCost, SqlOdmdef, SqlOdmModel, SqlOpndef, SqlOptdef, SqlOrddef, SqlPvtdef, SqlQbcdef, SqlSeldef, SqlStrdef, SqlTypdef, SqlXmtdef

public interface SqlExpression
extends PlsqlNode

A SQL expression.


Method Summary
 java.lang.String getColumnBaseName()
          The format of an OPNTCOL is "user.table.base@networknode".
 java.lang.String getColumnNodeName()
           
 java.lang.String getColumnTableName()
           
 java.lang.String getColumnUserName()
           
 short getOperandCount()
           
 SqlExpression[] getOperands()
           
 byte getOperandType()
           
 short getOperatorType()
           
 int getStartOffset()
          Offsets are not available for anything outputted by the SqlParser.
 java.lang.String getStringText()
           
 byte getStringType()
           

 

Methods inherited from interface oracle.javatools.parser.plsql.data.PlsqlNode
getTreeKind

 

Method Detail

getStartOffset

int getStartOffset()
Offsets are not available for anything outputted by the SqlParser.
Specified by:
getStartOffset in interface PlsqlNode
Returns:
Always returns -1.

getOperandType

byte getOperandType()
Returns:
The operand type. Found in SqlConstants under the prefix OPNT (OPeraNd Type).

getStringType

byte getStringType()
Returns:
If this is a string (OPNTSTR, OPeraNd Type STRing), then this returns the string type. Found in SqlConstants under the prefix STRT (STRing Type). Note that zero == STRTCONS and hence is a valid STRT value.

getStringText

java.lang.String getStringText()
Returns:
If this is a string, then this returns the text of the string.

getOperatorType

short getOperatorType()
Returns:
If this is an operator (OPNTOPT, OPeraNd Type OPeraTor), then this returns the operator type. Found in SqlOperators. Otherwise, this returns SqlOperators.OPT_invalid.

getOperandCount

short getOperandCount()
Returns:
If this is an operator, then this returns the number of operands to this operator. Otherwise, this returns zero.

getOperands

SqlExpression[] getOperands()
Returns:
If this is an operator, then this returns a non-null array containing the operands to this operator (can this be zero-length?). Otherwise, this returns a zero-length array.

getColumnBaseName

java.lang.String getColumnBaseName()
The format of an OPNTCOL is "user.table.base@networknode". If one lhs name is omitted, then the format is "table.base@networknode". If two lhs names are omitted, then the format is "base@networknode". In all cases, "@networknode" may be omitted.
Returns:
If this is a column (OPNTCOL, OPeraNd Type COLumn), then this returns the column's base name. Null if this is not a column.

getColumnTableName

java.lang.String getColumnTableName()
Returns:
If this is a column, then this returns the name of the table. Null if none.

getColumnUserName

java.lang.String getColumnUserName()
Returns:
If this is a column, then this returns the name of the user. Null if none.

getColumnNodeName

java.lang.String getColumnNodeName()
Returns:
If this is a column, then this returns the name of the network node. Null if none.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.