net.sourceforge.schemaspy.view
Class DotFormatter

java.lang.Object
  extended by net.sourceforge.schemaspy.view.DotFormatter

public class DotFormatter
extends Object

Format table data into .dot format to feed to GraphVis' dot program.

Author:
John Currier

Method Summary
static DotFormatter getInstance()
           
 void writeAllRelationships(Collection tables, boolean compact, boolean details, WriteStats stats, LineWriter dot)
           
 void writeAllRelationships(Table table, boolean twoDegreesOfSeparation, WriteStats stats, LineWriter dot)
          Write implied relationships associated with the given table
 void writeOrphan(Table table, LineWriter dot)
           
 void writeRealRelationships(Collection tables, boolean compact, boolean details, WriteStats stats, LineWriter dot)
           
 void writeRealRelationships(Table table, boolean twoDegreesOfSeparation, WriteStats stats, LineWriter dot)
          Write all relationships (including implied) associated with the given table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DotFormatter getInstance()

writeRealRelationships

public void writeRealRelationships(Table table,
                                   boolean twoDegreesOfSeparation,
                                   WriteStats stats,
                                   LineWriter dot)
                            throws IOException
Write all relationships (including implied) associated with the given table

Throws:
IOException

writeAllRelationships

public void writeAllRelationships(Table table,
                                  boolean twoDegreesOfSeparation,
                                  WriteStats stats,
                                  LineWriter dot)
                           throws IOException
Write implied relationships associated with the given table

Throws:
IOException

writeRealRelationships

public void writeRealRelationships(Collection tables,
                                   boolean compact,
                                   boolean details,
                                   WriteStats stats,
                                   LineWriter dot)
                            throws IOException
Throws:
IOException

writeAllRelationships

public void writeAllRelationships(Collection tables,
                                  boolean compact,
                                  boolean details,
                                  WriteStats stats,
                                  LineWriter dot)
                           throws IOException
Throws:
IOException

writeOrphan

public void writeOrphan(Table table,
                        LineWriter dot)
                 throws IOException
Throws:
IOException


Copyright © 2007-2010. All Rights Reserved.