net.sf.saffron.sql
Class SqlSelectOperator

java.lang.Object
  |
  +--net.sf.saffron.sql.SqlOperator
        |
        +--net.sf.saffron.sql.SqlSelectOperator

public class SqlSelectOperator
extends SqlOperator

An operator describing a query. (Not a query itself.)

Operands are:


Nested Class Summary
 
Nested classes inherited from class net.sf.saffron.sql.SqlOperator
SqlOperator.Syntax, SqlOperator.TypeInference
 
Field Summary
 
Fields inherited from class net.sf.saffron.sql.SqlOperator
kind, leftPrec, name, rightPrec
 
Constructor Summary
(package private) SqlSelectOperator()
           
 
Method Summary
 SqlSelect createCall(boolean isDistinct, SqlNodeList selectList, SqlNode fromClause, SqlNode whereClause, SqlNode groupBy, SqlNode having, SqlNode orderBy)
           
 SqlCall createCall(SqlNode[] operands)
          Creates a call to this operand with an array of operands.
 int getSyntax()
          Returns the syntactic type of this operator, a value from SqlOperator.Syntax.
(package private)  void unparse(SqlWriter writer, SqlNode[] operands, int leftPrec, int rightPrec)
          Writes a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.
 
Methods inherited from class net.sf.saffron.sql.SqlOperator
createCall, createCall, createCall, createCall, getType, getType, isA, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SqlSelectOperator

SqlSelectOperator()
Method Detail

getSyntax

public int getSyntax()
Description copied from class: SqlOperator
Returns the syntactic type of this operator, a value from SqlOperator.Syntax.

Specified by:
getSyntax in class SqlOperator

createCall

public SqlCall createCall(SqlNode[] operands)
Description copied from class: SqlOperator
Creates a call to this operand with an array of operands.

Overrides:
createCall in class SqlOperator

createCall

public SqlSelect createCall(boolean isDistinct,
                            SqlNodeList selectList,
                            SqlNode fromClause,
                            SqlNode whereClause,
                            SqlNode groupBy,
                            SqlNode having,
                            SqlNode orderBy)

unparse

void unparse(SqlWriter writer,
             SqlNode[] operands,
             int leftPrec,
             int rightPrec)
Description copied from class: SqlOperator
Writes a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.

Specified by:
unparse in class SqlOperator

SourceForge.net_Logo