public abstract class IntegrityCheck extends java.lang.Object implements ICConstants
IC_ALLREPAIRS, IC_CANCEL, IC_CHECK, IC_CHECKDONE, IC_NOTAPPLY, IC_REPAIR, IC_REPORT, IC_TENANT
Constructor and Description |
---|
IntegrityCheck(DatabaseInformation di,
ReportCollector reportCollector)
Constructor takes the object where to report problems.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
conditionsCheck()
Should this test be run?
This is for things like preMerlin or DB2 only checks.
|
void |
doCheck()
Perform this check.
|
abstract MXException |
getTitle()
Returns an MXException that tells the user what is being checked now.
|
abstract boolean |
prerequisitesCheck()
Can this test be run now?
This is for things like loading the meta data, or having valid data in the
MaxAttribute table.
|
public IntegrityCheck(DatabaseInformation di, ReportCollector reportCollector)
di
- This object has information about the database.reportCollector
- Where to report problems.public abstract MXException getTitle()
public abstract boolean conditionsCheck() throws java.lang.Exception
mdi
- java.sql.SQLException
java.lang.Exception
public abstract boolean prerequisitesCheck()
mdi
- public final void doCheck() throws java.lang.Exception
mdi
- java.lang.Exception
called first
,
called second
,
only called if the first two return true.