Class AbstractMetaDataDialect

java.lang.Object
org.hibernate.tool.internal.reveng.dialect.AbstractMetaDataDialect
All Implemented Interfaces:
RevengDialect
Direct Known Subclasses:
JDBCMetaDataDialect, OracleMetaDataDialect

public abstract class AbstractMetaDataDialect extends Object implements RevengDialect
abstract base class for the metadatadialects to hold the basic setup classes.
Author:
max
  • Field Details

    • log

      protected final org.jboss.logging.Logger log
  • Constructor Details

    • AbstractMetaDataDialect

      public AbstractMetaDataDialect()
  • Method Details

    • 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()
      Description copied from interface: RevengDialect
      Close any resources this dialect might have used.
      Specified by:
      close in interface RevengDialect
    • getMetaData

      protected DatabaseMetaData getMetaData()
    • getDatabaseStructure

      protected String getDatabaseStructure(String catalog, String schema)
    • getConnection

      protected Connection getConnection() throws SQLException
      Throws:
      SQLException
    • 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
    • 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:
    • caseForSearch

      protected String caseForSearch(String value) throws SQLException
      Throws:
      SQLException
    • 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)