public class DialectFactoryImpl extends Object implements DialectFactory, ServiceRegistryAwareService
DialectFactory
service.Constructor and Description |
---|
DialectFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Dialect |
buildDialect(Map configValues,
DialectResolutionInfoSource resolutionInfoSource)
Builds an appropriate Dialect instance.
|
void |
injectServices(ServiceRegistryImplementor serviceRegistry)
Callback to inject the registry.
|
void |
setDialectResolver(DialectResolver dialectResolver)
Intended only for use from testing.
|
public void injectServices(ServiceRegistryImplementor serviceRegistry)
ServiceRegistryAwareService
injectServices
in interface ServiceRegistryAwareService
serviceRegistry
- The registrypublic void setDialectResolver(DialectResolver dialectResolver)
dialectResolver
- The DialectResolver to usepublic Dialect buildDialect(Map configValues, DialectResolutionInfoSource resolutionInfoSource) throws HibernateException
DialectFactory
buildDialect
in interface DialectFactory
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-2015 Red Hat, Inc. All Rights Reserved.