- java.lang.Object
-
- org.tentackle.model.migrate.IndexMigrator.Result
-
- Enclosing class:
- IndexMigrator
public static class IndexMigrator.Result extends java.lang.ObjectMigration result.
-
-
Constructor Summary
Constructors Constructor Description Result(java.lang.String dropSql, java.lang.String createSql)Creates the migration result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCreateSql()Gets the sql code to create indexes.java.lang.StringgetDropSql()Gets the sql code to drop indexex.IndexMigrator.Resultsum(IndexMigrator.Result result)Builds the sum of this and another result.
-
-
-
Method Detail
-
getDropSql
public java.lang.String getDropSql()
Gets the sql code to drop indexex.- Returns:
- the sql code, empty string if nothing to migrate
-
getCreateSql
public java.lang.String getCreateSql()
Gets the sql code to create indexes.- Returns:
- the sql code, empty string if nothing to migrate
-
sum
public IndexMigrator.Result sum(IndexMigrator.Result result)
Builds the sum of this and another result.- Parameters:
result- the result to sum up- Returns:
- the sum
-
-