OPENJPA-2534 cleanup DBDictionary alias handling

use class.getName() to prevent typos - no functional change yet.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1650957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Struberg 2015-01-11 19:52:59 +00:00
parent da75d5b27a
commit 69f3a6e1c9
1 changed files with 19 additions and 19 deletions

View File

@ -201,25 +201,25 @@ public class JDBCConfigurationImpl
dbdictionaryPlugin = addPlugin("jdbc.DBDictionary", true); dbdictionaryPlugin = addPlugin("jdbc.DBDictionary", true);
aliases = new String[]{ aliases = new String[]{
"access", "org.apache.openjpa.jdbc.sql.AccessDictionary", "access", org.apache.openjpa.jdbc.sql.AccessDictionary.class.getName(),
"db2", "org.apache.openjpa.jdbc.sql.DB2Dictionary", "db2", org.apache.openjpa.jdbc.sql.DB2Dictionary.class.getName(),
"derby", "org.apache.openjpa.jdbc.sql.DerbyDictionary", "derby", org.apache.openjpa.jdbc.sql.DerbyDictionary.class.getName(),
"empress", "org.apache.openjpa.jdbc.sql.EmpressDictionary", "empress", org.apache.openjpa.jdbc.sql.EmpressDictionary.class.getName(),
"foxpro", "org.apache.openjpa.jdbc.sql.FoxProDictionary", "foxpro", org.apache.openjpa.jdbc.sql.FoxProDictionary.class.getName(),
"h2", "org.apache.openjpa.jdbc.sql.H2Dictionary", "h2", org.apache.openjpa.jdbc.sql.H2Dictionary.class.getName(),
"hsql", "org.apache.openjpa.jdbc.sql.HSQLDictionary", "hsql", org.apache.openjpa.jdbc.sql.HSQLDictionary.class.getName(),
"informix", "org.apache.openjpa.jdbc.sql.InformixDictionary", "informix", org.apache.openjpa.jdbc.sql.InformixDictionary.class.getName(),
"ingres", "org.apache.openjpa.jdbc.sql.IngresDictionary", "ingres", org.apache.openjpa.jdbc.sql.IngresDictionary.class.getName(),
"jdatastore", "org.apache.openjpa.jdbc.sql.JDataStoreDictionary", "jdatastore", org.apache.openjpa.jdbc.sql.JDataStoreDictionary.class.getName(),
"mariadb", "org.apache.openjpa.jdbc.sql.MariaDBDictionary", "mariadb", org.apache.openjpa.jdbc.sql.MariaDBDictionary.class.getName(),
"mysql", "org.apache.openjpa.jdbc.sql.MySQLDictionary", "mysql", org.apache.openjpa.jdbc.sql.MySQLDictionary.class.getName(),
"oracle", "org.apache.openjpa.jdbc.sql.OracleDictionary", "oracle", org.apache.openjpa.jdbc.sql.OracleDictionary.class.getName(),
"pointbase", "org.apache.openjpa.jdbc.sql.PointbaseDictionary", "pointbase", org.apache.openjpa.jdbc.sql.PointbaseDictionary.class.getName(),
"postgres", "org.apache.openjpa.jdbc.sql.PostgresDictionary", "postgres", org.apache.openjpa.jdbc.sql.PostgresDictionary.class.getName(),
"soliddb", "org.apache.openjpa.jdbc.sql.SolidDBDictionary", "soliddb", org.apache.openjpa.jdbc.sql.SolidDBDictionary.class.getName(),
"sqlserver", "org.apache.openjpa.jdbc.sql.SQLServerDictionary", "sqlserver", org.apache.openjpa.jdbc.sql.SQLServerDictionary.class.getName(),
"sybase", "org.apache.openjpa.jdbc.sql.SybaseDictionary", "sybase", org.apache.openjpa.jdbc.sql.SybaseDictionary.class.getName(),
"maxdb", MaxDBDictionary.class.getCanonicalName(), "maxdb", MaxDBDictionary.class.getName(),
}; };
dbdictionaryPlugin.setAliases(aliases); dbdictionaryPlugin.setAliases(aliases);
dbdictionaryPlugin.setInstantiatingGetter("getDBDictionaryInstance"); dbdictionaryPlugin.setInstantiatingGetter("getDBDictionaryInstance");