public class DialectResolverSet extends Object implements DialectResolver
DialectResolver
implementation which coordinates resolution by delegating to sub-resolvers.Constructor and Description |
---|
DialectResolverSet() |
DialectResolverSet(DialectResolver... resolvers) |
DialectResolverSet(List<DialectResolver> resolvers) |
Modifier and Type | Method and Description |
---|---|
void |
addResolver(DialectResolver resolver)
Add a resolver at the end of the underlying resolver list.
|
void |
addResolverAtFirst(DialectResolver resolver)
Add a resolver at the beginning of the underlying resolver list.
|
Dialect |
resolveDialect(DialectResolutionInfo info)
Determine the
Dialect to use based on the given information. |
public DialectResolverSet()
public DialectResolverSet(List<DialectResolver> resolvers)
public DialectResolverSet(DialectResolver... resolvers)
public Dialect resolveDialect(DialectResolutionInfo info)
DialectResolver
Dialect
to use based on the given information. Implementations are expected to return
the Dialect
instance to use, or null
if the they did not locate a match.resolveDialect
in interface DialectResolver
info
- Access to the information about the database/driver needed to perform the resolutionpublic void addResolver(DialectResolver resolver)
resolver
- The resolver to add.public void addResolverAtFirst(DialectResolver resolver)
resolver
- The resolver to add.Copyright © 2017 JBoss by Red Hat. All rights reserved.