Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » mapping » [javadoc | source]
org.hibernate.mapping
public class: ForeignKey [javadoc | source]
java.lang.Object
   org.hibernate.mapping.Constraint
      org.hibernate.mapping.ForeignKey

All Implemented Interfaces:
    RelationalModel, Serializable

A foreign key constraint
Method from org.hibernate.mapping.ForeignKey Summary:
addReferencedColumns,   alignColumns,   getReferencedColumns,   getReferencedEntityName,   getReferencedTable,   isCascadeDeleteEnabled,   isPhysicalConstraint,   isReferenceToPrimaryKey,   setCascadeDeleteEnabled,   setReferencedEntityName,   setReferencedTable,   sqlConstraintString,   sqlDropString,   toString
Methods from org.hibernate.mapping.Constraint:
addColumn,   addColumns,   columnIterator,   containsColumn,   getColumn,   getColumnIterator,   getColumnSpan,   getColumns,   getName,   getTable,   isGenerated,   setName,   setTable,   sqlConstraintString,   sqlCreateString,   sqlDropString,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.mapping.ForeignKey Detail:
 public  void addReferencedColumns(Iterator referencedColumnsIterator) 
 public  void alignColumns() 
    Validates that columnspan of the foreignkey and the primarykey is the same. Furthermore it aligns the length of the underlying tables columns.
 public List getReferencedColumns() 
    Returns the referenced columns if the foreignkey does not refer to the primary key
 public String getReferencedEntityName() 
 public Table getReferencedTable() 
 public boolean isCascadeDeleteEnabled() 
 public boolean isPhysicalConstraint() 
 public boolean isReferenceToPrimaryKey() 
    Does this foreignkey reference the primary key of the reference table
 public  void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled) 
 public  void setReferencedEntityName(String referencedEntityName) 
 public  void setReferencedTable(Table referencedTable) throws MappingException 
 public String sqlConstraintString(Dialect dialect,
    String constraintName,
    String defaultCatalog,
    String defaultSchema) 
 public String sqlDropString(Dialect dialect,
    String defaultCatalog,
    String defaultSchema) 
 public String toString()