Class CachedMetaDataDialect
java.lang.Object
org.hibernate.tool.internal.reveng.dialect.CachedMetaDataDialect
- All Implemented Interfaces:
RevengDialect
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close any resources this dialect might have used.voidClose the iterator.voidconfigure(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider) Configure the metadatadialect.getColumns(String catalog, String schema, String table, String column) Return iterator over the columns that mathces catalog, schema and tablegetExportedKeys(String catalog, String schema, String table) Return iterator over the exported foreign keys that mathces catalog, schema and tablegetIndexInfo(String catalog, String schema, String table) Return iterator over the indexes that mathces catalog, schema and tablegetPrimaryKeys(String catalog, String schema, String name) Return iterator over the columns that mathces catalog, schema and tablegetSuggestedPrimaryKeyStrategyName(String catalog, String schema, String table) Use database (possible native) metadata to suggest identifier strategy.Return iterator over the tables that mathces catalog, schema and tablebooleanDoes this name need quoting
-
Constructor Details
-
CachedMetaDataDialect
-
-
Method Details
-
close
public void close()Description copied from interface:RevengDialectClose any resources this dialect might have used.- Specified by:
closein interfaceRevengDialect
-
configure
public void configure(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider) Description copied from interface:RevengDialectConfigure the metadatadialect.- Specified by:
configurein interfaceRevengDialect- Parameters:
connectionProvider- aConnectionProvider
-
close
Description copied from interface:RevengDialectClose the iterator.- Specified by:
closein interfaceRevengDialect- Parameters:
iterator- an iterator returned from one of methods on this dialect
-
getColumns
public Iterator<Map<String,Object>> getColumns(String catalog, String schema, String table, String column) Description copied from interface:RevengDialectReturn iterator over the columns that mathces catalog, schema and table- Specified by:
getColumnsin interfaceRevengDialect- Parameters:
catalog- name or nullschema- name or nulltable- name or nullcolumn- 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"
-
getExportedKeys
Description copied from interface:RevengDialectReturn iterator over the exported foreign keys that mathces catalog, schema and table- Specified by:
getExportedKeysin interfaceRevengDialect- Parameters:
catalog- name or nullschema- name or nulltable- 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"
-
getIndexInfo
Description copied from interface:RevengDialectReturn iterator over the indexes that mathces catalog, schema and table- Specified by:
getIndexInfoin interfaceRevengDialect- Parameters:
catalog- name or nullschema- name or nulltable- name or null- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "INDEX_NAME", "COLUMN_NAME", "NON_UNIQUE", "TYPE" keys.
-
getPrimaryKeys
Description copied from interface:RevengDialectReturn iterator over the columns that mathces catalog, schema and table- Specified by:
getPrimaryKeysin interfaceRevengDialect- Parameters:
catalog- name or nullschema- name or null- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "COLUMN_NAME", "KEY_SEQ", "PK_NAME",
-
getTables
Description copied from interface:RevengDialectReturn iterator over the tables that mathces catalog, schema and table- Specified by:
getTablesin interfaceRevengDialect- Parameters:
catalog- name or nullschema- name or nulltable- name or null- Returns:
- iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "TABLE_TYPE" keys.
-
getSuggestedPrimaryKeyStrategyName
public Iterator<Map<String,Object>> getSuggestedPrimaryKeyStrategyName(String catalog, String schema, String table) Description copied from interface:RevengDialectUse database (possible native) metadata to suggest identifier strategy.- Specified by:
getSuggestedPrimaryKeyStrategyNamein interfaceRevengDialect- 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)
-
needQuote
Description copied from interface:RevengDialectDoes this name need quoting- Specified by:
needQuotein interfaceRevengDialect- Parameters:
name-- Returns:
-