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