org.sql.generation.api.grammar.query
Enum SetOperation

java.lang.Object
  extended by java.lang.Enum<SetOperation>
      extended by org.sql.generation.api.grammar.query.SetOperation
All Implemented Interfaces:
Serializable, Comparable<SetOperation>

public enum SetOperation
extends Enum<SetOperation>

This enum represents the possible set operations to combine queries with. These set operations are UNION, INTERSECT, and EXCEPT.

Author:
Stanislav Muhametsin

Enum Constant Summary
EXCEPT
          The set difference (EXCEPT) between two queries.
INTERSECT
          The INTERSECT between two queries.
UNION
          The UNION between two queries.
 
Method Summary
static SetOperation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SetOperation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNION

public static final SetOperation UNION
The UNION between two queries.


INTERSECT

public static final SetOperation INTERSECT
The INTERSECT between two queries.


EXCEPT

public static final SetOperation EXCEPT
The set difference (EXCEPT) between two queries.

Method Detail

values

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

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

valueOf

public static SetOperation 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
NullPointerException - if the argument is null


Copyright © 2010. All Rights Reserved.