Top Description Inners Fields Constructors Methods
org.hibernate.mapping

public Class Table

extends Object
implements RelationalModel, Serializable, Exportable
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.relational.Exportable, java.io.Serializable, org.hibernate.mapping.RelationalModel
Known Direct Subclasses
org.hibernate.mapping.DenormalizedTable
Annotations
@SuppressWarnings:deprecation
Imports
java.io.Serializable, java.util.ArrayList, .Arrays, .Collections, .Iterator, .LinkedHashMap, .List, .Locale, .Map, .Objects, java.util.function.Function, org.hibernate.HibernateException, .MappingException, org.hibernate.boot.Metadata, org.hibernate.boot.model.naming.Identifier, org.hibernate.boot.model.relational.Exportable, .InitCommand, .Namespace, .QualifiedTableName, .SqlStringGenerationContext, org.hibernate.dialect.Dialect, org.hibernate.engine.spi.Mapping, org.hibernate.tool.hbm2ddl.ColumnMetadata, .TableMetadata, org.hibernate.tool.schema.extract.spi.ColumnInformation, .TableInformation, org.jboss.logging.Logger

Deprecated

as a consequence of RelationalModel being deprecated. See corresponding docs for further information.

A relational table
Author
Gavin King

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private Identifier
private List<String>
private Map<String, Column>
columns

contains all columns, including the primary key

private String
private static final Column[]
private Map<Table.ForeignKeyKey, ForeignKey>
private boolean
private KeyValue
private Map<String, Index>
private List<Function<SqlStringGenerationContext, InitCommand>>
private boolean
private static final Logger
private Identifier
private PrimaryKey
primaryKey

Deprecated as a consequence of PrimaryKey being deprecated.
private String
private Identifier
private int
private String
private int
private Map<String, UniqueKey>

Constructor Summary

AccessConstructor and Description
public
public
Table(String name)

public
Table(Namespace namespace, Identifier physicalTableName, boolean isAbstract)

public
Table(Identifier catalog, Identifier schema, Identifier physicalTableName, boolean isAbstract)

public
Table(Namespace namespace, Identifier physicalTableName, String subselect, boolean isAbstract)

public
Table(Namespace namespace, String subselect, boolean isAbstract)

Method Summary

Modifier and TypeMethod and Description
public void
public void
addColumn(Column column)

public Index
addIndex(Index index)

Deprecated as a consequence of Index being deprecated.
public void
addInitCommand(InitCommand command)

Deprecated Use addInitCommand(Function) instead.
public void
public UniqueKey
addUniqueKey(UniqueKey uniqueKey)

Deprecated as a consequence of UniqueKey being deprecated.
private void
private void
public boolean
public ForeignKey
createForeignKey(String keyName, List<Column> keyColumns, String referencedEntityName, String keyDefinition)

Deprecated as a consequence of ForeignKey being deprecated.
public ForeignKey
createForeignKey(String keyName, List<Column> keyColumns, String referencedEntityName, String keyDefinition, List<Column> referencedColumns)

Deprecated as a consequence of ForeignKey being deprecated.
public void
public UniqueKey
createUniqueKey(List<Column> keyColumns)

Deprecated as a consequence of UniqueKey being deprecated.
public boolean
equals(Object
the reference object with which to compare.
object
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
public boolean
equals(Table table)

Deprecated as a consequence of Table being deprecated.
public String
public Iterator<String>
public Column

Returns:

the underlying column or null if not inside this table.

Note

the instance *can* be different than the input parameter, but the name will be the same.

getColumn
(Column
column with at least a name.
column
)

Return the column which is identified by column provided as argument.

public Column
public Column
getColumn(int n)

public Iterator<Column>
public int
public String
public String
getExportIdentifier()

Implements org.hibernate.boot.model.relational.Exportable.getExportIdentifier.

Get a unique identifier to make sure we are not exporting the same database structure multiple times.
public Iterator<ForeignKey>
public Map<Table.ForeignKeyKey, ForeignKey>
public KeyValue
public Index
getIndex(String indexName)

Deprecated as a consequence of Index being deprecated.
public Iterator<Index>
public List<InitCommand>
public String
public Identifier
public Index
getOrCreateIndex(String indexName)

Deprecated as a consequence of Index being deprecated.
public UniqueKey
getOrCreateUniqueKey(String keyName)

Deprecated as a consequence of UniqueKey being deprecated.
public PrimaryKey
getPrimaryKey()

Deprecated as a consequence of PrimaryKey being deprecated.
public String
public QualifiedTableName
public String
public String
public String
public String
public String
public String
public String
public String
public String
public int
public UniqueKey
getUniqueKey(String keyName)

Deprecated as a consequence of UniqueKey being deprecated.
public Iterator<UniqueKey>
pack-priv Map<String, UniqueKey>
public boolean
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
private boolean
isSameAsPrimaryKeyColumns(UniqueKey uniqueKey)

Deprecated as a consequence of UniqueKey being deprecated.
public boolean
public boolean
public static String
qualify(String catalog, String schema, String table)

private String
render(Identifier identifier)

public void
setAbstract(boolean isAbstract)

public void
setCatalog(String catalog)

public void
setComment(String comment)

pack-priv void
public void
public void
public void
setPrimaryKey(PrimaryKey primaryKey)

Deprecated as a consequence of PrimaryKey being deprecated.
public void
setQuoted(boolean quoted)

public void
public void
setSchema(String schema)

public void
setSubselect(String subselect)

public void
setUniqueInteger(int uniqueInteger)

public Iterator<String>
sqlAlterStrings(Dialect dialect, Metadata metadata, TableInformation tableInfo, SqlStringGenerationContext sqlStringGenerationContext)

public String
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
validateColumns(Dialect dialect, Mapping mapping, TableMetadata tableInfo)

Deprecated as a consequence of TableMetadata being deprecated.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait