Class Insert.Default

java.lang.Object
org.huiche.ast.statement.Insert.Default
All Implemented Interfaces:
Serializable, InsertOperable, Insert, Segment, Statement
Enclosing interface:
Insert

public static class Insert.Default extends Object implements Insert
Insert默认实现
Author:
Maning
See Also:
  • Method Details

    • columns

      public Insert columns(Column... columns)
      Description copied from interface: InsertOperable
      设置插入列, 只能设置1次或0次(等同插入全部列),再次设置则覆盖
      Specified by:
      columns in interface InsertOperable
      Parameters:
      columns - 列
      Returns:
      语句
    • select

      public Insert select(Select select)
      Description copied from interface: InsertOperable
      设置select,构造insert select语句,与InsertOperable.values(Object...)冲突,二者只能设置其一
      Specified by:
      select in interface InsertOperable
      Parameters:
      select - 查询语句
      Returns:
      语句
    • values

      public Insert values(List<?> values)
      Description copied from interface: InsertOperable
      插入一行的数据,多行请多次调用,与InsertOperable.select(Select)冲突,二者只能设置其一
      Specified by:
      values in interface InsertOperable
      Parameters:
      values - 值
      Returns:
      插入语句
    • columns

      public Column[] columns()
      Description copied from interface: Insert
      要插入数据的列
      Specified by:
      columns in interface Insert
      Returns:
    • select

      public Select select()
      Description copied from interface: Insert
      查询
      Specified by:
      select in interface Insert
      Returns:
      查询
    • table

      public Table table()
      Description copied from interface: Insert
      要插入数据的表
      Specified by:
      table in interface Insert
      Returns:
    • values

      public List<List<?>> values()
      Description copied from interface: Insert
      要插入的数据
      Specified by:
      values in interface Insert
      Returns:
      数据
    • with

      public With with()
      Description copied from interface: Insert
      CTE
      Specified by:
      with in interface Insert
      Returns:
      CTE
    • pseudoSql

      public String pseudoSql()
      Description copied from interface: Segment
      伪SQL,用于直接toString时显示
      Specified by:
      pseudoSql in interface Segment
      Returns:
      伪SQL