Interface DialectResolver

All Superinterfaces:
Serializable, Service
All Known Implementing Classes:
BasicDialectResolver

@JavaServiceLoadable @SPI({USE,IMPLEMENT,SUPPLY}) public interface DialectResolver extends Service

Resolves a Dialect from database and driver information during bootstrap.

Expose an implementation through the Java ServiceLoader facility or list its class name in JdbcSettings.DIALECT_RESOLVERS. Explicitly configured resolvers run before service-loaded resolvers, and Hibernate's standard resolver runs last.

Return null when the supplied information is not recognized. Do not retain the bootstrap-scoped resolution information or consume and close its optional JDBC metadata handle.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Supply the Dialect selected for the database and driver information.
  • Method Details

    • resolveDialect

      Supply the Dialect selected for the database and driver information.
      Parameters:
      info - the non-null database and driver information
      Returns:
      the selected Dialect, or null when this resolver declines the request
      See Also: