public class SQLiteHelper extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static SQLiteHelper |
db()
获取默认数据库参数
|
static SQLiteHelper |
db(android.content.Context context,
String name,
int version)
动态设置数据库参数
|
<T,ID> SqlBeanHelper<T,ID> |
get(Class<T> clazz)
获得数据库连接
|
static void |
init(android.content.Context context,
String name,
int version)
初始化默认数据库参数
|
public static void init(android.content.Context context,
String name,
int version)
context - 上下文name - 数据库名称version - 数据库版本public static SQLiteHelper db(android.content.Context context, String name, int version)
context - 上下文name - 数据库名称version - 数据库版本public static SQLiteHelper db()
public <T,ID> SqlBeanHelper<T,ID> get(Class<T> clazz)
clazz - Copyright © 2023. All rights reserved.