类 BasicDialectResolver
- java.lang.Object
-
- org.hibernate.engine.jdbc.dialect.spi.BasicDialectResolver
-
- 所有已实现的接口:
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).- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 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
-
-
-
构造器详细资料
-
BasicDialectResolver
public BasicDialectResolver(String nameToMatch, Class dialectClass)
Constructs a BasicDialectResolver- 参数:
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- 参数:
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- 参数:
nameToMatch- The name of the driver to match onmajorVersionToMatch- The version of the driver to match ondialectClass- The Dialect class to use on match
-
-
方法详细资料
-
resolveDialect
public final Dialect resolveDialect(DialectResolutionInfo info)
从接口复制的说明:DialectResolverDetermine theDialectto use based on the given information. Implementations are expected to return theDialectinstance to use, ornullif the they did not locate a match.- 指定者:
resolveDialect在接口中DialectResolver- 参数:
info- Access to the information about the database/driver needed to perform the resolution- 返回:
- The dialect to use, or null.
-
-