Class CachedMetaDataDialect

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

public class CachedMetaDataDialect extends Object implements RevengDialect
  • Constructor Details

    • CachedMetaDataDialect

      public CachedMetaDataDialect(RevengDialect realMetaData)
  • Method Details

    • close

      public void close()
      Description copied from interface: RevengDialect
      Close any resources this dialect might have used.
      Specified by:
      close in interface RevengDialect
    • configure

      public void configure(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider)
      Description copied from interface: RevengDialect
      Configure the metadatadialect.
      Specified by:
      configure in interface RevengDialect
      Parameters:
      connectionProvider - a ConnectionProvider
    • close

      public void close(Iterator<?> iterator)
      Description copied from interface: RevengDialect
      Close the iterator.
      Specified by:
      close in interface RevengDialect
      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: RevengDialect
      Return iterator over the columns that mathces catalog, schema and table
      Specified by:
      getColumns in interface RevengDialect
      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"
    • 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
      Specified by:
      getExportedKeys in interface RevengDialect
      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"
    • 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
      Specified by:
      getIndexInfo in interface RevengDialect
      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.
    • getPrimaryKeys

      public Iterator<Map<String,Object>> getPrimaryKeys(String catalog, String schema, String name)
      Description copied from interface: RevengDialect
      Return iterator over the columns that mathces catalog, schema and table
      Specified by:
      getPrimaryKeys in interface RevengDialect
      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",
    • 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
      Specified by:
      getTables in interface RevengDialect
      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.
    • getSuggestedPrimaryKeyStrategyName

      public Iterator<Map<String,Object>> getSuggestedPrimaryKeyStrategyName(String catalog, String schema, String table)
      Description copied from interface: RevengDialect
      Use database (possible native) metadata to suggest identifier strategy.
      Specified by:
      getSuggestedPrimaryKeyStrategyName in interface RevengDialect
      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

      public boolean needQuote(String name)
      Description copied from interface: RevengDialect
      Does this name need quoting
      Specified by:
      needQuote in interface RevengDialect
      Parameters:
      name -
      Returns: