Class JDBCMetaDataDialect
java.lang.Object
org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
org.hibernate.tool.internal.reveng.dialect.JDBCMetaDataDialect
- All Implemented Interfaces:
RevengDialect
- Direct Known Subclasses:
H2MetaDataDialect,HSQLMetaDataDialect,MySQLMetaDataDialect,SQLServerMetaDataDialect
MetaData dialect that uses standard JDBC for reading metadata.
- Author:
- Max Rydahl Andersen
-
Field Summary
Fields inherited from class org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumns(String xcatalog, String xschema, String xtable, String xcolumn) Return iterator over the columns that mathces catalog, schema and tablegetExportedKeys(String xcatalog, String xschema, String xtable) Return iterator over the exported foreign keys that mathces catalog, schema and tablegetIndexInfo(String xcatalog, String xschema, String xtable) Return iterator over the indexes that mathces catalog, schema and tablegetPrimaryKeys(String xcatalog, String xschema, String xtable) Return iterator over the columns that mathces catalog, schema and tableReturn iterator over the tables that mathces catalog, schema and tableprotected voidputExportedKeysPart(Map<String, Object> element, ResultSet rs) protected voidputTablePart(Map<String, Object> element, ResultSet tableRs) protected voidputTableType(Map<String, Object> element, ResultSet tableRs) Methods inherited from class org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
caseForSearch, close, close, configure, getConnection, getDatabaseStructure, getMetaData, getSuggestedPrimaryKeyStrategyName, needQuote
-
Constructor Details
-
JDBCMetaDataDialect
public JDBCMetaDataDialect()
-
-
Method Details
-
getTables
Description copied from interface:RevengDialectReturn iterator over the tables that mathces catalog, schema and table- Parameters:
xcatalog- name or nullxschema- name or nullxtable- name or null- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "TABLE_TYPE" keys.
-
getIndexInfo
Description copied from interface:RevengDialectReturn iterator over the indexes that mathces catalog, schema and table- Parameters:
xcatalog- name or nullxschema- name or nullxtable- name or null- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "INDEX_NAME", "COLUMN_NAME", "NON_UNIQUE", "TYPE" keys.
-
putTableType
- Throws:
SQLException
-
putTablePart
- Throws:
SQLException
-
getColumns
public Iterator<Map<String,Object>> getColumns(String xcatalog, String xschema, String xtable, String xcolumn) Description copied from interface:RevengDialectReturn iterator over the columns that mathces catalog, schema and table- Parameters:
xcatalog- name or nullxschema- name or nullxtable- name or nullxcolumn- name or null- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "DATA_TYPE", "TYPE_NAME", "COLUMN_NAME", "NULLABLE", "COLUMN_SIZE", "DECIMAL_DIGITS"
-
getPrimaryKeys
Description copied from interface:RevengDialectReturn iterator over the columns that mathces catalog, schema and table- Parameters:
xcatalog- name or nullxschema- name or null- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "COLUMN_NAME", "KEY_SEQ", "PK_NAME",
-
getExportedKeys
Description copied from interface:RevengDialectReturn iterator over the exported foreign keys that mathces catalog, schema and table- Parameters:
xcatalog- name or nullxschema- name or nullxtable- name or null- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "FKTABLE_CAT", "FKTABLE_SCHEM", "FKTABLE_NAME", "FK_NAME", "KEY_SEQ"
-
putExportedKeysPart
- Throws:
SQLException
-