public abstract class CheckTenantData extends IntegrityCheck implements ICConstants
DatabaseInformation.getSelectedTenants(),
Override this to perform the check| Modifier and Type | Field and Description |
|---|---|
protected MTContext |
currentTenant |
di, rc, vlIC_ALLREPAIRS, IC_CANCEL, IC_CHECK, IC_CHECKDONE, IC_NOTAPPLY, IC_REPAIR, IC_REPORT, IC_TENANT| Constructor and Description |
|---|
CheckTenantData(DatabaseInformation mdi,
ReportCollector ic) |
CheckTenantData(DatabaseInformation mdi,
ReportCollector ic,
ValidateLogger vl) |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Override this to perform the check.
|
abstract void |
checkPerConnection(java.sql.Connection dc,
ValidateLogger validateLogger)
Perform the check.
|
protected java.lang.String |
getTenantClause()
If multitenancy is turned on, return a clause to be and'ed with the where clause.
|
protected java.lang.String |
getTenantClause(java.lang.String tableAlias)
If multitenancy is turned on, return a clause to be and'ed with the where clause.
|
protected void |
reportProblem(Report report)
Called by sub-classes to report problems.
|
conditionsCheck, doCheck, getTitle, prerequisitesCheckprotected MTContext currentTenant
public CheckTenantData(DatabaseInformation mdi, ReportCollector ic)
public CheckTenantData(DatabaseInformation mdi, ReportCollector ic, ValidateLogger vl)
public void check()
throws java.lang.Exception
IntegrityCheckcheck in class IntegrityCheckjava.lang.ExceptionProblems are reported to the report collector.public abstract void checkPerConnection(java.sql.Connection dc,
ValidateLogger validateLogger)
throws java.lang.Exception
java.lang.Exceptionprotected void reportProblem(Report report) throws java.lang.Exception
IntegrityCheckreportProblem in class IntegrityCheckjava.lang.Exceptionprotected java.lang.String getTenantClause(java.lang.String tableAlias)
throws java.sql.SQLException
tableAlias - If given, prefixed before the tenantid, i.e. "a.tenantid"java.sql.SQLExceptionprotected java.lang.String getTenantClause()
throws java.sql.SQLException
java.sql.SQLException