sonic-android/docs/javadoc/com/tencent/sonic/sdk/SonicDBHelper.html
com.tencent.sonic.sdk
java.lang.Object
public classSonicDBHelperextends android.database.sqlite.SQLiteOpenHelper
SonicDBHelper interacts with the database, such as managing database creation and the version management.
所有方法 静态方法 实例方法 具体方法 | 限定符和类型 | 方法和说明 |
| --- | --- |
| static SonicDBHelper | getInstance() |
| boolean | isUpgrading()
Indicates whether is upgrading or not.
|
| void | onCreate(android.database.sqlite.SQLiteDatabase db)
Called when the database is created for the first time.
|
| void | onUpgrade(android.database.sqlite.SQLiteDatabase db, int oldVersion, int newVersion) |
-
close, getDatabaseName, getReadableDatabase, getWritableDatabase, onConfigure, onDowngrade, onOpen, setWriteAheadLoggingEnabled
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static[SonicDBHelper](../../../../com/tencent/sonic/sdk/SonicDBHelper.html "com.tencent.sonic.sdk中的类")getInstance()
-
public void onCreate(android.database.sqlite.SQLiteDatabase db)
Called when the database is created for the first time. This is where the creation of tables and the initial population of the tables should happen.
指定者:onCreate 在类中 android.database.sqlite.SQLiteOpenHelper参数:db - The database.
-
public void onUpgrade(android.database.sqlite.SQLiteDatabase db,
int oldVersion,
int newVersion)
指定者:onUpgrade 在类中 android.database.sqlite.SQLiteOpenHelper
-
public boolean isUpgrading()
Indicates whether is upgrading or not. If return true, It will fail to create session. 返回:is Upgrading or not