org.d2rq.db.schema
Class ForeignKey

java.lang.Object
  extended by org.d2rq.db.schema.ForeignKey

public class ForeignKey
extends Object

A SQL foreign key. States that the values of some list of local columns, if non-null, must exist in some list of referenced columns, which may be in the same or a different table.

Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
ForeignKey(Key localColumns, Key referencedColumns, TableName referencedTable)
           
 
Method Summary
 boolean equals(Object o)
           
 Key getLocalColumns()
           
 Key getReferencedColumns()
           
 TableName getReferencedTable()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForeignKey

public ForeignKey(Key localColumns,
                  Key referencedColumns,
                  TableName referencedTable)
Method Detail

getLocalColumns

public Key getLocalColumns()

getReferencedColumns

public Key getReferencedColumns()

getReferencedTable

public TableName getReferencedTable()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object