DBVIEW
org.dbview.databaseExporters.dot.DotMedium Class Reference
Inheritance diagram for org.dbview.databaseExporters.dot.DotMedium:
Collaboration diagram for org.dbview.databaseExporters.dot.DotMedium:

List of all members.

Public Member Functions

 DotMedium (ArrayList< Table > in_tables, Database in_db)
String export (Hashtable< String, Object > in_options) throws Exception

Protected Member Functions

String _relationColor (int in_table_to_table_relation_type) throws Exception

Protected Attributes

ArrayList< Table_tables = null
Database _db = null

Private Member Functions

String __createMediumTableLabel (Table in_table, String in_rankdir)

Detailed Description

This class implements the export to DOT, with an intermediate level of details.

See also:
AbstractDatabaseExporter
Author:
Denis Beurive

Definition at line 38 of file DotMedium.java.


Constructor & Destructor Documentation

org.dbview.databaseExporters.dot.DotMedium.DotMedium ( ArrayList< Table in_tables,
Database  in_db 
)

Create the exporter.

Parameters:
in_tablesList of tables to export.
in_dbHandle to the database.

Definition at line 45 of file DotMedium.java.


Member Function Documentation

String org.dbview.databaseExporters.dot.DotMedium.__createMediumTableLabel ( Table  in_table,
String  in_rankdir 
) [private]

This method creates the "medium" label for a given table. The label is a grid that contains 5 columns, and as many row as the number of fields in the table.

Parameters:
in_tableThe table.
in_rankdirInitial orientation of a record node. Values can be:
  • TB (Top to bottom)
  • LR (Left to right)
  • RL 'Right to left)

See GRAPHVIZ' documentation for "rankdir": http://www.graphviz.org/doc/info/shapes.html

Returns:
The method returns a string that represents the label.

Definition at line 174 of file DotMedium.java.

Referenced by org.dbview.databaseExporters.dot.DotMedium.export().

String org.dbview.databaseExporters.dot.AbstractDatabaseExporter._relationColor ( int  in_table_to_table_relation_type) throws Exception [protected, inherited]

This method returns the color to apply to a given edge, given the type of the table to table relation.

Parameters:
in_table_to_table_relation_typeThe type of the relation.
Returns:
The method returns the color to apply to a given edge.
Exceptions:
Exception

Definition at line 75 of file AbstractDatabaseExporter.java.

Referenced by org.dbview.databaseExporters.dot.DotLight.export(), org.dbview.databaseExporters.dot.DotMedium.export(), and org.dbview.databaseExporters.dot.DotFull.export().

String org.dbview.databaseExporters.dot.DotMedium.export ( Hashtable< String, Object >  in_options) throws Exception [virtual]

This method exports the given tables, from the given database.

Parameters:
in_optionsOptions. Options may be:
  • "layout"
Returns:
The method returns a string that represents the DOT representation.
Exceptions:
Exception

Implements org.dbview.databaseExporters.dot.AbstractDatabaseExporter.

Definition at line 60 of file DotMedium.java.


Member Data Documentation

List of table to export. Please note that the property's value may be null. If the property's value is null, then all tables of the database are exported.

Definition at line 41 of file AbstractDatabaseExporter.java.

Referenced by org.dbview.databaseExporters.dot.AbstractDatabaseExporter.AbstractDatabaseExporter(), org.dbview.databaseExporters.dot.DotLight.export(), org.dbview.databaseExporters.dot.DotMedium.export(), and org.dbview.databaseExporters.dot.DotFull.export().


The documentation for this class was generated from the following file: