public abstract class DatabaseVerifier extends Object
Modifier and Type | Field and Description |
---|---|
protected List<String> |
errors |
protected LegacyTableQueries |
legacyTableQueries |
Constructor and Description |
---|
DatabaseVerifier() |
Modifier and Type | Method and Description |
---|---|
void |
clearState()
This method will be called between runs of the verifier to make sure that state can be purged between runs if required.
|
List<String> |
getErrors() |
boolean |
hasErrors()
Checks if there are any errors as a result of the verification
|
void |
setLegacyTableQueries(LegacyTableQueries legacyTableQueries)
Provides the appropriate legacy table querier to the verifier if it needs to query the database.
|
abstract void |
verify()
This method will verify if the correctness/compatibility of the database.
|
protected LegacyTableQueries legacyTableQueries
public abstract void verify()
public void clearState()
public boolean hasErrors()
public void setLegacyTableQueries(LegacyTableQueries legacyTableQueries)
legacyTableQueries
- The appropriate table querier (eg. MySQL, Postgres)Copyright © 2021 Atlassian. All rights reserved.