Enum CustomOperator
- java.lang.Object
-
- java.lang.Enum<CustomOperator>
-
- org.cyclos.entities.utils.queryextensions.CustomOperator
-
- All Implemented Interfaces:
com.querydsl.core.types.Operator,Serializable,Comparable<CustomOperator>
public enum CustomOperator extends Enum<CustomOperator> implements com.querydsl.core.types.Operator
Contains custom query operators, used by query extensions
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_BALANCE1ACCOUNT_BALANCE2ADD_DAYSADD_INTERVALBALANCE_SUMNAME_HIERARCHYORDER_HIERARCHYUNIX_TIMESTAMP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getType()static CustomOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static CustomOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNIX_TIMESTAMP
public static final CustomOperator UNIX_TIMESTAMP
-
ADD_DAYS
public static final CustomOperator ADD_DAYS
-
ADD_INTERVAL
public static final CustomOperator ADD_INTERVAL
-
BALANCE_SUM
public static final CustomOperator BALANCE_SUM
-
ACCOUNT_BALANCE1
public static final CustomOperator ACCOUNT_BALANCE1
-
ACCOUNT_BALANCE2
public static final CustomOperator ACCOUNT_BALANCE2
-
NAME_HIERARCHY
public static final CustomOperator NAME_HIERARCHY
-
ORDER_HIERARCHY
public static final CustomOperator ORDER_HIERARCHY
-
-
Method Detail
-
values
public static CustomOperator[] 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 (CustomOperator c : CustomOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomOperator 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
-
getType
public Class<?> getType()
- Specified by:
getTypein interfacecom.querydsl.core.types.Operator
-
-