Class OracleMetaDataDialect

java.lang.Object
org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
org.hibernate.tool.internal.reveng.dialect.OracleMetaDataDialect
All Implemented Interfaces:
RevengDialect

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), Jacques Stadler (added HBX-1027)
  • Constructor Details

    • OracleMetaDataDialect

      public OracleMetaDataDialect()
  • Method Details

    • getTables

      public Iterator<Map<String,Object>> getTables(String catalog, String schema, String table)
      Description copied from interface: RevengDialect
      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<Map<String,Object>> getIndexInfo(String catalog, String schema, String table)
      Description copied from interface: RevengDialect
      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<Map<String,Object>> getColumns(String catalog, String schema, String table, String column)
      Description copied from interface: RevengDialect
      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<Map<String,Object>> getPrimaryKeys(String catalog, String schema, String table)
      Description copied from interface: RevengDialect
      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<Map<String,Object>> getExportedKeys(String catalog, String schema, String table)
      Description copied from interface: RevengDialect
      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: RevengDialect
      Close any resources this dialect might have used.
      Specified by:
      close in interface RevengDialect
      Overrides:
      close in class AbstractMetaDataDialect