Package ru.sergkorot.dynamic.model.enums
Enum Class OperationType
- All Implemented Interfaces:
Serializable,Comparable<OperationType>,Constable
- Author:
- Sergey Korotaev Enum which name of the operation and link for operation method by name
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionElement of enum for constructing contains operationElement of enum for constructing equals operationElement of enum for constructing greater than operationElement of enum for constructing greater than or equals operationElement of enum for constructing in operationElement of enum for constructing is null operationElement of enum for constructing less than operationElement of enum for constructing less than or equals operationElement of enum for constructing like operationElement of enum for constructing not equals operationElement of enum for constructing not in operation -
Method Summary
Modifier and TypeMethodDescription<R> Operation<R>getOperation(OperationProvider<R> operationProvider) Determine the next operationstatic OperationTypeGet OperationType by operation namestatic OperationTypeReturns the enum constant of this class with the specified name.static OperationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IN
Element of enum for constructing in operation -
NOT_IN
Element of enum for constructing not in operation -
LIKE
Element of enum for constructing like operation -
EQUAL
Element of enum for constructing equals operation -
NOT_EQUAL
Element of enum for constructing not equals operation -
IS_NULL
Element of enum for constructing is null operation -
LESS_THAN
Element of enum for constructing less than operation -
GREATER_THAN
Element of enum for constructing greater than operation -
LESS_THAN_OR_EQUALS
Element of enum for constructing less than or equals operation -
GREATER_THAN_OR_EQUALS
Element of enum for constructing greater than or equals operation -
CONTAINS
Element of enum for constructing contains operation
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
of
Get OperationType by operation name- Parameters:
typeName- - operation name- Returns:
- OperationType
-
getOperation
Determine the next operation- Type Parameters:
R- interfaces for data access (for example, Specification)- Parameters:
operationProvider- OperationProvider- Returns:
- which one operation will do from Operation
- See Also:
-