Package org.hibernate.testing.boot
Class DialectFactoryTestingImpl
- java.lang.Object
-
- org.hibernate.testing.boot.DialectFactoryTestingImpl
-
- All Implemented Interfaces:
Serializable
,DialectFactory
,Service
public class DialectFactoryTestingImpl extends Object implements DialectFactory
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DialectFactoryTestingImpl()
DialectFactoryTestingImpl(Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dialect
buildDialect(Map<String,Object> configValues, DialectResolutionInfoSource resolutionInfoSource)
Builds an appropriate Dialect instance.
-
-
-
Constructor Detail
-
DialectFactoryTestingImpl
public DialectFactoryTestingImpl()
-
DialectFactoryTestingImpl
public DialectFactoryTestingImpl(Dialect dialect)
-
-
Method Detail
-
buildDialect
public Dialect buildDialect(Map<String,Object> configValues, DialectResolutionInfoSource resolutionInfoSource)
Description copied from interface:DialectFactory
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.
- Specified by:
buildDialect
in interfaceDialectFactory
- 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.
-
-