Class TableMigrator.Result

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

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

    • Result

      public Result(String tableSql, String foreignKeySql, String warningSql)
      Creates the migration result.
      Parameters:
      tableSql - the sql code to migrate the table
      foreignKeySql - the sql code to migrate the foreign keys
      warningSql - generated SQL as comments
  • Method Details

    • getTableSql

      public String getTableSql()
      Gets the sql code to migrate the table.
      Returns:
      the sql code, empty string if nothing to migrate
    • getForeignKeySql

      public String getForeignKeySql()
      Gets the sql code to migrate the foreign keys.
      Returns:
      the sql code, empty string if nothing to migrate
    • getWarningSql

      public String getWarningSql()
      Gets the optional SQL code as comment.
      Returns:
      the warnings containing migrations that are not really necessary to run the application properly