Class Evolution

java.lang.Object
play.db.evolutions.Evolution

public final class Evolution extends Object
An evolution.
  • Constructor Details

    • Evolution

      public Evolution(int revision, String sqlUp, String sqlDown)
      Create the evolution.
      Parameters:
      revision - The revision of the evolution to create.
      sqlUp - The SQL script for bringing the evolution up.
      sqlDown - The SQL script for tearing the evolution down.
  • Method Details

    • getRevision

      public int getRevision()
      Get the revision of the evolution.
      Returns:
      The revision of the evolution to create.
    • getSqlUp

      public String getSqlUp()
      Get the SQL script for bringing the evolution up.
      Returns:
      the sql script.
    • getSqlDown

      public String getSqlDown()
      Get the SQL script for tearing the evolution down.
      Returns:
      the sql script.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object