Class BasicDialectResolver

java.lang.Object
org.hibernate.engine.jdbc.dialect.spi.BasicDialectResolver
All Implemented Interfaces:
Serializable, DialectResolver, Service

public class BasicDialectResolver extends Object implements DialectResolver
Intended as support for custom resolvers which match a single db name (with optional version info).
See Also:
  • Constructor Details

    • BasicDialectResolver

      public BasicDialectResolver(String nameToMatch, Class dialectClass)
      Constructs a BasicDialectResolver
      Parameters:
      nameToMatch - The name of the driver to match on
      dialectClass - The Dialect class to use on match
    • BasicDialectResolver

      public BasicDialectResolver(String nameToMatch, int majorVersionToMatch, Class dialectClass)
      Constructs a BasicDialectResolver
      Parameters:
      nameToMatch - The name of the driver to match on
      majorVersionToMatch - The version of the driver to match on
      dialectClass - The Dialect class to use on match
    • BasicDialectResolver

      public BasicDialectResolver(String nameToMatch, int majorVersionToMatch, int minorVersionToMatch, Class dialectClass)
      Constructs a BasicDialectResolver
      Parameters:
      nameToMatch - The name of the driver to match on
      majorVersionToMatch - The version of the driver to match on
      dialectClass - The Dialect class to use on match
  • Method Details

    • resolveDialect

      public final Dialect resolveDialect(DialectResolutionInfo info)
      Description copied from interface: DialectResolver
      Supply the Dialect selected for the database and driver information.
      Specified by:
      resolveDialect in interface DialectResolver
      Parameters:
      info - the non-null database and driver information
      Returns:
      the selected Dialect, or null when this resolver declines the request
      See Also: