Top Description Fields Constructors Methods
org.hibernate.dialect.resolver

public Class BasicDialectResolver

extends AbstractDialectResolver
Class Inheritance
Imports
java.sql.DatabaseMetaData, .SQLException, org.hibernate.dialect.Dialect, org.hibernate.HibernateException

Intended as support for custom resolvers.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Class<T>
private final String
private final int
public static final int

Constructor Summary

AccessConstructor and Description
public
BasicDialectResolver(String matchingName, Class<T> dialectClass)

public
BasicDialectResolver(String matchingName, int matchingVersion, Class<T> dialectClass)

Method Summary

Modifier and TypeMethod and Description
protected final Dialect
resolveDialectInternal(DatabaseMetaData
The database metadata
metaData
)

Implements abstract org.hibernate.dialect.resolver.AbstractDialectResolver.resolveDialectInternal.

Perform the actual resolution without caring about handling SQLExceptions.
Inherited from org.hibernate.dialect.resolver.AbstractDialectResolver:
resolveDialect

Field Detail

dialectClassback to summary
private final Class<T> dialectClass
matchingNameback to summary
private final String matchingName
matchingVersionback to summary
private final int matchingVersion
VERSION_INSENSITIVE_VERSIONback to summary
public static final int VERSION_INSENSITIVE_VERSION

Constructor Detail

BasicDialectResolverback to summary
public BasicDialectResolver(String matchingName, Class<T> dialectClass)
BasicDialectResolverback to summary
public BasicDialectResolver(String matchingName, int matchingVersion, Class<T> dialectClass)

Method Detail

resolveDialectInternalback to summary
protected final Dialect resolveDialectInternal(DatabaseMetaData metaData) throws SQLException

Implements abstract org.hibernate.dialect.resolver.AbstractDialectResolver.resolveDialectInternal.

Doc from org.hibernate.dialect.resolver.AbstractDialectResolver.resolveDialectInternal.

Perform the actual resolution without caring about handling SQLExceptions.

Parameters
metaData:DatabaseMetaData

The database metadata

Returns:Dialect

The resolved dialect, or null if we could not resolve.

Exceptions
SQLException:
Indicates problems accessing the metadata.