public class Table extends Object implements RelationalModel, Serializable
public Table()
public Table(String name)
public String getQualifiedName(Dialect dialect, String defaultCatalog, String defaultSchema)
public String getName()
public String getQuotedName()
public String getQuotedSchema()
public String getQuotedCatalog()
public void setName(String name)
public Column getColumn(Column column)
column
- column with atleast a name.public Column getColumn(int n)
public void addColumn(Column column)
public int getColumnSpan()
public Iterator getColumnIterator()
public Iterator getForeignKeyIterator()
public boolean equals(Table table)
public void validateColumns(Dialect dialect, Mapping mapping, TableMetadata tableInfo)
public Iterator sqlAlterStrings(Dialect dialect, Mapping p, TableMetadata tableInfo, String defaultCatalog, String defaultSchema) throws HibernateException
HibernateException
public boolean hasPrimaryKey()
public String sqlTemporaryTableCreateString(Dialect dialect, Mapping mapping) throws HibernateException
HibernateException
public String sqlCreateString(Dialect dialect, Mapping p, String defaultCatalog, String defaultSchema)
sqlCreateString
in interface RelationalModel
public String sqlDropString(Dialect dialect, String defaultCatalog, String defaultSchema)
sqlDropString
in interface RelationalModel
public PrimaryKey getPrimaryKey()
public void setPrimaryKey(PrimaryKey primaryKey)
public void createForeignKeys()
public ForeignKey createForeignKey(String keyName, List keyColumns, String referencedEntityName)
public ForeignKey createForeignKey(String keyName, List keyColumns, String referencedEntityName, List referencedColumns)
public String getSchema()
public void setSchema(String schema)
public String getCatalog()
public void setCatalog(String catalog)
public void setUniqueInteger(int uniqueInteger)
public int getUniqueInteger()
public void setIdentifierValue(KeyValue idValue)
public KeyValue getIdentifierValue()
public boolean isSchemaQuoted()
public boolean isCatalogQuoted()
public boolean isQuoted()
public void setQuoted(boolean quoted)
public void addCheckConstraint(String constraint)
public boolean containsColumn(Column column)
public String getRowId()
public void setRowId(String rowId)
public String getSubselect()
public void setSubselect(String subselect)
public boolean isSubselect()
public boolean isAbstractUnionTable()
public boolean hasDenormalizedTables()
public void setAbstract(boolean isAbstract)
public boolean isAbstract()
public boolean isPhysicalTable()
public String getComment()
public void setComment(String comment)
public Iterator getCheckConstraintsIterator()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.