Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.portal.jems.hibernate
Class DialectFactory

    java.lang.Object
      org.jboss.portal.jems.hibernate.DialectFactory

    public class DialectFactory

extends java.lang.Object

Ripped off hibernate 3.1 that is not in 3.0. A factory for generating Dialect instances.

Version:
  $Revision: 11472 $
Author:
  Steve Ebersole

Nested Class Summary
`static interface` | `DialectFactory.DatabaseDialectMapper` For a given database product name, instances of DatabaseDialectMapper know which Dialect to use for different versions.
`static class` | `DialectFactory.VersionInsensitiveMapper` A simple DatabaseDialectMapper for dialects which are independent of the underlying database product version.

Method Summary
`static java.lang.String` | `determineDialect(java.lang.String databaseName, int databaseMajorVersion)` Determine the appropriate Dialect to use given the database product name and major version.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### determineDialect

    public static java.lang.String determineDialect(java.lang.String databaseName,
                                                    int databaseMajorVersion)

  Determine the appropriate Dialect to use given the database product name and major version.

  Parameters:
    `databaseName` - The name of the database product (obtained from metadata).
    `databaseMajorVersion` - The major version of the database product (obtained from metadata).
  Returns:
    An appropriate dialect instance.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD