类 DialectFactoryImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl
-
- 所有已实现的接口:
Serializable,DialectFactory,Service,ServiceRegistryAwareService
public class DialectFactoryImpl extends Object implements DialectFactory, ServiceRegistryAwareService
Standard implementation of theDialectFactoryservice.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 DialectFactoryImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DialectbuildDialect(Map configValues, DialectResolutionInfoSource resolutionInfoSource)Builds an appropriate Dialect instance.voidinjectServices(ServiceRegistryImplementor serviceRegistry)Callback to inject the registry.voidsetDialectResolver(DialectResolver dialectResolver)Intended only for use from testing.
-
-
-
方法详细资料
-
injectServices
public void injectServices(ServiceRegistryImplementor serviceRegistry)
从接口复制的说明:ServiceRegistryAwareServiceCallback to inject the registry.- 指定者:
injectServices在接口中ServiceRegistryAwareService- 参数:
serviceRegistry- The registry
-
setDialectResolver
public void setDialectResolver(DialectResolver dialectResolver)
Intended only for use from testing.- 参数:
dialectResolver- The DialectResolver to use
-
buildDialect
public Dialect buildDialect(Map configValues, DialectResolutionInfoSource resolutionInfoSource) throws HibernateException
从接口复制的说明:DialectFactoryBuilds an appropriate Dialect instance. If a dialect is explicitly named in the incoming properties, it should used. Otherwise, it is determined by dialect resolvers based on the passed connection. An exception is thrown if a dialect was not explicitly set and no resolver could make the determination from the given connection.- 指定者:
buildDialect在接口中DialectFactory- 参数:
configValues- The configuration properties.resolutionInfoSource- Access to DialectResolutionInfo used to resolve the Dialect to use if not explicitly named- 返回:
- The appropriate dialect instance.
- 抛出:
HibernateException- No dialect specified and no resolver could make the determination.
-
-