当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
Table (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.mapping
Class Table
java.lang.Object
net.sf.hibernate.mapping.Table
- All Implemented Interfaces:
- RelationalModel
- public class Table
- extends Object
- implements RelationalModel
A relational table
- Author:
- Gavin King
Constructor Summary |
Table()
|
Method Summary |
void |
addCheckConstraint(String constraint)
|
void |
addColumn(Column column)
|
ForeignKey |
createForeignKey(String keyName,
List keyColumns,
Class referencedClass)
|
Index |
createIndex(String name,
List indexColumns)
|
UniqueKey |
createUniqueKey(List keyColumns)
|
Column |
getColumn(int n)
|
Iterator |
getColumnIterator()
|
int |
getColumnSpan()
|
Iterator |
getForeignKeyIterator()
|
Index |
getIndex(String indexName)
|
Iterator |
getIndexIterator()
|
String |
getName()
|
PrimaryKey |
getPrimaryKey()
|
String |
getQualifiedName(Dialect dialect,
String defaultQualifier)
|
String |
getQuotedName(Dialect dialect)
|
String |
getSchema()
|
int |
getUniqueInteger()
|
UniqueKey |
getUniqueKey(String keyName)
|
Iterator |
getUniqueKeyIterator()
|
boolean |
isQuoted()
|
void |
setIdentifierValue(SimpleValue idValue)
|
void |
setName(String name)
|
void |
setPrimaryKey(PrimaryKey primaryKey)
|
void |
setQuoted(boolean quoted)
|
void |
setSchema(String schema)
|
Iterator |
sqlAlterStrings(Dialect dialect,
Mapping p,
TableMetadata tableInfo,
String defaultSchema)
|
String |
sqlCreateString(Dialect dialect,
Mapping p,
String defaultSchema)
|
String |
sqlDropString(Dialect dialect,
String defaultSchema)
|
String |
uniqueColumnString(Iterator iterator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Table
public Table()
getQualifiedName
public String getQualifiedName(Dialect dialect,
String defaultQualifier)
getName
public String getName()
getQuotedName
public String getQuotedName(Dialect dialect)
setName
public void setName(String name)
getColumn
public Column getColumn(int n)
addColumn
public void addColumn(Column column)
getColumnSpan
public int getColumnSpan()
getColumnIterator
public Iterator getColumnIterator()
getIndexIterator
public Iterator getIndexIterator()
getForeignKeyIterator
public Iterator getForeignKeyIterator()
getUniqueKeyIterator
public Iterator getUniqueKeyIterator()
sqlAlterStrings
public Iterator sqlAlterStrings(Dialect dialect,
Mapping p,
TableMetadata tableInfo,
String defaultSchema)
throws HibernateException
- Throws:
HibernateException
sqlCreateString
public String sqlCreateString(Dialect dialect,
Mapping p,
String defaultSchema)
throws HibernateException
- Specified by:
sqlCreateString
in interface RelationalModel
- Throws:
HibernateException
sqlDropString
public String sqlDropString(Dialect dialect,
String defaultSchema)
- Specified by:
sqlDropString
in interface RelationalModel
getPrimaryKey
public PrimaryKey getPrimaryKey()
setPrimaryKey
public void setPrimaryKey(PrimaryKey primaryKey)
createIndex
public Index createIndex(String name,
List indexColumns)
getIndex
public Index getIndex(String indexName)
createUniqueKey
public UniqueKey createUniqueKey(List keyColumns)
getUniqueKey
public UniqueKey getUniqueKey(String keyName)
createForeignKey
public ForeignKey createForeignKey(String keyName,
List keyColumns,
Class referencedClass)
uniqueColumnString
public String uniqueColumnString(Iterator iterator)
getSchema
public String getSchema()
setSchema
public void setSchema(String schema)
getUniqueInteger
public int getUniqueInteger()
setIdentifierValue
public void setIdentifierValue(SimpleValue idValue)
isQuoted
public boolean isQuoted()
setQuoted
public void setQuoted(boolean quoted)
addCheckConstraint
public void addCheckConstraint(String constraint)