dbType = getDBType(em);
DBDictionary dict = getDBDictionary();
Class<?>[] expDB2ExClass = ExpectingOptimisticLockExClass;
if (DB2Dictionary.class.isAssignableFrom(dict.getClass())) {
DB2Dictionary db2dict = (DB2Dictionary) dict;
if ((db2dict.getDB2MajorVersion() * 100 + db2dict.getDB2MinorVersion()) > 905)
expDB2ExClass = null;
}
expWriteLockExClasses = new HashMap<DBType,Class<?>[]>();
expWriteLockExClasses.put(DBType.db2, expDB2ExClass);
expWriteLockExClasses.put(DBType.derby, ExpectingOptimisticLockExClass);