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

public Class TableMetadata

extends Object
Class Inheritance
Imports
java.sql.DatabaseMetaData, .ResultSet, .SQLException, java.util.HashMap, .Map, .Iterator, org.slf4j.Logger, .LoggerFactory, org.hibernate.mapping.ForeignKey

JDBC table metadata
Authors
Christoph Sturm, Max Rydahl Andersen

Field Summary

Modifier and TypeField and Description
private final String
private final Map<K, V>
private final Map<K, V>
private final Map<K, V>
private static final Logger
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
public ForeignKeyMetadata
public ForeignKeyMetadata
public IndexMetadata
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<K, V> columns
foreignKeysback to summary
private final Map<K, V> foreignKeys
indexesback to summary
private final Map<K, V> indexes
logback to summary
private static final Logger 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)
getForeignKeyMetadataback to summary
public ForeignKeyMetadata getForeignKeyMetadata(String keyName)
getForeignKeyMetadataback to summary
public ForeignKeyMetadata getForeignKeyMetadata(ForeignKey fk)
getIndexMetadataback to summary
public IndexMetadata getIndexMetadata(String indexName)
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.