org.ujoframework.criterion
Enum Operator

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

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

The value criterion operator enum.

Since:
0.90
Author:
Pavel Ponec

Enum Constant Summary
CONTAINS
          Only for a CharSequence subtypes (include String)
CONTAINS_CASE_INSENSITIVE
          Only for a CharSequence subtypes (include String)
ENDS
          Only for a CharSequence subtypes (include String)
ENDS_CASE_INSENSITIVE
          Only for a CharSequence subtypes (include String)
EQ
          Equals the value
EQUALS_CASE_INSENSITIVE
          Only for a CharSequence subtypes (include String)
GE
          Great or equals the value
GT
          Great then the value
IN
          Operator to compare a property to collection
LE
          Less or equals the value
LT
          Less then the value
NOT_EQ
          Not equals the value
NOT_IN
          Negation operator to compare a property to collection
NOT_REGEXP
          Negation of the regular expression
REGEXP
          Regular expression
STARTS
          Only for a CharSequence subtypes (include String)
STARTS_CASE_INSENSITIVE
          Only for a CharSequence subtypes (include String)
USER
          This operator can have their own SQL condition by a SqlDialect solution.
XFIXED
          The operator for an internal use only where a result is not dependent on the value.
 
Method Summary
 java.lang.Enum getEnum()
          Returns Enum
 boolean isBinary()
          The implementace is a VALUE type (not a binary one)
static Operator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Operator[] 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 Operator EQ
Equals the value


NOT_EQ

public static final Operator NOT_EQ
Not equals the value


GT

public static final Operator GT
Great then the value


GE

public static final Operator GE
Great or equals the value


LT

public static final Operator LT
Less then the value


LE

public static final Operator LE
Less or equals the value


IN

public static final Operator IN
Operator to compare a property to collection


NOT_IN

public static final Operator NOT_IN
Negation operator to compare a property to collection


REGEXP

public static final Operator REGEXP
Regular expression


NOT_REGEXP

public static final Operator NOT_REGEXP
Negation of the regular expression


EQUALS_CASE_INSENSITIVE

public static final Operator EQUALS_CASE_INSENSITIVE
Only for a CharSequence subtypes (include String)


STARTS

public static final Operator STARTS
Only for a CharSequence subtypes (include String)


STARTS_CASE_INSENSITIVE

public static final Operator STARTS_CASE_INSENSITIVE
Only for a CharSequence subtypes (include String)


ENDS

public static final Operator ENDS
Only for a CharSequence subtypes (include String)


ENDS_CASE_INSENSITIVE

public static final Operator ENDS_CASE_INSENSITIVE
Only for a CharSequence subtypes (include String)


CONTAINS

public static final Operator CONTAINS
Only for a CharSequence subtypes (include String)


CONTAINS_CASE_INSENSITIVE

public static final Operator CONTAINS_CASE_INSENSITIVE
Only for a CharSequence subtypes (include String)


USER

public static final Operator USER
This operator can have their own SQL condition by a SqlDialect solution.
If you need to use more operators, I recommend to implement your own class by the iterface AbstractOperator and adjust the appropriate SqlDialect.

See Also:
SqlDialect.getCriterionTemplate(org.ujoframework.criterion.ValueCriterion)

XFIXED

public static final Operator XFIXED
The operator for an internal use only where a result is not dependent on the value.

Method Detail

values

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

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

valueOf

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

isBinary

public final boolean isBinary()
The implementace is a VALUE type (not a binary 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.