org.openmdx.compatibility.base.query
Class FilterOperators

java.lang.Object
  extended by org.openmdx.compatibility.base.query.FilterOperators

public class FilterOperators
extends Object

The FilterOperations class contains filter operation codes.


Field Summary
static short IS_BETWEEN
          The operator IS_BETWEEN expects a range specified by two values as «right» operand.
static short IS_GREATER
          The operator IS_GREATER expects one value as «right» operand.
static short IS_GREATER_OR_EQUAL
          The operator IS_GREATER_OR_EQUAL expects one value as «right» operand.
static short IS_IN
          The operator IS_IN expects a set of zero, one or more values as «right» operand.
static short IS_LESS
          The operator IS_LESS expects one value as «right» operand.
static short IS_LESS_OR_EQUAL
          The operator IS_LESS_OR_EQUAL expects one value as «right» operand.
static short IS_LIKE
          The operator IS_LIKE expects one or more values with the wildcard characters '%' replacing any number of characters and '_' replacing a single character as «right» operands.
static short IS_NOT_IN
          The operator IS_NOT_IN expects a set of zero, one or more values as «right» operand.
static short IS_OUTSIDE
          The operator IS_OUTSIDE expects a range specified by two values as «right» operand.
static short IS_UNLIKE
          The operator IS_UNLIKE expects one or more values with the wildcard characters '%' replacing any number of characters and '_' replacing a single character as «right» operands.
static short SOUNDS_LIKE
          The operator SOUNDS_LIKE expects one or more values as «right» operand.
static short SOUNDS_UNLIKE
          The operator SOUNDS_UNLIKE expects one or more values as «right» operand.
 
Constructor Summary
protected FilterOperators()
           
 
Method Summary
static int fromString(String code)
          Returns the code of the passed code's string representation.
static int max()
          Returns the biggest defined integer constant or Integer.MIN_VALUE if no integer constant is defined.
static int min()
          Returns the smallest defined integer constant or Integer.MAX_VALUE if no integer constant is defined.
static String toString(int code)
          Returns a string representation of the passed code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOUNDS_UNLIKE

public static final short SOUNDS_UNLIKE
The operator SOUNDS_UNLIKE expects one or more values as «right» operand.

See Also:
Constant Field Values

IS_UNLIKE

public static final short IS_UNLIKE
The operator IS_UNLIKE expects one or more values with the wildcard characters '%' replacing any number of characters and '_' replacing a single character as «right» operands. The escape character is '\'.

See Also:
Constant Field Values

IS_OUTSIDE

public static final short IS_OUTSIDE
The operator IS_OUTSIDE expects a range specified by two values as «right» operand.

See Also:
Constant Field Values

IS_LESS_OR_EQUAL

public static final short IS_LESS_OR_EQUAL
The operator IS_LESS_OR_EQUAL expects one value as «right» operand.

See Also:
Constant Field Values

IS_LESS

public static final short IS_LESS
The operator IS_LESS expects one value as «right» operand.

See Also:
Constant Field Values

IS_NOT_IN

public static final short IS_NOT_IN
The operator IS_NOT_IN expects a set of zero, one or more values as «right» operand.

An IS_NOT_IN expression with zero values always evaluates to true.

See Also:
Constant Field Values

IS_IN

public static final short IS_IN
The operator IS_IN expects a set of zero, one or more values as «right» operand.

An IS_IN expression with zero values always evaluates to false.

See Also:
Constant Field Values

IS_GREATER_OR_EQUAL

public static final short IS_GREATER_OR_EQUAL
The operator IS_GREATER_OR_EQUAL expects one value as «right» operand.

See Also:
Constant Field Values

IS_GREATER

public static final short IS_GREATER
The operator IS_GREATER expects one value as «right» operand.

See Also:
Constant Field Values

IS_BETWEEN

public static final short IS_BETWEEN
The operator IS_BETWEEN expects a range specified by two values as «right» operand.

See Also:
Constant Field Values

IS_LIKE

public static final short IS_LIKE
The operator IS_LIKE expects one or more values with the wildcard characters '%' replacing any number of characters and '_' replacing a single character as «right» operands. The escape character is '\'.

See Also:
Constant Field Values

SOUNDS_LIKE

public static final short SOUNDS_LIKE
The operator SOUNDS_LIKE expects one or more values as «right» operand.

See Also:
Constant Field Values
Constructor Detail

FilterOperators

protected FilterOperators()
Method Detail

min

public static int min()
Returns the smallest defined integer constant or Integer.MAX_VALUE if no integer constant is defined.

Returns:
an int

max

public static int max()
Returns the biggest defined integer constant or Integer.MIN_VALUE if no integer constant is defined.

Returns:
an int

toString

public static String toString(int code)
Returns a string representation of the passed code

Parameters:
code - a code to be stringified
Returns:
a stringified code

fromString

public static int fromString(String code)
Returns the code of the passed code's string representation. The string representation is case insensitive.

Parameters:
code - a stringified code
Returns:
a code
Throws:
throws - an IllegalArgumentException if the stringified code cannot be resolved


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.