Class AddPrimaryKey

java.lang.Object
org.huiche.core.ast.Segment.Default
org.huiche.ddl.statement.AddPrimaryKey
All Implemented Interfaces:
Serializable, Segment, Statement, DDLStatement

public class AddPrimaryKey extends Segment.Default implements DDLStatement
添加主键语句
Author:
Maning
See Also:
  • Constructor Details

    • AddPrimaryKey

      public AddPrimaryKey(String table, List<String> columns)
      构造
      Parameters:
      table - 表
      columns - 列
  • Method Details

    • of

      public static AddPrimaryKey of(String table, List<String> columns)
      添加主键语句
      Parameters:
      table - 表
      columns - 列
      Returns:
      添加主键语句
    • columns

      public List<String> columns()
      主键列
      Returns:
      主键列
    • pseudoSql

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

      public String table()
      Returns: