org.eigenbase.sql
Class SqlJoin

java.lang.Object
  extended by org.eigenbase.sql.SqlNode
      extended by org.eigenbase.sql.SqlCall
          extended by org.eigenbase.sql.SqlJoin
All Implemented Interfaces:
Cloneable

public class SqlJoin
extends SqlCall

A SqlJoin is ...

Since:
Mar 29, 2003
Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/SqlJoin.java#13 $
Author:
jhyde

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
          Operand says whether this is a natural join.
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 org.eigenbase.sql.SqlCall
operands
 
Fields inherited from class org.eigenbase.sql.SqlNode
emptyArray
 
Constructor Summary
SqlJoin(SqlJoinOperator operator, SqlNode[] operands, SqlParserPos pos)
           
 
Method Summary
 SqlNode getCondition()
           
 SqlJoinOperator.ConditionType getConditionType()
          Returns a SqlJoinOperator.ConditionType
 SqlJoinOperator.JoinType getJoinType()
          Returns a SqlJoinOperator.JoinType
 SqlNode getLeft()
           
 SqlNode getRight()
           
 boolean isNatural()
           
 
Methods inherited from class org.eigenbase.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, getOperands, getOperator, isA, isCountStar, isExpanded, isName, setOperand, setOperator, unparse, validate
 
Methods inherited from class org.eigenbase.sql.SqlNode
clone, cloneArray, equalDeep, getParserPosition, toSqlString, toSqlString, toString, validateExpr
 
Methods inherited from class java.lang.Object
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
Operand says whether this is a natural join. Must be constant TRUE or 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

SqlJoin

public SqlJoin(SqlJoinOperator operator,
               SqlNode[] operands,
               SqlParserPos pos)
Method Detail

getCondition

public final SqlNode getCondition()

getConditionType

public final SqlJoinOperator.ConditionType getConditionType()
Returns a SqlJoinOperator.ConditionType

"Postcondition:"
return != null

getJoinType

public final SqlJoinOperator.JoinType getJoinType()
Returns a SqlJoinOperator.JoinType

"Postcondition:"
return != null

getLeft

public final SqlNode getLeft()

isNatural

public final boolean isNatural()

getRight

public final SqlNode getRight()