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 (via OrmLiteConfiguration) 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 (via OrmLiteConfiguration) is higher than the version given in the existing database.
        Parameters:
        connectionSource - the OrmLite connectionSource
        oldVersion - the version read from the existing database
        newVersion - your supplied version