butler.sql.metadata
Class ManyToManyRelation

java.lang.Object
  extended by butler.sql.metadata.ManyToManyRelation

public class ManyToManyRelation
extends java.lang.Object

A many-to-many relation.

Author:
Fredrik Bertilsson

Constructor Summary
ManyToManyRelation(ForeignKey fk1, ForeignKey fk2)
           
 
Method Summary
 ForeignKey getForeignKey1()
           
 ForeignKey getForeignKey2()
           
 Table getLinkTable()
           
 Table getOppositeTable(Table tab)
           
 Table getTable1()
           
 Table getTable2()
           
static ManyToManyRelation parse(org.dom4j.Element element, Schema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManyToManyRelation

public ManyToManyRelation(ForeignKey fk1,
                          ForeignKey fk2)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getTable1

public Table getTable1()
                throws java.lang.Exception
Throws:
java.lang.Exception

getTable2

public Table getTable2()
                throws java.lang.Exception
Throws:
java.lang.Exception

getLinkTable

public Table getLinkTable()
                   throws java.lang.Exception
Throws:
java.lang.Exception

getForeignKey1

public ForeignKey getForeignKey1()

getForeignKey2

public ForeignKey getForeignKey2()

getOppositeTable

public Table getOppositeTable(Table tab)
                       throws java.lang.Exception
Throws:
java.lang.Exception

parse

public static ManyToManyRelation parse(org.dom4j.Element element,
                                       Schema schema)
                                throws java.lang.Exception
Throws:
java.lang.Exception