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()
|
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)
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)
throws HibernateException
- Throws:
HibernateException
sqlCreateString
public String sqlCreateString(Dialect dialect,
Mapping p)
throws HibernateException
- Specified by:
sqlCreateString
in interface RelationalModel
- Throws:
HibernateException
sqlDropString
public String sqlDropString(Dialect dialect)
- 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)