org.eigenbase.sql
Enum SqlJoinOperator.ConditionType

java.lang.Object
  extended by java.lang.Enum<SqlJoinOperator.ConditionType>
      extended by org.eigenbase.sql.SqlJoinOperator.ConditionType
All Implemented Interfaces:
Serializable, Comparable<SqlJoinOperator.ConditionType>, SqlLiteral.SqlSymbol
Enclosing class:
SqlJoinOperator

public static enum SqlJoinOperator.ConditionType
extends Enum<SqlJoinOperator.ConditionType>
implements SqlLiteral.SqlSymbol

Enumerates the types of condition in a join expression.


Enum Constant Summary
None
          Join clause has no condition, for example "FROM EMP, DEPT"
On
          Join clause has an ON condition, for example "FROM EMP JOIN DEPT ON EMP.DEPTNO = DEPT.DEPTNO"
Using
          Join clause has a USING condition, for example "FROM EMP JOIN DEPT USING (DEPTNO)"
 
Method Summary
static SqlJoinOperator.ConditionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SqlJoinOperator.ConditionType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eigenbase.sql.SqlLiteral.SqlSymbol
name, ordinal
 

Enum Constant Detail

None

public static final SqlJoinOperator.ConditionType None
Join clause has no condition, for example "FROM EMP, DEPT"


On

public static final SqlJoinOperator.ConditionType On
Join clause has an ON condition, for example "FROM EMP JOIN DEPT ON EMP.DEPTNO = DEPT.DEPTNO"


Using

public static final SqlJoinOperator.ConditionType Using
Join clause has a USING condition, for example "FROM EMP JOIN DEPT USING (DEPTNO)"

Method Detail

values

public static final SqlJoinOperator.ConditionType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SqlJoinOperator.ConditionType c : SqlJoinOperator.ConditionType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SqlJoinOperator.ConditionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name