Class Evolution


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

      • 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 Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object