Class IndexMigrator.Result

java.lang.Object
org.tentackle.model.migrate.IndexMigrator.Result
Enclosing class:
IndexMigrator

public static class IndexMigrator.Result extends Object
Migration result.
  • Constructor Details

    • Result

      public Result(String dropSql, String createSql)
      Creates the migration result.
      Parameters:
      dropSql - the sql code to drop or rename indexes
      createSql - the sql code to create indexes
  • Method Details

    • getDropSql

      public String getDropSql()
      Gets the sql code to drop or rename indexes.
      Returns:
      the sql code, empty string if nothing to migrate
    • getCreateSql

      public String getCreateSql()
      Gets the sql code to create indexes.
      Returns:
      the sql code, empty string if nothing to migrate
    • sum

      Builds the sum of this and another result.
      Parameters:
      result - the result to sum up
      Returns:
      the sum