|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.dialect.resolver.AbstractDialectResolver
public abstract class AbstractDialectResolver
A templated resolver impl which delegates to the resolveDialectInternal(java.sql.DatabaseMetaData)
method
and handles any thrown SQLException
s.
Constructor Summary | |
---|---|
AbstractDialectResolver()
|
Method Summary | |
---|---|
Dialect |
resolveDialect(java.sql.DatabaseMetaData metaData)
Determine the Dialect to use based on the given JDBC DatabaseMetaData . |
protected abstract Dialect |
resolveDialectInternal(java.sql.DatabaseMetaData metaData)
Perform the actual resolution without caring about handling SQLException s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDialectResolver()
Method Detail |
---|
public final Dialect resolveDialect(java.sql.DatabaseMetaData metaData)
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(java.sql.DatabaseMetaData)
and handling
SQLException
s properly.
resolveDialect
in interface DialectResolver
metaData
- The JDBC metadata.
protected abstract Dialect resolveDialectInternal(java.sql.DatabaseMetaData metaData) throws java.sql.SQLException
SQLException
s.
metaData
- The database metadata
java.sql.SQLException
- Indicates problems accessing the metadata.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |