Class BasicDialectResolver
- java.lang.Object
-
- org.hibernate.engine.jdbc.dialect.spi.BasicDialectResolver
-
- All Implemented Interfaces:
java.io.Serializable,DialectResolver,Service
public class BasicDialectResolver extends java.lang.Object implements DialectResolver
Intended as support for custom resolvers which match a single db name (with optional version info).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicDialectResolver(java.lang.String nameToMatch, int majorVersionToMatch, int minorVersionToMatch, java.lang.Class dialectClass)Constructs a BasicDialectResolverBasicDialectResolver(java.lang.String nameToMatch, int majorVersionToMatch, java.lang.Class dialectClass)Constructs a BasicDialectResolverBasicDialectResolver(java.lang.String nameToMatch, java.lang.Class dialectClass)Constructs a BasicDialectResolver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DialectresolveDialect(DialectResolutionInfo info)Determine theDialectto use based on the given information.
-
-
-
Constructor Detail
-
BasicDialectResolver
public BasicDialectResolver(java.lang.String nameToMatch, java.lang.Class dialectClass)Constructs a BasicDialectResolver- Parameters:
nameToMatch- The name of the driver to match ondialectClass- The Dialect class to use on match
-
BasicDialectResolver
public BasicDialectResolver(java.lang.String nameToMatch, int majorVersionToMatch, java.lang.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
-
BasicDialectResolver
public BasicDialectResolver(java.lang.String nameToMatch, int majorVersionToMatch, int minorVersionToMatch, java.lang.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 Detail
-
resolveDialect
public final Dialect resolveDialect(DialectResolutionInfo info)
Description copied from interface:DialectResolverDetermine theDialectto use based on the given information. Implementations are expected to return theDialectinstance to use, ornullif the they did not locate a match.- Specified by:
resolveDialectin interfaceDialectResolver- Parameters:
info- Access to the information about the database/driver needed to perform the resolution- Returns:
- The dialect to use, or null.
-
-