ch.elca.el4j.services.persistence.jpa.util
Enum JpaQuery.Relation

java.lang.Object
  extended by java.lang.Enum<JpaQuery.Relation>
      extended by ch.elca.el4j.services.persistence.jpa.util.JpaQuery.Relation
All Implemented Interfaces:
Serializable, Comparable<JpaQuery.Relation>
Enclosing class:
JpaQuery<T>

public static enum JpaQuery.Relation
extends Enum<JpaQuery.Relation>

The possible relations (eq, neq ...).


Enum Constant Summary
EQ
          equals.
GE
          Greater or equal.
GT
          Greater than.
LE
          Less or equal.
LT
          Less than.
NE
          Not equals.
 
Method Summary
static JpaQuery.Relation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JpaQuery.Relation[] 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

EQ

public static final JpaQuery.Relation EQ
equals.


NE

public static final JpaQuery.Relation NE
Not equals.


LE

public static final JpaQuery.Relation LE
Less or equal.


GE

public static final JpaQuery.Relation GE
Greater or equal.


LT

public static final JpaQuery.Relation LT
Less than.


GT

public static final JpaQuery.Relation GT
Greater than.

Method Detail

values

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

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

valueOf

public static JpaQuery.Relation 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 © 2005-2011 ELCA. All Rights Reserved.