public class DuplicateDefinitionKeyCheck extends Object implements DataConsistencyCheck
Checks for duplicate definitions.
| Constructor and Description |
|---|
DuplicateDefinitionKeyCheck(CurrentTenantService currentTenantService,
TenantLookupService tenantLookupService,
AnyWorkObjectDefinitionService definitionService,
MaintenanceService maintenanceService,
OnePersistence onePersistence,
StatisticsAwareCache statisticsAwareCache,
boolean fixDuplicateDefinitions) |
| 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 DuplicateDefinitionKeyCheck(CurrentTenantService currentTenantService, TenantLookupService tenantLookupService, AnyWorkObjectDefinitionService definitionService, MaintenanceService maintenanceService, OnePersistence onePersistence, StatisticsAwareCache statisticsAwareCache, boolean fixDuplicateDefinitions)
public Optional<org.flywaydb.core.api.MigrationVersion> getMinimumMigrationVersion()
DataConsistencyCheckThe 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 DataConsistencyCheckpublic Optional<org.flywaydb.core.api.MigrationVersion> getMaximumMigrationVersion()
DataConsistencyCheckThe 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 DataConsistencyCheckpublic boolean isTenantSpecific()
DataConsistencyCheckChecks whether this data consistency check is tenant specific.
isTenantSpecific in interface DataConsistencyChecktrue if this data consistency check is tenant specificpublic boolean isFatalWhenProblemsFound()
DataConsistencyCheckIndicates whether problems found by this data consistency check are fatal.
isFatalWhenProblemsFound in interface DataConsistencyChecktrue if problems found by this data consistency check are fatalpublic Optional<String> execute(boolean quickCheck)
DataConsistencyCheckExecutes 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 DataConsistencyCheckquickCheck - true if only a quick check should be performedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.