public class DialectFactory extends Object
This class is an Alfresco-specific version of the Hibernate class with the same name.
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
DialectFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Dialect |
buildDialect(String dialectName)
Returns a dialect instance given the name of the class to use.
|
static Dialect |
buildDialect(String databaseName,
int databaseMajorVersion,
String driverName)
Builds an appropriate Dialect instance.
|
public static Dialect buildDialect(String databaseName, int databaseMajorVersion, String driverName)
databaseName - The name of the database product (obtained from metadata).databaseMajorVersion - The major version of the database product (obtained from metadata).driverName - THe name of the JDBC driverCopyright © 2005–2018 Alfresco Software. All rights reserved.