protected Class getClass(Object val, JDBCStore store) throws ClassNotFoundException { if (_vals == null) { ClassMapping cls = disc.getClassMapping(); ClassMapping[] subs = cls.getJoinablePCSubclassMappings(); Map map = new HashMap((int) ((subs.length + 1) * 1.33 + 1)); mapDiscriminatorValue(cls, map); for (int i = 0; i < subs.length; i++) mapDiscriminatorValue(subs[i], map); _vals = map; } String str = (val == null) ? null : val.toString(); Class cls = (Class) _vals.get(str); if (cls != null) return cls; throw new ClassNotFoundException(_loc.get("unknown-discrim-value", new Object[]{ str, disc.getClassMapping().getDescribedType(). getName(), new TreeSet(_vals.keySet()) }).getMessage()); }
protected Class getClass(Object val, JDBCStore store) throws ClassNotFoundException { if (_vals == null) { ClassMapping cls = disc.getClassMapping(); ClassMapping[] subs = cls.getJoinablePCSubclassMappings(); Map map = new HashMap((int) ((subs.length + 1) * 1.33 + 1)); mapDiscriminatorValue(cls, map); for (int i = 0; i < subs.length; i++) mapDiscriminatorValue(subs[i], map); _vals = map; } String str = (val == null) ? null : val.toString(); Class cls = (Class) _vals.get(str); if (cls != null) return cls; throw new ClassNotFoundException(_loc.get("unknown-discrim-value", new Object[]{ str, disc.getClassMapping().getDescribedType(). getName(), new TreeSet(_vals.keySet()) }).getMessage()); }
protected Class getClass(Object val, JDBCStore store) throws ClassNotFoundException { if (_vals == null) { ClassMapping cls = disc.getClassMapping(); ClassMapping[] subs = cls.getJoinablePCSubclassMappings(); Map map = new HashMap((int) ((subs.length + 1) * 1.33 + 1)); mapDiscriminatorValue(cls, map); for (int i = 0; i < subs.length; i++) mapDiscriminatorValue(subs[i], map); _vals = map; } String str = (val == null) ? null : val.toString(); Class cls = (Class) _vals.get(str); if (cls != null) return cls; throw new ClassNotFoundException(_loc.get("unknown-discrim-value", new Object[]{ str, disc.getClassMapping().getDescribedType(). getName(), new TreeSet(_vals.keySet()) }).getMessage()); }
protected Class getClass(Object val, JDBCStore store) throws ClassNotFoundException { if (_vals == null) { ClassMapping cls = disc.getClassMapping(); ClassMapping[] subs = cls.getJoinablePCSubclassMappings(); Map map = new HashMap((int) ((subs.length + 1) * 1.33 + 1)); mapDiscriminatorValue(cls, map); for (int i = 0; i < subs.length; i++) mapDiscriminatorValue(subs[i], map); _vals = map; } String str = (val == null) ? null : val.toString(); Class cls = (Class) _vals.get(str); if (cls != null) return cls; throw new ClassNotFoundException(_loc.get("unknown-discrim-value", new Object[]{ str, disc.getClassMapping().getDescribedType(). getName(), new TreeSet(_vals.keySet()) }).getMessage()); }
protected Class getClass(Object val, JDBCStore store) throws ClassNotFoundException { if (_vals == null) { ClassMapping cls = disc.getClassMapping(); ClassMapping[] subs = cls.getJoinablePCSubclassMappings(); Map map = new HashMap((int) ((subs.length + 1) * 1.33 + 1)); mapDiscriminatorValue(cls, map); for (int i = 0; i < subs.length; i++) mapDiscriminatorValue(subs[i], map); _vals = map; } String str = (val == null) ? null : val.toString(); Class cls = (Class) _vals.get(str); if (cls != null) return cls; throw new ClassNotFoundException(_loc.get("unknown-discrim-value", new Object[]{ str, disc.getClassMapping().getDescribedType(). getName(), new TreeSet(_vals.keySet()) }).getMessage()); }