Package io.nevernull.mobileui.ormlite
Interface OnUpgradeListener
-
public interface OnUpgradeListener
Listener for database upgrades to higher user versions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onUpgrade(com.j256.ormlite.support.ConnectionSource connectionSource, int oldVersion, int newVersion)
Method being called, whenever your supplied user version (viaOrmLiteConfiguration
) is higher than the version given in the existing database.
-
-
-
Method Detail
-
onUpgrade
void onUpgrade(@Nonnull com.j256.ormlite.support.ConnectionSource connectionSource, int oldVersion, int newVersion)
Method being called, whenever your supplied user version (viaOrmLiteConfiguration
) is higher than the version given in the existing database.- Parameters:
connectionSource
- the OrmLite connectionSourceoldVersion
- the version read from the existing databasenewVersion
- your supplied version
-
-