Enum Class WhereType

java.lang.Object
java.lang.Enum<WhereType>
cool.scx.data.query.WhereType
All Implemented Interfaces:
Serializable, Comparable<WhereType>, Constable

public enum WhereType extends Enum<WhereType>
WhereType
Version:
0.0.1
Author:
scx567888
  • Enum Constant Details

    • EQ

      public static final WhereType EQ
      等于 == (支持 null 比较)
    • NE

      public static final WhereType NE
      不等于 != (支持 null 比较)
    • LT

      public static final WhereType LT
      小于 <
    • LTE

      public static final WhereType LTE
      小于等于 <=
    • GT

      public static final WhereType GT
      大于 >
    • GTE

      public static final WhereType GTE
      大于等于 >=
    • LIKE

      public static final WhereType LIKE
      双端模糊匹配
    • NOT_LIKE

      public static final WhereType NOT_LIKE
      NOT 双端模糊匹配
    • LIKE_REGEX

      public static final WhereType LIKE_REGEX
      正则表达式匹配
    • NOT_LIKE_REGEX

      public static final WhereType NOT_LIKE_REGEX
      NOT 正则表达式匹配
    • IN

      public static final WhereType IN
      在集合内 (集合元素中 null 也是合法匹配项, 空集合则表示不匹配任何项)
    • NOT_IN

      public static final WhereType NOT_IN
      不在集合内 (集合元素中 null 也是合法匹配项, 空集合则表示不匹配任何项)
    • BETWEEN

      public static final WhereType BETWEEN
      在范围内 (low <= field <= high)
    • NOT_BETWEEN

      public static final WhereType NOT_BETWEEN
      不在范围内 (field < low 或 field > high)
    • JSON_CONTAINS

      public static final WhereType JSON_CONTAINS
      JSON 包含某子结构, 针对 JSON 对象或数组的子集匹配
    • JSON_OVERLAPS

      public static final WhereType JSON_OVERLAPS
      JSON 数组之间有交集
  • Method Details

    • values

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