站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

ForeignKey (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.mapping
Class ForeignKey

java.lang.Object
  extended bynet.sf.hibernate.mapping.Constraint
      extended bynet.sf.hibernate.mapping.ForeignKey
All Implemented Interfaces:
RelationalModel

public class ForeignKey
extends Constraint

A foreign key constraint

Author:
Gavin King

Constructor Summary
ForeignKey()
           
 
Method Summary
 Class getReferencedClass()
           
 Table getReferencedTable()
           
 void setReferencedClass(Class referencedClass)
           
 void setReferencedTable(Table referencedTable)
           
 String sqlConstraintString(Dialect dialect, String constraintName, String defaultSchema)
           
 String sqlDropString(Dialect dialect, String defaultSchema)
           
 
Methods inherited from class net.sf.hibernate.mapping.Constraint
addColumn, addColumns, getColumnIterator, getColumnSpan, getName, getTable, setName, setTable, sqlCreateString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForeignKey

public ForeignKey()
Method Detail

sqlConstraintString

public String sqlConstraintString(Dialect dialect,
                                  String constraintName,
                                  String defaultSchema)
Specified by:
sqlConstraintString in class Constraint

sqlDropString

public String sqlDropString(Dialect dialect,
                            String defaultSchema)
Specified by:
sqlDropString in interface RelationalModel
Overrides:
sqlDropString 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)