当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
DialectFactory - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.migration.helper
Class DialectFactory
java.lang.Object
org.jboss.portal.migration.helper.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: 5449 $
- Author:
- Steve Ebersole
Field Summary |
private static java.util.Map |
MAPPERS
|
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 |
MAPPERS
private static final java.util.Map MAPPERS
DialectFactory
private DialectFactory()
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.