Interface JavaBasedMigration

All Superinterfaces:
Migration

public interface JavaBasedMigration extends Migration
Interface to be implemented for Java-based migrations.
Since:
0.0.1
Author:
Michael J. Simons
  • Method Details

    • getVersion

      default MigrationVersion getVersion()
      Specified by:
      getVersion in interface Migration
      Returns:
      The version.
    • getDescription

      default String getDescription()
      Specified by:
      getDescription in interface Migration
      Returns:
      Some description.
    • getSource

      default String getSource()
      Specified by:
      getSource in interface Migration
      Returns:
      Something that describes the source of this migration.
    • getDefaultConstructorFor

      static <T extends JavaBasedMigration> Constructor<T> getDefaultConstructorFor(Class<T> c) throws NoSuchMethodException
      Helper method for retrieving the default constructor of a given class. When such a constructor exist, it will be made accessible.
      Type Parameters:
      T - The type of the class
      Parameters:
      c - The class whose constructor should be returned
      Returns:
      The default constructor
      Throws:
      NoSuchMethodException - If there is no such default constructor
      Since:
      1.13.0