com.sap.caf.rt.bol.util

Enum Condition

java.lang.Object
  extended by java.lang.Enum<Condition>
      extended by com.sap.caf.rt.bol.util.Condition
All Implemented Interfaces:
Serializable, Comparable<Condition>

public enum Condition
extends Enum<Condition>

This enumeration represents, possible conditions that can be used in QueryFilter instance.

See Also:
QueryFilterFactory.createFilter(Condition, Object)

Enum Constant Summary
BETWEEN
          Represents between constraint.
EQ
          Represents = constraint.
GE
          Represents >= constraint.
GT
          Represents > constraint.
LE
          Represents <= constraint.
LT
          Represents < constraint.
NEQ
          Represents !
 
Method Summary
static Condition fromString(String sCondition)
          Returns a Condition that corresponds to the supplied string representation.
 String toJPAString()
          Returns JPA representation string for this Condition.
static Condition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Condition[] 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 Condition EQ
Represents = constraint.


LT

public static final Condition LT
Represents < constraint.


GT

public static final Condition GT
Represents > constraint.


LE

public static final Condition LE
Represents <= constraint.


GE

public static final Condition GE
Represents >= constraint.


NEQ

public static final Condition NEQ
Represents != constraint.


BETWEEN

public static final Condition BETWEEN
Represents between constraint.

Method Detail

values

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

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

valueOf

public static Condition 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

fromString

public static Condition fromString(String sCondition)
Returns a Condition that corresponds to the supplied string representation.

Parameters:
sCondition - a String that corresponds to a Condition.
Returns:
the corresponding Condition

toJPAString

public String toJPAString()
Returns JPA representation string for this Condition.

Returns:
JPA representation string for this Condition.
Access Rights

This class can be accessed from:


SC DC
[sap.com] CAF [sap.com] caf/runtime/ear


Copyright 2010 SAP AG Complete Copyright Notice