类 DialectResolverSet
- java.lang.Object
-
- org.hibernate.engine.jdbc.dialect.internal.DialectResolverSet
-
- 所有已实现的接口:
Serializable,DialectResolver,Service
public class DialectResolverSet extends Object implements DialectResolver
ADialectResolverimplementation which coordinates resolution by delegating to sub-resolvers.- 作者:
- Tomoto Shimizu Washio, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 DialectResolverSet()DialectResolverSet(List<DialectResolver> resolvers)DialectResolverSet(DialectResolver... resolvers)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddResolver(DialectResolver resolver)Add a resolver at the end of the underlying resolver list.voidaddResolverAtFirst(DialectResolver resolver)Add a resolver at the beginning of the underlying resolver list.DialectresolveDialect(DialectResolutionInfo info)Determine theDialectto use based on the given information.
-
-
-
构造器详细资料
-
DialectResolverSet
public DialectResolverSet()
-
DialectResolverSet
public DialectResolverSet(List<DialectResolver> resolvers)
-
DialectResolverSet
public DialectResolverSet(DialectResolver... resolvers)
-
-
方法详细资料
-
resolveDialect
public 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.
-
addResolver
public void addResolver(DialectResolver resolver)
Add a resolver at the end of the underlying resolver list. The resolver added by this method is at lower priority than any other existing resolvers.- 参数:
resolver- The resolver to add.
-
addResolverAtFirst
public void addResolverAtFirst(DialectResolver resolver)
Add a resolver at the beginning of the underlying resolver list. The resolver added by this method is at higher priority than any other existing resolvers.- 参数:
resolver- The resolver to add.
-
-