Class ODatabaseRepair

java.lang.Object
com.orientechnologies.orient.core.db.tool.ODatabaseTool
com.orientechnologies.orient.core.db.tool.ODatabaseRepair
All Implemented Interfaces:
Runnable

public class ODatabaseRepair extends ODatabaseTool
Repair database tool.
Since:
v2.2.0
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
  • Constructor Details

    • ODatabaseRepair

      public ODatabaseRepair()
  • Method Details

    • parseSetting

      protected void parseSetting(String option, List<String> items)
      Specified by:
      parseSetting in class ODatabaseTool
    • run

      public void run()
    • removeBrokenLinks

      protected long removeBrokenLinks()
    • fixLink

      protected boolean fixLink(Object fieldValue)
      Checks if the link must be fixed.
      Parameters:
      fieldValue - Field containing the OIdentifiable (RID or Record)
      Returns:
      true to fix it, otherwise false