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, vl
IC_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, prerequisitesCheck
protected MTContext currentTenant
public CheckTenantData(DatabaseInformation mdi, ReportCollector ic)
public CheckTenantData(DatabaseInformation mdi, ReportCollector ic, ValidateLogger vl)
public void check() throws java.lang.Exception
IntegrityCheck
check
in class IntegrityCheck
java.lang.Exception
Problems are reported to the report collector.
public abstract void checkPerConnection(java.sql.Connection dc, ValidateLogger validateLogger) throws java.lang.Exception
java.lang.Exception
protected void reportProblem(Report report) throws java.lang.Exception
IntegrityCheck
reportProblem
in class IntegrityCheck
java.lang.Exception
protected 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.SQLException
protected java.lang.String getTenantClause() throws java.sql.SQLException
java.sql.SQLException