Class TableMigrator.Result

  • Enclosing class:
    TableMigrator

    public static class TableMigrator.Result
    extends java.lang.Object
    Migration result.
    • Constructor Summary

      Constructors 
      Constructor Description
      Result​(java.lang.String tableSql, java.lang.String foreignKeySql)
      Creates the migration result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getForeignKeySql()
      Gets the sql code to migrate the foreign keys.
      java.lang.String getTableSql()
      Gets the sql code to migrate the table.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Result

        public Result​(java.lang.String tableSql,
                      java.lang.String foreignKeySql)
        Creates the migration result.
        Parameters:
        tableSql - the sql code to migrate the table
        foreignKeySql - the sql code to migrate the foreign keys
    • Method Detail

      • getTableSql

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

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