public class BasicDialectResolver extends Object implements DialectResolver
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)
nameToMatch
- The name of the driver to match ondialectClass
- The Dialect class to use on matchpublic BasicDialectResolver(String nameToMatch, int majorVersionToMatch, Class dialectClass)
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)
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)
DialectResolver
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 DialectResolver
info
- Access to the information about the database/driver needed to perform the resolutionCopyright © 2016 JBoss by Red Hat. All rights reserved.