org.hibernate.cfg.reveng.dialect
Class OracleMetaDataDialect

java.lang.Object
  extended by org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect
      extended by org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect
All Implemented Interfaces:
MetaDataDialect

public class OracleMetaDataDialect
extends AbstractMetaDataDialect

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)

Field Summary
 
Fields inherited from class org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect
log
 
Constructor Summary
OracleMetaDataDialect()
           
 
Method Summary
 void close()
          Close any resources this dialect might have used.
 Iterator getColumns(String catalog, String schema, String table, String column)
          Return iterator over the columns that mathces catalog, schema and table
 Iterator getExportedKeys(String catalog, String schema, String table)
          Return iterator over the exported foreign keys that mathces catalog, schema and table
 Iterator getIndexInfo(String catalog, String schema, String table)
          Return iterator over the indexes that mathces catalog, schema and table
 Iterator getPrimaryKeys(String catalog, String schema, String table)
          Return iterator over the columns that mathces catalog, schema and table
 Iterator getTables(String catalog, String schema, String table)
          Return iterator over the tables that mathces catalog, schema and table
 
Methods inherited from class org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect
caseForSearch, close, configure, getConnection, getDatabaseStructure, getMetaData, getReverseEngineeringRuntimeInfo, getSQLExceptionConverter, getSuggestedPrimaryKeyStrategyName, needQuote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleMetaDataDialect

public OracleMetaDataDialect()
Method Detail

getTables

public Iterator getTables(String catalog,
                          String schema,
                          String table)
Description copied from interface: MetaDataDialect
Return iterator over the tables that mathces catalog, schema and table

Parameters:
catalog - name or null
schema - name or null
table - name or null
Returns:
iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "TABLE_TYPE" keys.

getIndexInfo

public Iterator getIndexInfo(String catalog,
                             String schema,
                             String table)
Description copied from interface: MetaDataDialect
Return iterator over the indexes that mathces catalog, schema and table

Parameters:
catalog - name or null
schema - name or null
table - 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 getColumns(String catalog,
                           String schema,
                           String table,
                           String column)
Description copied from interface: MetaDataDialect
Return iterator over the columns that mathces catalog, schema and table

Parameters:
catalog - name or null
schema - name or null
table - name or null
column - 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

public Iterator getPrimaryKeys(String catalog,
                               String schema,
                               String table)
Description copied from interface: MetaDataDialect
Return iterator over the columns that mathces catalog, schema and table

Parameters:
catalog - name or null
schema - name or null
Returns:
iterator with map elements that has "TABLE_NAME", "TABLE_SCHEMA", "TABLE_CAT", "COLUMN_NAME", "KEY_SEQ", "PK_NAME",

getExportedKeys

public Iterator getExportedKeys(String catalog,
                                String schema,
                                String table)
Description copied from interface: MetaDataDialect
Return iterator over the exported foreign keys that mathces catalog, schema and table

Parameters:
catalog - name or null
schema - name or null
table - 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: MetaDataDialect
Close any resources this dialect might have used.

Specified by:
close in interface MetaDataDialect
Overrides:
close in class AbstractMetaDataDialect