org.hibernate.dialect.resolver
Interface DialectResolver
- All Known Implementing Classes:
- AbstractDialectResolver, BasicDialectResolver, DialectResolverSet, StandardDialectResolver
public interface DialectResolver
Contract for determining the Dialect
to use based on a JDBC Connection
.
- Author:
- Tomoto Shimizu Washio, Steve Ebersole
Method Summary |
Dialect |
resolveDialect(java.sql.DatabaseMetaData metaData)
Determine the Dialect to use based on the given JDBC DatabaseMetaData . |
resolveDialect
Dialect resolveDialect(java.sql.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
- The JDBC metadata.
- Returns:
- The dialect to use, or null.
- Throws:
JDBCConnectionException
- Indicates a 'non transient connection problem', which indicates that
we should stop resolution attempts.
Copyright © 2013. All Rights Reserved.