java.lang.Object
com.baomidou.mybatisplus.generator.config.po.TableInfo

public class TableInfo extends Object
表信息,关联到当前字段信息
从以下版本开始:
2016/8/30
作者:
YangHu, lanjerry
  • 构造器详细资料

    • TableInfo

      public TableInfo(@NotNull @NotNull ConfigBuilder configBuilder, @NotNull @NotNull String name)
      构造方法
      参数:
      configBuilder - 配置构建
      name - 表名
      从以下版本开始:
      3.5.0
  • 方法详细资料

    • setConvert

      protected TableInfo setConvert()
      从以下版本开始:
      3.5.0
    • getEntityPath

      public String getEntityPath()
    • setEntityName

      public TableInfo setEntityName(@NotNull @NotNull String entityName)
      参数:
      entityName - 实体名称
      返回:
      this
    • addField

      public void addField(@NotNull @NotNull TableField field)
      添加字段
      参数:
      field - 字段
      从以下版本开始:
      3.5.0
    • addImportPackages

      public TableInfo addImportPackages(@NotNull @NotNull String... pkgs)
      参数:
      pkgs - 包空间
      返回:
      this
      从以下版本开始:
      3.5.0
    • addImportPackages

      public TableInfo addImportPackages(@NotNull @NotNull List<String> pkgList)
    • getFieldNames

      public String getFieldNames()
      转换filed实体为 xml mapper 中的 base column 字符串信息
    • importPackage

      public void importPackage()
      导包处理
      从以下版本开始:
      3.5.0
    • processTable

      public void processTable()
      处理表信息(文件名与导包)
      从以下版本开始:
      3.5.0
    • setComment

      public TableInfo setComment(String comment)
    • setHavePrimaryKey

      public TableInfo setHavePrimaryKey(boolean havePrimaryKey)
    • getImportPackages

      @NotNull public @NotNull Set<String> getImportPackages()
    • isConvert

      public boolean isConvert()
    • setConvert

      public TableInfo setConvert(boolean convert)
    • getName

      public String getName()
    • getComment

      public String getComment()
    • getEntityName

      public String getEntityName()
    • getMapperName

      public String getMapperName()
    • getXmlName

      public String getXmlName()
    • getServiceName

      public String getServiceName()
    • getServiceImplName

      public String getServiceImplName()
    • getControllerName

      public String getControllerName()
    • getFields

      @NotNull public @NotNull List<TableField> getFields()
    • isHavePrimaryKey

      public boolean isHavePrimaryKey()
    • getCommonFields

      @NotNull public @NotNull List<TableField> getCommonFields()
    • isServiceInterface

      public boolean isServiceInterface()
      获取是否生成service接口
      返回: