当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
Index (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.mapping
Class Index
java.lang.Object
net.sf.hibernate.mapping.Index
- All Implemented Interfaces:
- RelationalModel
- public class Index
- extends Object
- implements RelationalModel
A relational table index
- Author:
- Gavin King
Constructor Summary |
Index()
|
Method Summary |
void |
addColumn(Column column)
|
void |
addColumns(Iterator extraColumns)
|
static String |
buildSqlCreateIndexString(Dialect dialect,
String name,
Table table,
Iterator columns,
boolean unique,
String defaultSchema)
|
static String |
buildSqlDropIndexString(Dialect dialect,
Table table,
String name,
String defaultSchema)
|
Iterator |
getColumnIterator()
|
String |
getName()
|
Table |
getTable()
|
void |
setName(String name)
|
void |
setTable(Table table)
|
String |
sqlConstraintString(Dialect dialect)
|
String |
sqlCreateString(Dialect dialect,
Mapping mapping,
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 |
Index
public Index()
sqlCreateString
public String sqlCreateString(Dialect dialect,
Mapping mapping,
String defaultSchema)
throws HibernateException
- Specified by:
sqlCreateString
in interface RelationalModel
- Throws:
HibernateException
buildSqlDropIndexString
public static String buildSqlDropIndexString(Dialect dialect,
Table table,
String name,
String defaultSchema)
buildSqlCreateIndexString
public static String buildSqlCreateIndexString(Dialect dialect,
String name,
Table table,
Iterator columns,
boolean unique,
String defaultSchema)
sqlConstraintString
public String sqlConstraintString(Dialect dialect)
sqlDropString
public String sqlDropString(Dialect dialect,
String defaultSchema)
- Specified by:
sqlDropString
in interface RelationalModel
getTable
public Table getTable()
setTable
public void setTable(Table table)
getColumnIterator
public Iterator getColumnIterator()
addColumn
public void addColumn(Column column)
addColumns
public void addColumns(Iterator extraColumns)
getName
public String getName()
setName
public void setName(String name)