类 SQLiteHelper

java.lang.Object
cn.vonce.sql.android.helper.SQLiteHelper

public class SQLiteHelper extends Object
数据库连接助手
作者:
Jovi
  • 方法详细资料

    • init

      public static void init(android.content.Context context, String name, int version)
      初始化默认数据库参数
      参数:
      context - 上下文
      name - 数据库名称
      version - 数据库版本
    • db

      public static SQLiteHelper db(android.content.Context context, String name, int version)
      动态设置数据库参数
      参数:
      context - 上下文
      name - 数据库名称
      version - 数据库版本
      返回:
    • db

      public static SQLiteHelper db()
      获取默认数据库参数
      返回:
    • get

      public <T, ID> SqlBeanHelper<T,ID> get(Class<T> clazz)
      获得数据库连接
      参数:
      clazz -
      返回: