Back to Vassonic

SonicDBHelper (sdk 3.0.0 API)

sonic-android/docs/javadoc/com/tencent/sonic/sdk/SonicDBHelper.html

3.1.13.8 KB
Original Source

跳过导航链接

com.tencent.sonic.sdk

类 SonicDBHelper

  • java.lang.Object

    • android.database.sqlite.SQLiteOpenHelper
      • com.tencent.sonic.sdk.SonicDBHelper

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) |

- 

从类继承的方法 android.database.sqlite.SQLiteOpenHelper

close, getDatabaseName, getReadableDatabase, getWritableDatabase, onConfigure, onDowngrade, onOpen, setWriteAheadLoggingEnabled

- 

从类继承的方法 java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

方法详细资料

- 

getInstance

public static[SonicDBHelper](../../../../com/tencent/sonic/sdk/SonicDBHelper.html "com.tencent.sonic.sdk中的类")getInstance()
- 

onCreate

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.

- 

onUpgrade

public void onUpgrade(android.database.sqlite.SQLiteDatabase db,
                      int oldVersion,
                      int newVersion)

指定者:onUpgrade 在类中 android.database.sqlite.SQLiteOpenHelper

- 

isUpgrading

public boolean isUpgrading()

Indicates whether is upgrading or not. If return true, It will fail to create session. 返回:is Upgrading or not

跳过导航链接