Package org.databene.dbsanity.model

Examples of org.databene.dbsanity.model.SanityCheckVerdict


    // column #4: constraint name
    DBObject affectedObject = change.getAffectedObject();
    printCell(affectedObject instanceof DBConstraint ? affectedObject.getName() : null, out);
    // column #5: defects
    if (defectsColumn) {
      SanityCheckVerdict verdict = check.getVerdict();
      File targetPage = (verdict == SanityCheckVerdict.PASSED ? ReportUtil.getDocPage(check) : ReportUtil.getDefectsOrErrorPage(check));
      String label = (verdict == SanityCheckVerdict.FAILED ? String.valueOf(check.getDefectCount()) : (verdict == SanityCheckVerdict.ERROR ? "ERROR" : "NONE"));
      printCell(HTMLUtil.aNewWindow(FileUtil.relativePath(out.getFile().getCanonicalFile(), targetPage, '/'), label), out);
    }
    out.println("</tr>");
View Full Code Here


      return null;
    List<StructuralChange<?>> changes = tableChange.getSubChanges(new ChangeByAffectedObjectFilter(procedure));
    if (changes.size() == 0)
      return "UNCHANGED";
    ChangeSeverity severity = null;
    SanityCheckVerdict verdict = null;
    for (StructuralChange<?> change : changes) {
      ChangeSeverity changeSeverity = change.getSeverity();
      if (severity == null || severity.compareTo(changeSeverity) < 0)
        severity = changeSeverity;
      if (severity == ChangeSeverity.RESTRICTION) {
        SanityCheck check = change.getCheck();
        if (check != null) {
          SanityCheckVerdict changeVerdict = check.getVerdict();
          if (verdict == null || verdict.compareTo(changeVerdict) < 0)
            verdict = changeVerdict;
        }
      }
    }
View Full Code Here

      return null;
    List<StructuralChange<?>> changes = tableChange.getSubChanges(new ChangeByAffectedObjectFilter(object));
    if (changes.size() == 0)
      return null;
    ChangeSeverity severity = null;
    SanityCheckVerdict verdict = null;
    for (StructuralChange<?> change : changes) {
      ChangeSeverity changeSeverity = change.getSeverity();
      if (severity == null || severity.compareTo(changeSeverity) < 0)
        severity = changeSeverity;
      if (severity == ChangeSeverity.RESTRICTION) {
        SanityCheck check = change.getCheck();
        if (check != null) {
          SanityCheckVerdict changeVerdict = check.getVerdict();
          if (verdict == null || verdict.compareTo(changeVerdict) < 0)
            verdict = changeVerdict;
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.databene.dbsanity.model.SanityCheckVerdict

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.