// helpers ---------------------------------------------------------------------------------------------------------
private void exportAtomicChange(StructuralChange<?> change, FilePrintWriter out) {
DBObject mainObject = mainObject(change);
DBObject affectedObject = change.getAffectedObject();
SanityCheck check = change.getCheck();
String constraintName = affectedObject instanceof DBConstraint ? affectedObject.getName() : "";
String checkResult = (check != null ?
(check.getVerdict() == SanityCheckVerdict.FAILED ?
(check.getDefectCount() + " FAILURES") :
check.getVerdict().name()) :
"");
printRow(
out,
SQLUtil.typeAndName(mainObject), // col#1: object
change.getType(), // col#2: change type
change.getDetails(), // col#3: details
constraintName, // col#4: constraint name
change.getSeverity().name(), // col#5: severity
checkResult, // col#6: check result
(check != null ? check.getName() : "")// col#7: check name
);
}