public class DuplicateVariableCheck extends Object implements DataConsistencyCheck
Checks for duplicate variable entries.
Constructor and Description |
---|
DuplicateVariableCheck(OnePersistence onePersistence) |
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.
|
public DuplicateVariableCheck(OnePersistence onePersistence)
public Optional<org.flywaydb.core.api.MigrationVersion> getMinimumMigrationVersion()
DataConsistencyCheck
The minimum version where this check should be applied (inclusive). <p> If Optional.empty() is returned then no restriction will be applied. </p>
getMinimumMigrationVersion
in interface DataConsistencyCheck
public Optional<org.flywaydb.core.api.MigrationVersion> getMaximumMigrationVersion()
DataConsistencyCheck
The maximum version where this check should be applied (inclusive). <p> If Optional.empty() is returned then no restriction will be applied. </p>
getMaximumMigrationVersion
in interface DataConsistencyCheck
public boolean isTenantSpecific()
DataConsistencyCheck
Checks whether this data consistency check is tenant specific.
isTenantSpecific
in interface DataConsistencyCheck
true
if this data consistency check is tenant specificpublic boolean isFatalWhenProblemsFound()
DataConsistencyCheck
Indicates whether problems found by this data consistency check are fatal.
isFatalWhenProblemsFound
in interface DataConsistencyCheck
true
if problems found by this data consistency check are fatalpublic Optional<String> execute(boolean quickCheck)
DataConsistencyCheck
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.
execute
in interface DataConsistencyCheck
quickCheck
- true
if only a quick check should be performedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.