当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
Constraint (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.mapping
Class Constraint
java.lang.Object
net.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constraint
public Constraint()
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)