当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
DialectFactory - JBOSS Portal 2.4 API 英文版文档
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.
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 |
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.