Package org.databene.mad4db

Examples of org.databene.mad4db.ChangeSeverity


    if (tableChange == null)
      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) {
View Full Code Here


    super(affectedObject, ChangeSeverity.UNKNOWN, description);
    this.subChanges = new ArrayList<StructuralChange<? extends DBObject>>();
  }

  public void addSubChange(StructuralChange<? extends DBObject> subChange) {
    ChangeSeverity subChangeSeverity = subChange.getSeverity();
    if (this.severity == ChangeSeverity.UNKNOWN || (subChangeSeverity != ChangeSeverity.UNKNOWN && subChangeSeverity.compareTo(this.severity) > 0))
      this.severity = subChangeSeverity;
    subChanges.add(subChange);
  }
View Full Code Here

        (CompositeStructuralChange<? extends DBObject>) change;
      for (StructuralChange<? extends DBObject> subChange : compositeChange.getSubChanges())
        checkCount += process(subChange, writer);
      return checkCount;
    } else {
      ChangeSeverity severity = change.getSeverity();
      switch (severity) {
        case UNKNOWN:
          LOGGER.error("Unknown change severity: " + change);
          break;
        case RESTRICTION:
View Full Code Here

TOP

Related Classes of org.databene.mad4db.ChangeSeverity

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.