コード例 #1
0
  /* (non-Javadoc)
   * @see org.manathome.schema2doc.renderer.impl.IRenderer#beginRenderTable(org.manathome.schema2doc.scanner.IDbTable)
   */
  @Override
  public void beginRenderTable(@NotNull IDbTable table, IDocumentationAugmenter tableDocAugmenter) {
    out.println("---------------------------------------------------------------------");
    out.println(
        "- " + Require.notNull(table).getName() + " .. " + Convert.nvl(table.getComment(), ""));
    out.println("---------------------------------------------------------------------");
    out.println("");

    if (tableDocAugmenter != null) {
      out.print(Convert.nvl(tableDocAugmenter.getData(), ""));
    }
  }
コード例 #2
0
  @Override
  public void beginRenderDocumentation(IDocumentationAugmenter docAugmenter) {
    out.println("*********************************************************************");
    out.println("** schema2doc plaintext documentation                              **");
    out.println("*********************************************************************");

    if (docAugmenter != null) {
      out.println(Convert.nvl(docAugmenter.getData(), ""));
    }
  }
コード例 #3
0
 /* (non-Javadoc)
  * @see org.manathome.schema2doc.renderer.impl.IRenderer#renderColumn(org.manathome.schema2doc.scanner.IDbColumn)
  */
 @Override
 public void renderColumn(@NotNull IDbColumn column) {
   out.println(
       "- "
           + Require.notNull(column).getName()
           + "("
           + column.getTypename()
           + ": "
           + Convert.nvl(column.getComment(), ""));
 }