|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.migration.verify.DatabaseVerifier
public abstract class DatabaseVerifier
Responsible for verifying the correctness/compatibility of pre 2.0 database to 2.0+ database
Field Summary | |
---|---|
protected List<String> |
errors
|
protected LegacyTableQueries |
legacyTableQueries
|
Constructor Summary | |
---|---|
DatabaseVerifier()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final List<String> errors
protected LegacyTableQueries legacyTableQueries
Constructor Detail |
---|
public DatabaseVerifier()
Method Detail |
---|
public abstract void verify()
public void clearState()
public boolean hasErrors()
public List<String> getErrors()
public void setLegacyTableQueries(LegacyTableQueries legacyTableQueries)
legacyTableQueries
- The appropriate table querier (eg. MySQL, Postgres)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |