@Override public void onOpen(SQLiteDatabase db) { if (databaseHelperListener != null) { databaseHelperListener.onOpen(db); } checkForeignKeySupport(db); }
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { if (databaseHelperListener != null) { databaseHelperListener.onUpgrade(db, oldVersion, newVersion); } checkForeignKeySupport(db); executeCreations(db); executeMigrations(db, oldVersion, newVersion); }
@Override public void onCreate(SQLiteDatabase db) { if (databaseHelperListener != null) { databaseHelperListener.onCreate(db); } checkForeignKeySupport(db); executeCreations(db); executeMigrations(db, -1, databaseDefinition.getDatabaseVersion()); }
@Override public void onUpgrade(DatabaseWrapper database, int oldVersion, int newVersion) { if (helperListener != null) { helperListener.onUpgrade(database, oldVersion, newVersion); } }
@Override public void onCreate(DatabaseWrapper database) { if (helperListener != null) { helperListener.onCreate(database); } }