Class DialectResolverSet
- java.lang.Object
-
- org.hibernate.engine.jdbc.dialect.internal.DialectResolverSet
-
- All Implemented Interfaces:
Serializable
,DialectResolver
,Service
public class DialectResolverSet extends Object implements DialectResolver
ADialectResolver
implementation which coordinates resolution by delegating to sub-resolvers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DialectResolverSet()
DialectResolverSet(List<DialectResolver> resolvers)
DialectResolverSet(DialectResolver... resolvers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDiscoveredResolvers(Collection<DialectResolver> resolvers)
void
addResolver(DialectResolver... resolvers)
void
addResolverAtFirst(DialectResolver... resolvers)
Dialect
resolveDialect(DialectResolutionInfo info)
Determine theDialect
to use based on the given information.
-
-
-
Constructor Detail
-
DialectResolverSet
public DialectResolverSet()
-
DialectResolverSet
public DialectResolverSet(List<DialectResolver> resolvers)
-
DialectResolverSet
public DialectResolverSet(DialectResolver... resolvers)
-
-
Method Detail
-
resolveDialect
public Dialect resolveDialect(DialectResolutionInfo info)
Description copied from interface:DialectResolver
Determine theDialect
to use based on the given information. Implementations are expected to return theDialect
instance to use, ornull
if they did not locate a match.- Specified by:
resolveDialect
in interfaceDialectResolver
- Parameters:
info
- Access to the information about the database/driver needed to perform the resolution- Returns:
- The dialect to use, or null.
-
addResolver
public void addResolver(DialectResolver... resolvers)
-
addResolverAtFirst
public void addResolverAtFirst(DialectResolver... resolvers)
-
addDiscoveredResolvers
public void addDiscoveredResolvers(Collection<DialectResolver> resolvers)
-
-