类 TableInformationImpl
- java.lang.Object
-
- org.hibernate.tool.schema.extract.internal.TableInformationImpl
-
- 所有已实现的接口:
TableInformation
public class TableInformationImpl extends Object implements TableInformation
Provides access to information about existing schema objects (tables, sequences etc) of existing database.- 作者:
- Christoph Sturm, Max Rydahl Andersen, Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 TableInformationImpl(InformationExtractor extractor, IdentifierHelper identifierHelper, QualifiedTableName tableName, boolean physicalTable, String comment)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddColumn(ColumnInformation columnIdentifier)protected Map<Identifier,ForeignKeyInformation>foreignKeys()ColumnInformationgetColumn(Identifier columnIdentifier)Retrieve the named ColumnInformationStringgetComment()Get the comments/remarks defined for the table.ForeignKeyInformationgetForeignKey(Identifier fkIdentifier)Retrieve the named ForeignKeyInformationIterable<ForeignKeyInformation>getForeignKeys()Obtain an iterable over all the table's defined foreign keys.IndexInformationgetIndex(Identifier indexName)Retrieve the named IndexInformationIterable<IndexInformation>getIndexes()Obtain an iterable over all the table's defined indexes.QualifiedTableNamegetName()Get the qualified name of the table.PrimaryKeyInformationgetPrimaryKey()Retrieve information about the table's primary key, if one is defined (aka, may returnnull).protected Map<Identifier,IndexInformation>indexes()booleanisPhysicalTable()Does this information describe a physical table as opposed to a view, etc?StringtoString()
-
-
-
构造器详细资料
-
TableInformationImpl
public TableInformationImpl(InformationExtractor extractor, IdentifierHelper identifierHelper, QualifiedTableName tableName, boolean physicalTable, String comment)
-
-
方法详细资料
-
getName
public QualifiedTableName getName()
从接口复制的说明:TableInformationGet the qualified name of the table.- 指定者:
getName在接口中TableInformation- 返回:
- The qualified table name
-
isPhysicalTable
public boolean isPhysicalTable()
从接口复制的说明:TableInformationDoes this information describe a physical table as opposed to a view, etc?- 指定者:
isPhysicalTable在接口中TableInformation- 返回:
trueif this is a physical table;falseotherwise.
-
getComment
public String getComment()
从接口复制的说明:TableInformationGet the comments/remarks defined for the table.- 指定者:
getComment在接口中TableInformation- 返回:
- The table comments
-
getColumn
public ColumnInformation getColumn(Identifier columnIdentifier)
从接口复制的说明:TableInformationRetrieve the named ColumnInformation- 指定者:
getColumn在接口中TableInformation- 参数:
columnIdentifier- The column identifier (simple name)- 返回:
- The matching column information. May return
null
-
getPrimaryKey
public PrimaryKeyInformation getPrimaryKey()
从接口复制的说明:TableInformationRetrieve information about the table's primary key, if one is defined (aka, may returnnull).- 指定者:
getPrimaryKey在接口中TableInformation- 返回:
- The primary key information, or
nullif the table did not define a primary key.
-
getForeignKeys
public Iterable<ForeignKeyInformation> getForeignKeys()
从接口复制的说明:TableInformationObtain an iterable over all the table's defined foreign keys.- 指定者:
getForeignKeys在接口中TableInformation- 返回:
- The iterable.
-
foreignKeys
protected Map<Identifier,ForeignKeyInformation> foreignKeys()
-
getForeignKey
public ForeignKeyInformation getForeignKey(Identifier fkIdentifier)
从接口复制的说明:TableInformationRetrieve the named ForeignKeyInformation- 指定者:
getForeignKey在接口中TableInformation- 参数:
fkIdentifier- The foreign key identifier (simple name)- 返回:
- The matching foreign key information. May return
null
-
getIndexes
public Iterable<IndexInformation> getIndexes()
从接口复制的说明:TableInformationObtain an iterable over all the table's defined indexes.- 指定者:
getIndexes在接口中TableInformation- 返回:
- The iterable.
-
indexes
protected Map<Identifier,IndexInformation> indexes()
-
addColumn
public void addColumn(ColumnInformation columnIdentifier)
- 指定者:
addColumn在接口中TableInformation
-
getIndex
public IndexInformation getIndex(Identifier indexName)
从接口复制的说明:TableInformationRetrieve the named IndexInformation- 指定者:
getIndex在接口中TableInformation- 参数:
indexName- The index identifier (simple name)- 返回:
- The matching index information. May return
null
-
-