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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicDialectResolver(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dialect
resolveDialect(DialectResolutionInfo info)
Determine theDialect
to use based on the given information.
-
-
-
Constructor Detail
-
BasicDialectResolver
public BasicDialectResolver(String nameToMatch, 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(String nameToMatch, int majorVersionToMatch, 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(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 Detail
-
resolveDialect
public final Dialect resolveDialect(DialectResolutionInfo info)
Description copied from interface:DialectResolver
Determine theDialect
to use based on the given information. Implementations are expected to return theDialect
instance to use, ornull
if they did not locate a match.- Specified by:
resolveDialect
in interfaceDialectResolver
- Parameters:
info
- Access to the information about the database/driver needed to perform the resolution- Returns:
- The dialect to use, or null.
-
-