Class BasicDialectResolver
java.lang.Object
org.hibernate.engine.jdbc.dialect.spi.BasicDialectResolver
- All Implemented Interfaces:
Serializable, DialectResolver, Service
Intended as support for custom resolvers which match a single db name (with optional version info).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicDialectResolver(String nameToMatch, int majorVersionToMatch, int minorVersionToMatch, Class dialectClass) Constructs a BasicDialectResolverBasicDialectResolver(String nameToMatch, int majorVersionToMatch, Class dialectClass) Constructs a BasicDialectResolverBasicDialectResolver(String nameToMatch, Class dialectClass) Constructs a BasicDialectResolver -
Method Summary
Modifier and TypeMethodDescriptionfinal DialectSupply the Dialect selected for the database and driver information.
-
Constructor Details
-
BasicDialectResolver
-
BasicDialectResolver
-
BasicDialectResolver
public BasicDialectResolver(String nameToMatch, int majorVersionToMatch, int minorVersionToMatch, Class dialectClass) Constructs a BasicDialectResolver- Parameters:
nameToMatch- The name of the driver to match onmajorVersionToMatch- The version of the driver to match ondialectClass- The Dialect class to use on match
-
-
Method Details
-
resolveDialect
Description copied from interface:DialectResolverSupply the Dialect selected for the database and driver information.- Specified by:
resolveDialectin interfaceDialectResolver- Parameters:
info- the non-null database and driver information- Returns:
- the selected Dialect, or
nullwhen this resolver declines the request - See Also:
-