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

public Class BasicDialectResolver

extends Object
implements DialectResolver
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.dialect.spi.DialectResolver, org.hibernate.service.Service, java.io.Serializable
Imports
org.hibernate.HibernateException, org.hibernate.dialect.Dialect

Intended as support for custom resolvers which match a single db name (with optional version info).
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Class<?>
private final int
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
BasicDialectResolver(String
The name of the driver to match on
nameToMatch
,
Class<T>
The Dialect class to use on match
dialectClass
)

Constructs a BasicDialectResolver

public
BasicDialectResolver(String
The name of the driver to match on
nameToMatch
,
int
The version of the driver to match on
majorVersionToMatch
,
Class<T>
The Dialect class to use on match
dialectClass
)

Constructs a BasicDialectResolver

public
BasicDialectResolver(String
The name of the driver to match on
nameToMatch
,
int
The version of the driver to match on
majorVersionToMatch
,
int minorVersionToMatch, Class<T>
The Dialect class to use on match
dialectClass
)

Constructs a BasicDialectResolver

Method Summary

Modifier and TypeMethod and Description
public final 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

dialectClassback to summary
private final Class<?> dialectClass
majorVersionToMatchback to summary
private final int majorVersionToMatch
minorVersionToMatchback to summary
private final int minorVersionToMatch
nameToMatchback to summary
private final String nameToMatch

Constructor Detail

BasicDialectResolverback to summary
public BasicDialectResolver(String nameToMatch, Class<T> dialectClass)

Constructs a BasicDialectResolver

Parameters
nameToMatch:String

The name of the driver to match on

dialectClass:Class<T>

The Dialect class to use on match

BasicDialectResolverback to summary
public BasicDialectResolver(String nameToMatch, int majorVersionToMatch, Class<T> dialectClass)

Constructs a BasicDialectResolver

Parameters
nameToMatch:String

The name of the driver to match on

majorVersionToMatch:int

The version of the driver to match on

dialectClass:Class<T>

The Dialect class to use on match

BasicDialectResolverback to summary
public BasicDialectResolver(String nameToMatch, int majorVersionToMatch, int minorVersionToMatch, Class<T> dialectClass)

Constructs a BasicDialectResolver

Parameters
nameToMatch:String

The name of the driver to match on

majorVersionToMatch:int

The version of the driver to match on

dialectClass:Class<T>

The Dialect class to use on match

Method Detail

resolveDialectback to summary
public final 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 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