public interface DatabaseLifecycleHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onConfigure(android.database.sqlite.SQLiteDatabase database)
Invoked during database configuration.
|
void |
onCreate(android.database.sqlite.SQLiteDatabase database)
Invoked after execution of DDL necessary to create database.
|
void |
onUpdate(android.database.sqlite.SQLiteDatabase db,
int oldVersion,
int newVersion,
boolean upgrade)
Method for DDL or DML
|
void onUpdate(android.database.sqlite.SQLiteDatabase db,
int oldVersion,
int newVersion,
boolean upgrade)
Method for DDL or DML
db - databaseoldVersion - current version of databasenewVersion - new version of databaseupgrade - if true is an upgrade operation, otherwise it's a
downgrade operation.void onCreate(android.database.sqlite.SQLiteDatabase database)
database - void onConfigure(android.database.sqlite.SQLiteDatabase database)
database - Copyright © 2017. All rights reserved.