- java.lang.Object
-
- org.tentackle.model.migrate.TableMigrator.Result
-
- Enclosing class:
- TableMigrator
public static class TableMigrator.Result extends java.lang.ObjectMigration result.
-
-
Constructor Summary
Constructors Constructor Description Result(java.lang.String tableSql, java.lang.String foreignKeySql, java.lang.String warningSql)Creates the migration result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetForeignKeySql()Gets the sql code to migrate the foreign keys.java.lang.StringgetTableSql()Gets the sql code to migrate the table.java.lang.StringgetWarningSql()Gets the optional SQL code as comment.
-
-
-
Constructor Detail
-
Result
public Result(java.lang.String tableSql, java.lang.String foreignKeySql, java.lang.String warningSql)Creates the migration result.- Parameters:
tableSql- the sql code to migrate the tableforeignKeySql- the sql code to migrate the foreign keyswarningSql- generated SQL as comments
-
-
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
-
getWarningSql
public java.lang.String getWarningSql()
Gets the optional SQL code as comment.- Returns:
- the warnings containing migrations that are not really necessary to run the application properly
-
-