Enum Class SqlMethod

java.lang.Object
java.lang.Enum<SqlMethod>
com.baomidou.mybatisplus.core.enums.SqlMethod
All Implemented Interfaces:
Serializable, Comparable<SqlMethod>, Constable

public enum SqlMethod extends Enum<SqlMethod>
MybatisPlus 支持 SQL 方法
Since:
2016-01-23
Author:
hubin
  • Enum Constant Details

    • INSERT_ONE

      public static final SqlMethod INSERT_ONE
      插入
    • UPSERT_ONE

      public static final SqlMethod UPSERT_ONE
    • DELETE_BY_ID

      public static final SqlMethod DELETE_BY_ID
      删除
    • DELETE_BY_MAP

      @Deprecated public static final SqlMethod DELETE_BY_MAP
      Deprecated.
    • DELETE

      public static final SqlMethod DELETE
    • DELETE_BATCH_BY_IDS

      @Deprecated public static final SqlMethod DELETE_BATCH_BY_IDS
      Deprecated.
    • DELETE_BY_IDS

      public static final SqlMethod DELETE_BY_IDS
      Since:
      3.5.7
    • LOGIC_DELETE_BY_ID

      public static final SqlMethod LOGIC_DELETE_BY_ID
      逻辑删除
    • LOGIC_DELETE_BY_MAP

      public static final SqlMethod LOGIC_DELETE_BY_MAP
    • LOGIC_DELETE

      public static final SqlMethod LOGIC_DELETE
    • LOGIC_DELETE_BATCH_BY_IDS

      @Deprecated public static final SqlMethod LOGIC_DELETE_BATCH_BY_IDS
      Deprecated.
    • LOGIC_DELETE_BY_IDS

      public static final SqlMethod LOGIC_DELETE_BY_IDS
      Since:
      3.5.7
    • UPDATE_BY_ID

      public static final SqlMethod UPDATE_BY_ID
      修改
    • UPDATE

      public static final SqlMethod UPDATE
    • LOGIC_UPDATE_BY_ID

      public static final SqlMethod LOGIC_UPDATE_BY_ID
      逻辑删除 -> 修改
    • SELECT_BY_ID

      public static final SqlMethod SELECT_BY_ID
      查询
    • SELECT_BY_MAP

      @Deprecated public static final SqlMethod SELECT_BY_MAP
      Deprecated.
    • SELECT_BATCH_BY_IDS

      @Deprecated public static final SqlMethod SELECT_BATCH_BY_IDS
      Deprecated.
    • SELECT_BY_IDS

      public static final SqlMethod SELECT_BY_IDS
      Since:
      3.5.8
    • SELECT_ONE

      @Deprecated public static final SqlMethod SELECT_ONE
      Deprecated.
    • SELECT_COUNT

      public static final SqlMethod SELECT_COUNT
    • SELECT_LIST

      public static final SqlMethod SELECT_LIST
    • SELECT_PAGE

      @Deprecated public static final SqlMethod SELECT_PAGE
      Deprecated.
    • SELECT_MAPS

      public static final SqlMethod SELECT_MAPS
    • SELECT_MAPS_PAGE

      @Deprecated public static final SqlMethod SELECT_MAPS_PAGE
      Deprecated.
    • SELECT_OBJS

      public static final SqlMethod SELECT_OBJS
  • Method Details

    • values

      public static SqlMethod[] 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 SqlMethod 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
    • format

      public <A, B> String format(A a, B b)
    • format

      public <A, B, C> String format(A a, B b, C c)
    • format

      public <A, B, C, D> String format(A a, B b, C c, D d)
    • format

      public <A, B, C, D, E> String format(A a, B b, C c, D d, E e)
    • format

      public <A, B, C, D, E, F> String format(A a, B b, C c, D d, E e, F f)
    • getMethod

      public String getMethod()
    • getDesc

      public String getDesc()
    • getSqlTemplate

      public Object getSqlTemplate()