类 JdbcGeneratorEngine

java.lang.Object
com.iplatform.generator.JdbcGeneratorEngine

public class JdbcGeneratorEngine extends Object
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getFieldsObject

      public List<com.walker.dbmeta.FieldInfo> getFieldsObject(String tableName)
      返回字段信息集合
      参数:
      tableName - 表名称
      返回:
    • getTableNamesByLike

      public List<String> getTableNamesByLike(String tableNameLike)
      返回表名称集合。
      参数:
      tableNameLike - 模糊查询表前缀
      返回:
    • queryPageTableNamesByLike

      public com.walker.db.page.GenericPager<com.walker.db.TableInfo> queryPageTableNamesByLike(String tableNameLike)
      分页返回表信息集合。当前页信息通过对象: ListPageContext.getCurrentPageIndex()方法获得。
      参数:
      tableNameLike - 表名模糊查询,如果为空字符串则查询所有。
      返回:
    • queryOneTableInfo

      public com.walker.db.TableInfo queryOneTableInfo(String tableName)
      返回指定表元数据对象。
      参数:
      tableName - 表名称
      返回:
    • generatePoFile

      public void generatePoFile(String tableNamePrefix, String mbbs, String outputFile) throws Exception
      生成相应前缀的表PO对象。
      参数:
      tableNamePrefix - 前缀名,儒:sys_
      mbbs - 生成标识,默认为:po,mapper
      outputFile - 生成的文件,如:d:/po.zip
      抛出:
      Exception - 如果失败抛出异常
    • generateOnePoZipFile

      public byte[] generateOnePoZipFile(String tableName)
      获得一个表的PO生成文件,返回一个zip压缩包。

      该方法在代码生成功能中,让用户下载一个表数据库PO文件。
      参数:
      tableName - 表名称
      返回:
    • generateOnePoFile

      public void generateOnePoFile(String tableName, String outputFile) throws Exception
      生成一个表的po文件。
      参数:
      tableName - 具体的表名称,不是前缀
      outputFile -
      抛出:
      Exception