Class MySQLMetaDataDialect
java.lang.Object
org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
org.hibernate.tool.internal.reveng.dialect.JDBCMetaDataDialect
org.hibernate.tool.internal.reveng.dialect.MySQLMetaDataDialect
- All Implemented Interfaces:
RevengDialect
-
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 tablegetSuggestedPrimaryKeyStrategyName(String catalog, String schema, String table) Based on info from http://dev.mysql.com/doc/refman/5.0/en/show-table-status.html Should work on pre-mysql 5 too since it uses the "old" SHOW TABLE command instead of SELECT from infotable.Return iterator over the tables that mathces catalog, schema and tableMethods inherited from class org.hibernate.tool.internal.reveng.dialect.JDBCMetaDataDialect
getExportedKeys, getIndexInfo, getPrimaryKeys, putExportedKeysPart, putTablePart, putTableTypeMethods inherited from class org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
caseForSearch, close, close, configure, getConnection, getDatabaseStructure, getMetaData, needQuote
-
Constructor Details
-
MySQLMetaDataDialect
public MySQLMetaDataDialect()
-
-
Method Details
-
getSuggestedPrimaryKeyStrategyName
public Iterator<Map<String,Object>> getSuggestedPrimaryKeyStrategyName(String catalog, String schema, String table) Based on info from http://dev.mysql.com/doc/refman/5.0/en/show-table-status.html Should work on pre-mysql 5 too since it uses the "old" SHOW TABLE command instead of SELECT from infotable.- Specified by:
getSuggestedPrimaryKeyStrategyNamein interfaceRevengDialect- Overrides:
getSuggestedPrimaryKeyStrategyNamein classAbstractMetaDataDialect- Parameters:
catalog-schema-- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "HIBERNATE_STRATEGY" (null if no possible to determine strategy, otherwise return hibernate identifier strategy name/classname)
-
getTables
Description copied from interface:RevengDialectReturn iterator over the tables that mathces catalog, schema and table- Specified by:
getTablesin interfaceRevengDialect- Overrides:
getTablesin classJDBCMetaDataDialect- 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.
-
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- Specified by:
getColumnsin interfaceRevengDialect- Overrides:
getColumnsin classJDBCMetaDataDialect- 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"
-