Class Update.Default

All Implemented Interfaces:
Serializable, UpdateOperable, WhereOperable<Update>, Where<Update>, Update, Segment, Statement
Enclosing interface:
Update

public static class Update.Default extends Where.Default<Update> implements Update
Update默认实现
Author:
Maning
See Also:
  • Method Details

    • pseudoSql

      public String pseudoSql()
      Description copied from interface: Segment
      伪SQL,用于直接toString时显示
      Specified by:
      pseudoSql in interface Segment
      Overrides:
      pseudoSql in class Where.Default<Update>
      Returns:
      伪SQL
    • set

      public Update set(Column column, Object val)
      Description copied from interface: UpdateOperable
      set单个列和值,设置多个值请多次调用
      val支持传入null
      val支持传入Expression及其子类
      val支持传入Select 作为标量子查询(需确保1行1列,否则执行失败)
      val支持传入内置支持类型或自定义ColumnMapper类型,但最终受限于数据库支持
      若配置了SerializationMapper 可传入其可序列化的类型,但最终受限于数据库支持
      val不支持传入非Expression及子类和Select的其他Segment类型
      Specified by:
      set in interface UpdateOperable
      Parameters:
      column - 列
      val - 值
      Returns:
      update语句
    • sets

      public Map<String,Object> sets()
      Description copied from interface: Update
      获取已设置的键值对
      Specified by:
      sets in interface Update
      Returns:
      已设置的键值对
    • table

      public Table table()
      Description copied from interface: Update
      Specified by:
      table in interface Update
      Returns:
    • with

      public With with()
      Description copied from interface: Update
      CTE
      Specified by:
      with in interface Update
      Returns:
      CTE