Enum Class Oper

java.lang.Object
java.lang.Enum<Oper>
cn.dinodev.spring.data.sql.Oper
All Implemented Interfaces:
Serializable, Comparable<Oper>, Constable

public enum Oper extends Enum<Oper>
Author:
Cody Lu
  • Enum Constant Details

    • EQ

      public static final Oper EQ
      等于
    • GT

      public static final Oper GT
      大于
    • LT

      public static final Oper LT
      小于
    • NE

      public static final Oper NE
      不等于
    • GTE

      public static final Oper GTE
      大于等于
    • LTE

      public static final Oper LTE
      小于等于
    • LIKE

      public static final Oper LIKE
      模糊匹配
    • NOT_LIKE

      public static final Oper NOT_LIKE
      不匹配
    • IN

      public static final Oper IN
      包含
    • NOT_IN

      public static final Oper NOT_IN
      不包含
    • IS_NULL

      public static final Oper IS_NULL
      等于空
    • IS_NOT_NULL

      public static final Oper IS_NOT_NULL
      不等于空
    • BETWEEN

      public static final Oper BETWEEN
      范围匹配
    • EXISTS

      public static final Oper EXISTS
      存在
  • Method Details

    • values

      public static Oper[] 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 Oper 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
    • getOp

      public String getOp()
      返回操作符
      Returns:
    • makeExpr

      public String makeExpr(String... params)
      生成相应的表达式
      Parameters:
      params -
      Returns:
    • hasValue

      public boolean hasValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Oper>