Top Description Methods
org.hibernate.engine.jdbc.dialect.spi

public Interface DialectFactory

extends Service
Known Direct Implementers
org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl
Imports
java.util.Map, org.hibernate.HibernateException, org.hibernate.dialect.Dialect, org.hibernate.service.Service

A factory for generating Dialect instances.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Dialect

Returns:

The appropriate dialect instance.
buildDialect
(Map<K, V>
The configuration properties.
configValues
,
DialectResolutionInfoSource
Access to DialectResolutionInfo used to resolve the Dialect to use if not explicitly named
resolutionInfoSource
)

Builds an appropriate Dialect instance.

Method Detail

buildDialectback to summary
public Dialect buildDialect(Map<K, V> 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:Map<K, V>

The configuration properties.

resolutionInfoSource:DialectResolutionInfoSource

Access to DialectResolutionInfo used to resolve the Dialect to use if not explicitly named

Returns:Dialect

The appropriate dialect instance.

Exceptions
HibernateException:
No dialect specified and no resolver could make the determination.