Enum Class OperationType

java.lang.Object
java.lang.Enum<OperationType>
ru.sergkorot.dynamic.model.enums.OperationType
All Implemented Interfaces:
Serializable, Comparable<OperationType>, Constable

public enum OperationType extends Enum<OperationType>
Author:
Sergey Korotaev Enum which name of the operation and link for operation method by name
  • Enum Constant Details

    • IN

      public static final OperationType IN
      Element of enum for constructing in operation
    • NOT_IN

      public static final OperationType NOT_IN
      Element of enum for constructing not in operation
    • LIKE

      public static final OperationType LIKE
      Element of enum for constructing like operation
    • EQUAL

      public static final OperationType EQUAL
      Element of enum for constructing equals operation
    • NOT_EQUAL

      public static final OperationType NOT_EQUAL
      Element of enum for constructing not equals operation
    • IS_NULL

      public static final OperationType IS_NULL
      Element of enum for constructing is null operation
    • LESS_THAN

      public static final OperationType LESS_THAN
      Element of enum for constructing less than operation
    • GREATER_THAN

      public static final OperationType GREATER_THAN
      Element of enum for constructing greater than operation
    • LESS_THAN_OR_EQUALS

      public static final OperationType LESS_THAN_OR_EQUALS
      Element of enum for constructing less than or equals operation
    • GREATER_THAN_OR_EQUALS

      public static final OperationType GREATER_THAN_OR_EQUALS
      Element of enum for constructing greater than or equals operation
    • CONTAINS

      public static final OperationType CONTAINS
      Element of enum for constructing contains operation
  • Method Details

    • values

      public static OperationType[] 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

      public static OperationType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static OperationType of(String typeName)
      Get OperationType by operation name
      Parameters:
      typeName - - operation name
      Returns:
      OperationType
    • getOperation

      public <R> Operation<R> getOperation(OperationProvider<R> operationProvider)
      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: