Package org.databene.commons.file

Examples of org.databene.commons.file.FilePrintWriter


 
  public void exportPackage(DBPackage pkg, String info) throws IOException {
    File htmlFile = packageFile(pkg);
    FileUtil.ensureDirectoryExists(htmlFile.getParentFile());
    File cssFile = context.reportFile("mad4db.css");
    FilePrintWriter out = null;
    try {
      out = HtmlReportUtil.createFile(htmlFile, info + " " + pkg.getName(), Encodings.UTF_8, cssFile);
      context.printNavBarFor(packageFile(pkg), out);
      exportSimpleProperties(pkg, null, out);
      exportProcedures(pkg, null, out);
View Full Code Here


  }

  @Override
  protected FilePrintWriter createFile(File file, ComparisonConfig config)
      throws IOException {
    FilePrintWriter out = new FilePrintWriter(file);
    printRow(out, "object", "change type", "details", "constraint name", "severity", "check result", "check name");
    return out;
  }
View Full Code Here

    List<StructuralChange<?>> reorganizations = getChanges(schemaChange, ChangeSeverity.REORGANIZATION);
    List<StructuralChange<?>> eases = getChanges(schemaChange, ChangeSeverity.EASE);
    int criticalChangeCount = augmentations.size() + erredRestrictions.size() + failedRestrictions.size() +
      extensions.size() + deletions.size();
    int totalChangeCount = criticalChangeCount + passedRestrictions.size() + reorganizations.size() + eases.size();
    FilePrintWriter out = null;
    try {
      ComparisonConfig config = schemaChange.getConfig();
      out = createFile(context.reportFile(filename), config);

      exportInfo(out);
View Full Code Here

TOP

Related Classes of org.databene.commons.file.FilePrintWriter

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.