|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.service.jdbc.dialect.internal.DialectResolverSet
public class DialectResolverSet
A DialectResolver
implementation which coordinates resolution by delegating to sub-resolvers.
Constructor Summary | |
---|---|
DialectResolverSet()
|
|
DialectResolverSet(DialectResolver... resolvers)
|
|
DialectResolverSet(List<DialectResolver> resolvers)
|
Method Summary | |
---|---|
void |
addResolver(DialectResolver resolver)
Add a resolver at the end of the underlying resolver list. |
void |
addResolverAtFirst(DialectResolver resolver)
Add a resolver at the beginning of the underlying resolver list. |
Dialect |
resolveDialect(DatabaseMetaData metaData)
Determine the Dialect to use based on the given JDBC DatabaseMetaData . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialectResolverSet()
public DialectResolverSet(List<DialectResolver> resolvers)
public DialectResolverSet(DialectResolver... resolvers)
Method Detail |
---|
public Dialect resolveDialect(DatabaseMetaData metaData) throws JDBCConnectionException
DialectResolver
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.
resolveDialect
in interface DialectResolver
metaData
- The JDBC metadata.
JDBCConnectionException
- Indicates a 'non transient connection problem', which indicates that
we should stop resolution attempts.public void addResolver(DialectResolver resolver)
resolver
- The resolver to add.public void addResolverAtFirst(DialectResolver resolver)
resolver
- The resolver to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |