Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.dialect.internal

public Class DialectResolverSet

extends Object
implements DialectResolver
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.dialect.spi.DialectResolver, org.hibernate.service.Service, java.io.Serializable
Imports
java.util.ArrayList, .Arrays, .List, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo, .DialectResolver, org.hibernate.exception.JDBCConnectionException, org.hibernate.internal.CoreLogging, .CoreMessageLogger

A DialectResolver implementation which coordinates resolution by delegating to sub-resolvers.
Authors
Tomoto Shimizu Washio, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final CoreMessageLogger
private List<DialectResolver>

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public void
addResolver(DialectResolver
The resolver to add.
resolver
)

Add a resolver at the end of the underlying resolver list.

public void
addResolverAtFirst(DialectResolver
The resolver to add.
resolver
)

Add a resolver at the beginning of the underlying resolver list.

public Dialect
resolveDialect(DialectResolutionInfo
Access to the information about the database/driver needed to perform the resolution
info
)

Implements org.hibernate.engine.jdbc.dialect.spi.DialectResolver.resolveDialect.

Determine the Dialect to use based on the given information.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final CoreMessageLogger LOG
resolversback to summary
private List<DialectResolver> resolvers

Constructor Detail

DialectResolverSetback to summary
public DialectResolverSet()
DialectResolverSetback to summary
public DialectResolverSet(List<DialectResolver> resolvers)
DialectResolverSetback to summary
public DialectResolverSet(DialectResolver... resolvers)

Method Detail

addResolverback to summary
public void addResolver(DialectResolver resolver)

Add a resolver at the end of the underlying resolver list. The resolver added by this method is at lower priority than any other existing resolvers.

Parameters
resolver:DialectResolver

The resolver to add.

addResolverAtFirstback to summary
public void addResolverAtFirst(DialectResolver resolver)

Add a resolver at the beginning of the underlying resolver list. The resolver added by this method is at higher priority than any other existing resolvers.

Parameters
resolver:DialectResolver

The resolver to add.

resolveDialectback to summary
public Dialect resolveDialect(DialectResolutionInfo info)

Implements org.hibernate.engine.jdbc.dialect.spi.DialectResolver.resolveDialect.

Doc from org.hibernate.engine.jdbc.dialect.spi.DialectResolver.resolveDialect.

Determine the 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.

Parameters
info:DialectResolutionInfo

Access to the information about the database/driver needed to perform the resolution

Returns:Dialect

The dialect to use, or null.

Annotations
@Override