public interface DialectFactory extends Service
A factory for generating Dialect instances.
Modifier and Type | Method and Description |
---|---|
Dialect |
buildDialect(Map configValues,
DialectResolutionInfoSource resolutionInfoSource)
Builds an appropriate Dialect instance.
|
Dialect buildDialect(Map configValues, DialectResolutionInfoSource resolutionInfoSource) throws HibernateException
Builds an appropriate Dialect instance. <p/> 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. <p/> 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 namedHibernateException
- No dialect specified and no resolver could make the determination.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.