org.d2rq.db.schema
Class ForeignKey
java.lang.Object
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)
ForeignKey
public ForeignKey(Key localColumns,
Key referencedColumns,
TableName referencedTable)
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