org.hibernate.dialect.resolver
Class DialectResolverSet

java.lang.Object
  extended by org.hibernate.dialect.resolver.DialectResolverSet
All Implemented Interfaces:
DialectResolver

public class DialectResolverSet
extends Object
implements DialectResolver

A DialectResolver implementation which coordinates resolution by delegating to its registered sub-resolvers. Sub-resolvers may be registered by calling either addResolver(org.hibernate.dialect.resolver.DialectResolver) or addResolverAtFirst(org.hibernate.dialect.resolver.DialectResolver).

Author:
Tomoto Shimizu Washio

Constructor Summary
DialectResolverSet()
           
 
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

DialectResolverSet

public DialectResolverSet()
Method Detail

resolveDialect

public Dialect resolveDialect(DatabaseMetaData metaData)
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.

Specified by:
resolveDialect in interface DialectResolver
Parameters:
metaData - The JDBC metadata.
Returns:
The dialect to use, or null.

addResolver

public void addResolver(DialectResolver resolver)
Add a resolver at the end of the underlying resolver list. The resolver added by this method is at lower priority than any other existing resolvers.

Parameters:
resolver - The resolver to add.

addResolverAtFirst

public void addResolverAtFirst(DialectResolver resolver)
Add a resolver at the beginning of the underlying resolver list. The resolver added by this method is at higher priority than any other existing resolvers.

Parameters:
resolver - The resolver to add.


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.