com.ibm.tivoli.maximo.integrity.check

Class CheckTenantData

    • Field Detail

      • currentTenant

        protected MTContext currentTenant
    • Method Detail

      • checkPerConnection

        public abstract void checkPerConnection(java.sql.Connection dc,
                                                ValidateLogger validateLogger)
                                         throws java.lang.Exception
        Perform the check.
        Throws:
        java.lang.Exception
      • reportProblem

        protected void reportProblem(Report report)
                              throws java.lang.Exception
        Description copied from class: IntegrityCheck
        Called by sub-classes to report problems.
        Overrides:
        reportProblem in class IntegrityCheck
        Throws:
        java.lang.Exception
      • getTenantClause

        protected java.lang.String getTenantClause(java.lang.String tableAlias)
                                            throws java.sql.SQLException
        If multitenancy is turned on, return a clause to be and'ed with the where clause.
        Parameters:
        tableAlias - If given, prefixed before the tenantid, i.e. "a.tenantid"
        Returns:
        The clause, or null if MT isn't enabled.
        Throws:
        java.sql.SQLException
      • getTenantClause

        protected java.lang.String getTenantClause()
                                            throws java.sql.SQLException
        If multitenancy is turned on, return a clause to be and'ed with the where clause.
        Returns:
        The clause, or null if MT isn't enabled.
        Throws:
        java.sql.SQLException