Top Description Fields Constructors Methods
org.hibernate.tool.hbm2ddl

public Class TableMetadata

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
java.sql.DatabaseMetaData, .ResultSet, .SQLException, java.util.HashMap, .Locale, .Map, org.hibernate.internal.CoreMessageLogger, org.hibernate.mapping.ForeignKey

Deprecated

Everything in this package has been replaced with org.hibernate.tool.schema.spi.SchemaManagementTool and friends.

JDBC table metadata
Authors
Christoph Sturm, Max Rydahl Andersen

Field Summary

Modifier and TypeField and Description
private final String
private final Map<String, ColumnMetadata>
private final Map<String, ForeignKeyMetadata>
private final Map<String, IndexMetadata>
private static final CoreMessageLogger
private final String
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
TableMetadata(ResultSet rs, DatabaseMetaData meta, boolean extras)

Method Summary

Modifier and TypeMethod and Description
public void
private void
private void
public String
public ColumnMetadata
getColumnMetadata(String columnName)

Deprecated as a consequence of ColumnMetadata being deprecated.
public ForeignKeyMetadata
getForeignKeyMetadata(String keyName)

Deprecated as a consequence of ForeignKeyMetadata being deprecated.
public ForeignKeyMetadata
getForeignKeyMetadata(ForeignKey fk)

Deprecated as a consequence of ForeignKey and ForeignKeyMetadata being deprecated.
public IndexMetadata
getIndexMetadata(String indexName)

Deprecated as a consequence of IndexMetadata being deprecated.
public String
public String
private void
private void
private void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

catalogback to summary
private final String catalog
columnsback to summary
private final Map<String, ColumnMetadata> columns
foreignKeysback to summary
private final Map<String, ForeignKeyMetadata> foreignKeys
indexesback to summary
private final Map<String, IndexMetadata> indexes
LOGback to summary
private static final CoreMessageLogger LOG
nameback to summary
private final String name
schemaback to summary
private final String schema

Constructor Detail

TableMetadataback to summary
pack-priv TableMetadata(ResultSet rs, DatabaseMetaData meta, boolean extras) throws SQLException

Method Detail

addColumnback to summary
public void addColumn(ResultSet rs) throws SQLException
addForeignKeyback to summary
private void addForeignKey(ResultSet rs) throws SQLException
addIndexback to summary
private void addIndex(ResultSet rs) throws SQLException
getCatalogback to summary
public String getCatalog()
getColumnMetadataback to summary
public ColumnMetadata getColumnMetadata(String columnName)

Deprecated

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

getForeignKeyMetadataback to summary
public ForeignKeyMetadata getForeignKeyMetadata(String keyName)

Deprecated

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

getForeignKeyMetadataback to summary
public ForeignKeyMetadata getForeignKeyMetadata(ForeignKey fk)

Deprecated

as a consequence of ForeignKey and ForeignKeyMetadata being deprecated. See corresponding docs for further information.

getIndexMetadataback to summary
public IndexMetadata getIndexMetadata(String indexName)

Deprecated

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

getNameback to summary
public String getName()
getSchemaback to summary
public String getSchema()
initColumnsback to summary
private void initColumns(DatabaseMetaData meta) throws SQLException
initForeignKeysback to summary
private void initForeignKeys(DatabaseMetaData meta) throws SQLException
initIndexesback to summary
private void initIndexes(DatabaseMetaData meta) throws SQLException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override