net.sf.saffron.sql
Class SqlJoinOperator

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

public class SqlJoinOperator
extends SqlOperator

SqlJoinOperator describes the syntax of the SQL JOIN operator. Since there is only one such operator, this class is almost certainly a singleton.

Since:
Mar 19, 2003
Version:
$Id: //open/saffron/src/net/sf/saffron/sql/SqlJoinOperator.java#4 $
Author:
jhyde

Nested Class Summary
static class SqlJoinOperator.ConditionType
          Enumerates the types of condition in a join expression.
static class SqlJoinOperator.JoinType
          Enumerates the types of join.
 
Nested classes inherited from class net.sf.saffron.sql.SqlOperator
SqlOperator.Syntax, SqlOperator.TypeInference
 
Field Summary
static int CONDITION_OPERAND
           
static int CONDITION_TYPE_OPERAND
          Value must be a SqlLiteral, one of the integer codes for SqlJoinOperator.ConditionType.
static int IS_NATURAL_OPERAND
          One of the following: SqlLiteral.True, SqlLiteral.False.
static int LEFT_OPERAND
           
static int RIGHT_OPERAND
           
static int TYPE_OPERAND
          Value must be a SqlLiteral, one of the integer codes for SqlJoinOperator.JoinType.
 
Fields inherited from class net.sf.saffron.sql.SqlOperator
kind, leftPrec, name, rightPrec
 
Constructor Summary
SqlJoinOperator()
           
 
Method Summary
 SqlCall createCall(SqlNode[] operands)
          Creates a call to this operand with an array of operands.
 SqlCall createCall(SqlNode left, SqlLiteral isNatural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, SqlNode condition)
           
 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
 

Field Detail

LEFT_OPERAND

public static final int LEFT_OPERAND
See Also:
Constant Field Values

IS_NATURAL_OPERAND

public static final int IS_NATURAL_OPERAND
One of the following: SqlLiteral.True, SqlLiteral.False.

See Also:
Constant Field Values

TYPE_OPERAND

public static final int TYPE_OPERAND
Value must be a SqlLiteral, one of the integer codes for SqlJoinOperator.JoinType.

See Also:
Constant Field Values

RIGHT_OPERAND

public static final int RIGHT_OPERAND
See Also:
Constant Field Values

CONDITION_TYPE_OPERAND

public static final int CONDITION_TYPE_OPERAND
Value must be a SqlLiteral, one of the integer codes for SqlJoinOperator.ConditionType.

See Also:
Constant Field Values

CONDITION_OPERAND

public static final int CONDITION_OPERAND
See Also:
Constant Field Values
Constructor Detail

SqlJoinOperator

public SqlJoinOperator()
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 SqlCall createCall(SqlNode left,
                          SqlLiteral isNatural,
                          SqlLiteral joinType,
                          SqlNode right,
                          SqlLiteral conditionType,
                          SqlNode condition)

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