com.ibm.tivoli.maximo.integrity.repair

Class RefillAncestorTable

  • java.lang.Object
    • com.ibm.tivoli.maximo.integrity.repair.RefillAncestorTable
  • All Implemented Interfaces:
    Repair


    public class RefillAncestorTable
    extends java.lang.Object
    implements Repair
    Repair the contents of an Ancestor table. The existing rows of the ancestor table are deleted and new rows are generated from values in the base table.
    See Also:
    This Integrity Check uses this repair.
    • Constructor Summary

      Constructors 
      Constructor and Description
      RefillAncestorTable(ReportCollector rc, DatabaseInformation di, java.sql.Connection dc, java.lang.String baseTable, java.lang.String ancTable, java.lang.String key, java.lang.String parent, java.lang.String hasChildrenFlag, java.lang.String[] otherCols)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void doRepair()
      Perform the repair.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RefillAncestorTable

        public RefillAncestorTable(ReportCollector rc,
                                   DatabaseInformation di,
                                   java.sql.Connection dc,
                                   java.lang.String baseTable,
                                   java.lang.String ancTable,
                                   java.lang.String key,
                                   java.lang.String parent,
                                   java.lang.String hasChildrenFlag,
                                   java.lang.String[] otherCols)
        Constructor
        Parameters:
        rc - This repair may find errors to report.
        di - information about the database
        dc - A connection to the database. A tenant's connection when Multi-tenancy is enabled.
        baseTable - The base data. WorkOrder, Person, etc...
        ancTable - The ancestor table. WOAncestor, PersonAncestor, etc...
        key - The name of key field. WONum, PersonID, etc...
        parent - The name of the parent field. Parent, Supervisor, etc...
        hasChildrenFlag - The name of the "HasChildren" flag. There may not be one in the base. If supplied, the repair will supply correct values for this column.
        otherCols - Any other columns that make up the primary key in the base table. For WorkOrder this is SiteID & OrgID. For Person this is empty.
    • Method Detail

      • doRepair

        public void doRepair()
                      throws java.lang.Exception
        Description copied from interface: Repair
        Perform the repair.
        Specified by:
        doRepair in interface Repair
        Throws:
        java.lang.Exception