public class RefillAncestorTable extends java.lang.Object implements Repair
This Integrity Check uses this repair.
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
|
Modifier and Type | Method and Description |
---|---|
void |
doRepair()
Perform the repair.
|
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)
rc
- This repair may find errors to report.di
- information about the databasedc
- 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.