Class MigratorConfiguration


  • public class MigratorConfiguration
    extends Object
    • Constructor Detail

      • MigratorConfiguration

        public MigratorConfiguration()
    • Method Detail

      • setLocation

        public MigratorConfiguration setLocation​(String location)
        Set scripts location
        Parameters:
        location - the location to set
        Returns:
        the class instance
      • setStorageType

        public MigratorConfiguration setStorageType​(StorageType storageType)
        Set the storage type
        Parameters:
        storageType - the storage type to set
        Returns:
        the class instance
      • setStartMigration

        public MigratorConfiguration setStartMigration​(int startMigration)
        Set the start migration table
        Parameters:
        startMigration - the start migration table to set
        Returns:
        the class instance
      • setBackwardMigration

        public MigratorConfiguration setBackwardMigration​(int backwardMigration)
        Set the backward migration table (-1 to disable)
        Parameters:
        backwardMigration - the backward migration table to set
        Returns:
        the class instance
      • load

        public Migrator load​(ADPPlugin plugin,
                             SQLDispatcher dispatcher)
        Load a new Migrator with this configuration
        Parameters:
        plugin - the plugin instance
        dispatcher - the SQL dispatcher
        Returns:
        a new Migrator instance