接口 DialectFactory
-
- 所有超级接口:
Serializable,Service
- 所有已知实现类:
DialectFactoryImpl
public interface DialectFactory extends Service
A factory for generating Dialect instances.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 DialectbuildDialect(Map configValues, DialectResolutionInfoSource resolutionInfoSource)Builds an appropriate Dialect instance.
-
-
-
方法详细资料
-
buildDialect
Dialect buildDialect(Map configValues, DialectResolutionInfoSource resolutionInfoSource) throws HibernateException
Builds 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.- 参数:
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.
-
-