org.javagen.agile.db.visitor
Class LinkTableFinderVisitor

java.lang.Object
  extended by org.javagen.agile.db.visitor.DefaultDatabaseVisitor
      extended by org.javagen.agile.db.visitor.LinkTableFinderVisitor
All Implemented Interfaces:
Generator, Visit, Visitor, DatabaseVisitor

public class LinkTableFinderVisitor
extends DefaultDatabaseVisitor

Identify and flag pure link or association tables - that is tables whose only function is to link one table to another.

Author:
Richard Easterling

Field Summary
 
Fields inherited from class org.javagen.agile.db.visitor.DefaultDatabaseVisitor
itinerary, relativeInputPath
 
Fields inherited from interface org.javagen.agile.db.visitor.DatabaseVisitor
ALL_MODEL_TYPES, FK_ONLY_MODEL_TYPES, NON_FK_MODEL_TYPES
 
Constructor Summary
LinkTableFinderVisitor()
           
 
Method Summary
 void visit(Table table)
          Identify and flag link tables.
 
Methods inherited from class org.javagen.agile.db.visitor.DefaultDatabaseVisitor
gen, getRelativeInputPath, itinerary, setItinerary, setItinerary, setRelativeInputPath, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkTableFinderVisitor

public LinkTableFinderVisitor()
Method Detail

visit

public void visit(Table table)
Identify and flag link tables. Link tables are determined here as having exactly two foreign key columns.

Specified by:
visit in interface DatabaseVisitor
Overrides:
visit in class DefaultDatabaseVisitor


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.