Package org.hibernate.dialect.resolver
Class AbstractDialectResolver
java.lang.Object
org.hibernate.dialect.resolver.AbstractDialectResolver
- All Implemented Interfaces:
DialectResolver
- Direct Known Subclasses:
BasicDialectResolver,StandardDialectResolver
A templated resolver impl which delegates to the
resolveDialectInternal(java.sql.DatabaseMetaData) method
and handles any thrown SQLExceptions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DialectresolveDialect(DatabaseMetaData metaData) Determine theDialectto use based on the given JDBCDatabaseMetaData.protected abstract DialectresolveDialectInternal(DatabaseMetaData metaData) Perform the actual resolution without caring about handlingSQLExceptions.
-
Constructor Details
-
AbstractDialectResolver
public AbstractDialectResolver()
-
-
Method Details
-
resolveDialect
Determine theDialectto use based on the given JDBCDatabaseMetaData. Implementations are expected to return theDialectinstance to use, or null if theDatabaseMetaDatadoes not match the criteria handled by this impl. Here we template the resolution, delegating toresolveDialectInternal(java.sql.DatabaseMetaData)and handlingSQLExceptions properly.- Specified by:
resolveDialectin interfaceDialectResolver- Parameters:
metaData- The JDBC metadata.- Returns:
- The dialect to use, or null.
-
resolveDialectInternal
Perform the actual resolution without caring about handlingSQLExceptions.- Parameters:
metaData- The database metadata- Returns:
- The resolved dialect, or null if we could not resolve.
- Throws:
SQLException- Indicates problems accessing the metadata.
-