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
where 查询条件的一些类型 如果无法满足要求请使用 whereSQL
Version:
0.0.1
Author:
scx567888
  • Enum Constant Details

    • IS_NULL

      public static final WhereType IS_NULL
      为空
    • IS_NOT_NULL

      public static final WhereType IS_NOT_NULL
      不为空
    • EQUAL

      public static final WhereType EQUAL
      等于
    • NOT_EQUAL

      public static final WhereType NOT_EQUAL
      不等于
    • LESS_THAN

      public static final WhereType LESS_THAN
      小于
    • LESS_THAN_OR_EQUAL

      public static final WhereType LESS_THAN_OR_EQUAL
      小于等于
    • GREATER_THAN

      public static final WhereType GREATER_THAN
      大于
    • GREATER_THAN_OR_EQUAL

      public static final WhereType GREATER_THAN_OR_EQUAL
      大于等于
    • LIKE

      public static final WhereType LIKE
      Like
    • NOT_LIKE

      public static final WhereType NOT_LIKE
      Not Like
    • LIKE_REGEX

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

      public static final WhereType NOT_LIKE_REGEX
      Like 正则表达式
    • IN

      public static final WhereType IN
      IN
    • NOT_IN

      public static final WhereType NOT_IN
      NOT IN
    • BETWEEN

      public static final WhereType BETWEEN
      在之间
    • NOT_BETWEEN

      public static final WhereType NOT_BETWEEN
      不在之间
    • JSON_CONTAINS

      public static final WhereType JSON_CONTAINS
      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
    • of

      public static WhereType of(String whereTypeStr)
      a
      Parameters:
      whereTypeStr - a
      Returns:
      a
    • paramSize

      public int paramSize()
      获取参数数量
      Returns:
      参数数量