public interface DataConsistencyCheck
An interface for data consistency checks.
Modifier and Type | Method and Description |
---|---|
Optional<String> |
execute(boolean quickCheck)
Executes this data consistency check.
|
Optional<org.flywaydb.core.api.MigrationVersion> |
getMaximumMigrationVersion()
The maximum version where this check should be applied (inclusive).
|
Optional<org.flywaydb.core.api.MigrationVersion> |
getMinimumMigrationVersion()
The minimum version where this check should be applied (inclusive).
|
boolean |
isFatalWhenProblemsFound()
Indicates whether problems found by this data consistency check are fatal.
|
boolean |
isTenantSpecific()
Checks whether this data consistency check is tenant specific.
|
Optional<org.flywaydb.core.api.MigrationVersion> getMinimumMigrationVersion()
The minimum version where this check should be applied (inclusive). <p> If Optional.empty() is returned then no restriction will be applied. </p>
Optional<org.flywaydb.core.api.MigrationVersion> getMaximumMigrationVersion()
The maximum version where this check should be applied (inclusive). <p> If Optional.empty() is returned then no restriction will be applied. </p>
boolean isTenantSpecific()
Checks whether this data consistency check is tenant specific.
true
if this data consistency check is tenant specificboolean isFatalWhenProblemsFound()
Indicates whether problems found by this data consistency check are fatal.
true
if problems found by this data consistency check are fatalOptional<String> execute(boolean quickCheck)
Executes this data consistency check.
For tenant-specific checks, the tenant to be checked will already be set as the current tenant before this method is called.
quickCheck
- true
if only a quick check should be performedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.