- java.lang.Object
-
- java.lang.Enum<JoinOperator>
-
- com.speedment.runtime.join.stage.JoinOperator
-
- All Implemented Interfaces:
Serializable,Comparable<JoinOperator>
public enum JoinOperator extends Enum<JoinOperator>
- Author:
- Per Minborg
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALGREATER_OR_EQUALGREATER_THANLESS_OR_EQUALLESS_THANNOT_EQUAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSymmetric()Returns if this operation is symmetric with respect to its parameters.StringsqlOperator()JoinOperatorswapEquivalent()Returns a JoinOperator that would produce an equivalent predicate when the arguments to the operator are applied swapped.static JoinOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static JoinOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL
public static final JoinOperator EQUAL
-
NOT_EQUAL
public static final JoinOperator NOT_EQUAL
-
LESS_THAN
public static final JoinOperator LESS_THAN
-
LESS_OR_EQUAL
public static final JoinOperator LESS_OR_EQUAL
-
GREATER_THAN
public static final JoinOperator GREATER_THAN
-
GREATER_OR_EQUAL
public static final JoinOperator GREATER_OR_EQUAL
-
-
Method Detail
-
values
public static JoinOperator[] 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 (JoinOperator c : JoinOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JoinOperator 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 nameNullPointerException- if the argument is null
-
sqlOperator
public String sqlOperator()
-
isSymmetric
public boolean isSymmetric()
Returns if this operation is symmetric with respect to its parameters. More formally returns true if: A oper B is true if and only if B oper A is true.- Returns:
- if this operation is symmetric with respect to its parameters
-
swapEquivalent
public JoinOperator swapEquivalent()
Returns a JoinOperator that would produce an equivalent predicate when the arguments to the operator are applied swapped.- Returns:
- a JoinOperator that would produce an equivalent predicate when the arguments to the operator are applied swapped.
- Throws:
IllegalStateException- if no such equivalent JoinOperator exists
-
-