public class BasicDialectResolver extends Object implements DialectResolver
Intended as support for custom resolvers which match a single db name (with optional version info).
| Constructor and Description |
|---|
BasicDialectResolver(String nameToMatch,
Class dialectClass)
Constructs a BasicDialectResolver
|
BasicDialectResolver(String nameToMatch,
int majorVersionToMatch,
Class dialectClass)
Constructs a BasicDialectResolver
|
BasicDialectResolver(String nameToMatch,
int majorVersionToMatch,
int minorVersionToMatch,
Class dialectClass)
Constructs a BasicDialectResolver
|
| Modifier and Type | Method and Description |
|---|---|
Dialect |
resolveDialect(DialectResolutionInfo info)
Determine the
Dialect to use based on the given information. |
public BasicDialectResolver(String nameToMatch, Class dialectClass)
Constructs a BasicDialectResolver
nameToMatch - The name of the driver to match ondialectClass - The Dialect class to use on matchpublic BasicDialectResolver(String nameToMatch, int majorVersionToMatch, Class dialectClass)
Constructs a BasicDialectResolver
nameToMatch - The name of the driver to match onmajorVersionToMatch - The version of the driver to match ondialectClass - The Dialect class to use on matchpublic BasicDialectResolver(String nameToMatch, int majorVersionToMatch, int minorVersionToMatch, Class dialectClass)
Constructs a BasicDialectResolver
nameToMatch - The name of the driver to match onmajorVersionToMatch - The version of the driver to match ondialectClass - The Dialect class to use on matchpublic final Dialect resolveDialect(DialectResolutionInfo info)
DialectResolverDetermine the Dialect to use based on the given information. Implementations are expected to return
the Dialect instance to use, or null if the they did not locate a match.
resolveDialect in interface DialectResolverinfo - Access to the information about the database/driver needed to perform the resolutionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.