java.lang.Object
org.tentackle.model.migrate.IndexMigrator.Result
- Enclosing class:
- IndexMigrator
Migration result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the sql code to create indexes.Gets the sql code to drop or rename indexes.sum(IndexMigrator.Result result) Builds the sum of this and another result.
-
Constructor Details
-
Result
Creates the migration result.- Parameters:
dropSql- the sql code to drop or rename indexescreateSql- the sql code to create indexes
-
-
Method Details
-
getDropSql
Gets the sql code to drop or rename indexes.- Returns:
- the sql code, empty string if nothing to migrate
-
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
-