org.ujoframework.criterion
Enum BinaryOperator

java.lang.Object
  extended by java.lang.Enum<BinaryOperator>
      extended by org.ujoframework.criterion.BinaryOperator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BinaryOperator>, AbstractOperator

public enum BinaryOperator
extends java.lang.Enum<BinaryOperator>
implements AbstractOperator

The criterion binary operator

Since:
0.90
Author:
Pavel Ponec

Enum Constant Summary
AND
          (a AND b)
EQ
          (a == b)
Note: the SQL language may not support the operator.
NAND
          NOT (a AND b)
Note: the SQL language may not support the operator.
NOR
          NOT (a OR b)
Note: the SQL language may not support the operator.
NOT
          NOT a
OR
          (a OR b)
XOR
          (a XOR b)
Note: the SQL language may not support the operator.
 
Method Summary
 java.lang.Enum getEnum()
          Returns Enum
 boolean isBinary()
          The operator is the BINARY type (not a value one)
<UJO extends Ujo>
Criterion<UJO>
join(Criterion<UJO> a, Criterion<UJO> b)
          Join two criterions.
static BinaryOperator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BinaryOperator[] 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

AND

public static final BinaryOperator AND
(a AND b)


OR

public static final BinaryOperator OR
(a OR b)


XOR

public static final BinaryOperator XOR
(a XOR b)
Note: the SQL language may not support the operator.


NOR

public static final BinaryOperator NOR
NOT (a OR b)
Note: the SQL language may not support the operator.


NAND

public static final BinaryOperator NAND
NOT (a AND b)
Note: the SQL language may not support the operator.


EQ

public static final BinaryOperator EQ
(a == b)
Note: the SQL language may not support the operator.


NOT

public static final BinaryOperator NOT
NOT a

Method Detail

values

public static BinaryOperator[] 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 (BinaryOperator c : BinaryOperator.values())
    System.out.println(c);

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

valueOf

public static BinaryOperator valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

join

public <UJO extends Ujo> Criterion<UJO> join(Criterion<UJO> a,
                                             Criterion<UJO> b)
Join two criterions.


isBinary

public final boolean isBinary()
The operator is the BINARY type (not a value one)

Specified by:
isBinary in interface AbstractOperator

getEnum

public final java.lang.Enum getEnum()
Returns Enum

Specified by:
getEnum in interface AbstractOperator


Copyright © 2010. All Rights Reserved.