butler.sql.metadata
Class ManyToManyRelation
java.lang.Object
butler.sql.metadata.ManyToManyRelation
public class ManyToManyRelation
- extends java.lang.Object
A many-to-many relation.
- Author:
- Fredrik Bertilsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManyToManyRelation
public ManyToManyRelation(ForeignKey fk1,
ForeignKey fk2)
throws java.lang.Exception
- Throws:
java.lang.Exception
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