Top Description Methods
org.hibernate.dialect.resolver

public Interface DialectResolver

Known Direct Implementers
org.hibernate.dialect.resolver.DialectResolverSet, org.hibernate.dialect.resolver.AbstractDialectResolver
Imports
java.sql.Connection, .DatabaseMetaData, org.hibernate.dialect.Dialect, org.hibernate.exception.JDBCConnectionException

Contract for determining the Dialect to use based on a JDBC Connection.
Authors
Tomoto Shimizu Washio, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Dialect

Returns:

The dialect to use, or null.
resolveDialect
(DatabaseMetaData
The JDBC metadata.
metaData
)

Determine the Dialect to use based on the given JDBC DatabaseMetaData.

Method Detail

resolveDialectback to summary
public Dialect resolveDialect(DatabaseMetaData metaData) throws JDBCConnectionException

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.

Parameters
metaData:DatabaseMetaData

The JDBC metadata.

Returns:Dialect

The dialect to use, or null.

Exceptions
JDBCConnectionException:
Indicates a 'non transient connection problem', which indicates that we should stop resolution attempts.