Interface DialectFactory
-
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
DialectFactoryImpl
,DialectFactoryTestingImpl
public interface DialectFactory extends Service
A factory for generating Dialect instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Dialect
buildDialect(Map<String,Object> configValues, DialectResolutionInfoSource resolutionInfoSource)
Builds an appropriate Dialect instance.
-
-
-
Method Detail
-
buildDialect
Dialect buildDialect(Map<String,Object> 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.
- Parameters:
configValues
- The configuration properties.resolutionInfoSource
- Access to DialectResolutionInfo used to resolve the Dialect to use if not explicitly named- Returns:
- The appropriate dialect instance.
- Throws:
HibernateException
- No dialect specified and no resolver could make the determination.
-
-