/** * Return true if the given class is the least-derived persistent * implementor of the given interface, false otherwise. */ private boolean isLeastDerivedImpl(Class inter, Class cls) { Class parent = PCRegistry.getPersistentSuperclass(cls); while (parent != null) { if (Arrays.asList(parent.getInterfaces()).contains(inter)) return false; parent = PCRegistry.getPersistentSuperclass(parent); } return true; }
/** * Return true if the given class is the least-derived persistent implementor of the given * interface, false otherwise. */ private boolean isLeastDerivedImpl(Class<?> inter, Class<?> cls) { Class<?> parent = PCRegistry.getPersistentSuperclass(cls); while (parent != null) { if (Arrays.asList(parent.getInterfaces()).contains(inter)) return false; parent = PCRegistry.getPersistentSuperclass(parent); } return true; }
/** * Return true if the given class is the least-derived persistent implementor of the given * interface, false otherwise. */ private boolean isLeastDerivedImpl(Class<?> inter, Class<?> cls) { Class<?> parent = PCRegistry.getPersistentSuperclass(cls); while (parent != null) { if (Arrays.asList(parent.getInterfaces()).contains(inter)) return false; parent = PCRegistry.getPersistentSuperclass(parent); } return true; }
/** * Return true if the given class is the least-derived persistent implementor of the given * interface, false otherwise. */ private boolean isLeastDerivedImpl(Class<?> inter, Class<?> cls) { Class<?> parent = PCRegistry.getPersistentSuperclass(cls); while (parent != null) { if (Arrays.asList(parent.getInterfaces()).contains(inter)) return false; parent = PCRegistry.getPersistentSuperclass(parent); } return true; }
/** * Return true if the given class is the least-derived persistent implementor of the given * interface, false otherwise. */ private boolean isLeastDerivedImpl(Class<?> inter, Class<?> cls) { Class<?> parent = PCRegistry.getPersistentSuperclass(cls); while (parent != null) { if (Arrays.asList(parent.getInterfaces()).contains(inter)) return false; parent = PCRegistry.getPersistentSuperclass(parent); } return true; }
/** * Whether the given set of least-derived class names intersects with * the given set of changed classes. */ private static boolean intersects(Collection<String> names, Collection<Class<?>> changed) { Class<?> sup; for (Class<?> cls : changed) { while ((sup = PCRegistry.getPersistentSuperclass(cls)) != null) cls = sup; if (names.contains(cls.getName())) return true; } return false; }
/** * Whether the given set of least-derived class names intersects with * the given set of changed classes. */ private static boolean intersects(Collection<String> names, Collection<Class<?>> changed) { Class<?> sup; for (Class<?> cls : changed) { while ((sup = PCRegistry.getPersistentSuperclass(cls)) != null) cls = sup; if (names.contains(cls.getName())) return true; } return false; }
/** * Whether the given set of least-derived class names intersects with * the given set of changed classes. */ private static boolean intersects(Collection<String> names, Collection<Class<?>> changed) { Class<?> sup; for (Class<?> cls : changed) { while ((sup = PCRegistry.getPersistentSuperclass(cls)) != null) cls = sup; if (names.contains(cls.getName())) return true; } return false; }
/** * Whether the given set of least-derived class names intersects with * the given set of changed classes. */ private static boolean intersects(Collection<String> names, Collection<Class<?>> changed) { Class<?> sup; for (Class<?> cls : changed) { while ((sup = PCRegistry.getPersistentSuperclass(cls)) != null) cls = sup; if (names.contains(cls.getName())) return true; } return false; }
/** * Whether the given set of least-derived class names intersects with * the given set of changed classes. */ private static boolean intersects(Collection names, Collection changed) { Class cls; Class sup; for (Iterator iter = changed.iterator(); iter.hasNext();) { cls = (Class) iter.next(); while ((sup = PCRegistry.getPersistentSuperclass(cls)) != null) cls = sup; if (names.contains(cls.getName())) return true; } return false; }
ClassMetaData meta; for (Class anc = cls; (anc = PCRegistry.getPersistentSuperclass(anc)) != null;) { addToCollection(_subs, anc, cls, true); meta = (ClassMetaData) _metas.get(anc); while (PCRegistry.getPersistentSuperclass(sup) != null) sup = PCRegistry.getPersistentSuperclass(sup);
synchronized (this) { ClassMetaData meta; for (Class<?> anc = cls; (anc = PCRegistry.getPersistentSuperclass(anc)) != null;) { addToCollection(_subs, anc, cls, true); meta = (ClassMetaData) _metas.get(anc); while (PCRegistry.getPersistentSuperclass(sup) != null) sup = PCRegistry.getPersistentSuperclass(sup);
synchronized (this) { ClassMetaData meta; for (Class<?> anc = cls; (anc = PCRegistry.getPersistentSuperclass(anc)) != null;) { addToCollection(_subs, anc, cls, true); meta = (ClassMetaData) _metas.get(anc); while (PCRegistry.getPersistentSuperclass(sup) != null) sup = PCRegistry.getPersistentSuperclass(sup);
synchronized (this) { ClassMetaData meta; for (Class<?> anc = cls; (anc = PCRegistry.getPersistentSuperclass(anc)) != null;) { addToCollection(_subs, anc, cls, true); meta = (ClassMetaData) _metas.get(anc); while (PCRegistry.getPersistentSuperclass(sup) != null) sup = PCRegistry.getPersistentSuperclass(sup);
synchronized (this) { ClassMetaData meta; for (Class<?> anc = cls; (anc = PCRegistry.getPersistentSuperclass(anc)) != null;) { addToCollection(_subs, anc, cls, true); meta = (ClassMetaData) _metas.get(anc); while (PCRegistry.getPersistentSuperclass(sup) != null) sup = PCRegistry.getPersistentSuperclass(sup);