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

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


net.sf.hibernate.mapping
Class Constraint

java.lang.Object
  extended bynet.sf.hibernate.mapping.Constraint
All Implemented Interfaces:
RelationalModel
Direct Known Subclasses:
ForeignKey, PrimaryKey, UniqueKey

public abstract class Constraint
extends Object
implements RelationalModel

A relational constraint.

Author:
Gavin King

Constructor Summary
Constraint()
           
 
Method Summary
 void addColumn(Column column)
           
 void addColumns(Iterator columns)
           
 Iterator getColumnIterator()
           
 int getColumnSpan()
           
 String getName()
           
 Table getTable()
           
 void setName(String name)
           
 void setTable(Table table)
           
abstract  String sqlConstraintString(Dialect d, String constraintName, String defaultSchema)
           
 String sqlCreateString(Dialect dialect, Mapping p, String defaultSchema)
           
 String sqlDropString(Dialect dialect, String defaultSchema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constraint

public Constraint()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getColumnIterator

public Iterator getColumnIterator()

addColumn

public void addColumn(Column column)

addColumns

public void addColumns(Iterator columns)

getColumnSpan

public int getColumnSpan()

getTable

public Table getTable()

setTable

public void setTable(Table table)

sqlDropString

public String sqlDropString(Dialect dialect,
                            String defaultSchema)
Specified by:
sqlDropString in interface RelationalModel

sqlCreateString

public String sqlCreateString(Dialect dialect,
                              Mapping p,
                              String defaultSchema)
Specified by:
sqlCreateString in interface RelationalModel

sqlConstraintString

public abstract String sqlConstraintString(Dialect d,
                                           String constraintName,
                                           String defaultSchema)