类 ScxDaoHelper

java.lang.Object
cool.scx.core.dao.ScxDaoHelper

public final class ScxDaoHelper extends Object

SQLDDLHelper class.

版本:
1.4.4
作者:
scx567888
  • 构造器详细资料

    • ScxDaoHelper

      public ScxDaoHelper()
  • 方法详细资料

    • fixTable

      public static void fixTable()

      fixTable.

    • checkNeedFixTable

      public static boolean checkNeedFixTable()
      检查是否有任何 (BaseModel) 类需要修复表
      返回:
      是否有
    • getTableAllColumnNames

      public static List<String> getTableAllColumnNames(Connection con, String databaseName, String tableName) throws SQLException
      根据连接 获取数据库中所有的字段
      参数:
      con - 连接
      databaseName - 数据库名称
      tableName - 表名称
      返回:
      如果表存在返回所有字段的名称 否则返回 null
      抛出:
      SQLException - s