Class OracleMetaDataDialect
java.lang.Object
org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
org.hibernate.tool.internal.reveng.dialect.OracleMetaDataDialect
- All Implemented Interfaces:
RevengDialect
Oracle Specialised MetaData dialect that uses standard JDBC and querys on the
Data Dictionary for reading metadata.
- Author:
- David Channon, Eric Kershner (added preparedstatements HBX-817), Jacques Stadler (added HBX-1027)
-
Field Summary
Fields inherited from class org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close any resources this dialect might have used.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 table) Return iterator over the columns that mathces catalog, schema and tableReturn iterator over the tables that mathces catalog, schema and tableMethods inherited from class org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
caseForSearch, close, configure, getConnection, getDatabaseStructure, getMetaData, getSuggestedPrimaryKeyStrategyName, needQuote
-
Constructor Details
-
OracleMetaDataDialect
public OracleMetaDataDialect()
-
-
Method Details
-
getTables
Description copied from interface:RevengDialectReturn iterator over the tables that mathces catalog, schema and table- 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.
-
getIndexInfo
Description copied from interface:RevengDialectReturn iterator over the indexes that mathces catalog, schema and table- 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.
-
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- 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"
-
getPrimaryKeys
Description copied from interface:RevengDialectReturn iterator over the columns that mathces catalog, schema and table- 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",
-
getExportedKeys
Description copied from interface:RevengDialectReturn iterator over the exported foreign keys that mathces catalog, schema and table- 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"
-
close
public void close()Description copied from interface:RevengDialectClose any resources this dialect might have used.- Specified by:
closein interfaceRevengDialect- Overrides:
closein classAbstractMetaDataDialect
-