Class MySqlErd

java.lang.Object
  extended byMySqlErd

public class MySqlErd
extends java.lang.Object

Program to create a ERD of some MySQL database. This uses foreign key relationships to render links between tables.

Author:
Michael McTernan, Michael.McTernan.2001@cs.bris.ac.uk

Nested Class Summary
static class MySqlErd.RecordGeneratingTableProcessor
          TableProcessor that generates records for the tables.
static class MySqlErd.RelationGeneratingTableProcessor
          TableProcessor that generates records for the tables.
 
Constructor Summary
MySqlErd()
           
 
Method Summary
static void iterateTables(java.sql.Connection dbConnection, MySqlErd.TableProcessor tableProcessor)
          Call a TableProcessor with the name of each table in some database.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlErd

public MySqlErd()
Method Detail

iterateTables

public static void iterateTables(java.sql.Connection dbConnection,
                                 MySqlErd.TableProcessor tableProcessor)
                          throws java.sql.SQLException
Call a TableProcessor with the name of each table in some database. This will execute a SHOW TABLES query to the server and then process the results, calling the process method of the passed TableProcessor.

Throws:
java.sql.SQLException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception