public abstract class

AbstractDialectResolver

extends Object
implements DialectResolver
java.lang.Object
   ↳ org.hibernate.dialect.resolver.AbstractDialectResolver
Known Direct Subclasses

Class Overview

A templated resolver impl which delegates to the resolveDialectInternal(DatabaseMetaData) method and handles any thrown SQLExceptions.

Summary

Public Constructors
AbstractDialectResolver()
Public Methods
final Dialect resolveDialect(DatabaseMetaData metaData)
Determine the Dialect to use based on the given JDBC DatabaseMetaData.

Here we template the resolution, delegating to resolveDialectInternal(DatabaseMetaData) and handling SQLExceptions properly.

Protected Methods
abstract Dialect resolveDialectInternal(DatabaseMetaData metaData)
Perform the actual resolution without caring about handling SQLExceptions.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.dialect.resolver.DialectResolver

Public Constructors

public AbstractDialectResolver ()

Public Methods

public final Dialect resolveDialect (DatabaseMetaData metaData)

Determine the Dialect to use based on the given JDBC DatabaseMetaData. Implementations are expected to return the Dialect instance to use, or null if the DatabaseMetaData does not match the criteria handled by this impl.

Here we template the resolution, delegating to resolveDialectInternal(DatabaseMetaData) and handling SQLExceptions properly.

Parameters
metaData The JDBC metadata.
Returns
  • The dialect to use, or null.

Protected Methods

protected abstract Dialect resolveDialectInternal (DatabaseMetaData metaData)

Perform the actual resolution without caring about handling SQLExceptions.

Parameters
metaData The database metadata
Returns
  • The resolved dialect, or null if we could not resolve.
Throws
SQLException Indicates problems accessing the metadata.