net.sf.hibernate.mapping
Class ForeignKey
java.lang.Object
net.sf.hibernate.mapping.Constraint
net.sf.hibernate.mapping.ForeignKey
- All Implemented Interfaces:
- RelationalModel
- public class ForeignKey
- extends Constraint
A foreign key constraint
- Author:
- Gavin King
Methods inherited from class net.sf.hibernate.mapping.Constraint |
addColumn, addColumns, columnIterator, getColumnIterator, getColumnSpan, getName, getTable, setName, setTable, sqlCreateString, sqlDropString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForeignKey
public ForeignKey()
sqlConstraintString
public String sqlConstraintString(Dialect dialect,
String constraintName)
- Specified by:
sqlConstraintString
in class Constraint
getReferencedTable
public Table getReferencedTable()
setReferencedTable
public void setReferencedTable(Table referencedTable)
throws MappingException
- Throws:
MappingException
getReferencedClass
public Class getReferencedClass()
setReferencedClass
public void setReferencedClass(Class referencedClass)