/** * Update the list of implementations of base classes and interfaces. */ private void updateImpls(Class<?> cls, Class<?> leastDerived, Class<?> check) { // allow users to query on common non-pc superclasses Class<?> sup = check.getSuperclass(); if (leastDerived == cls && sup != null && sup != Object.class) { addToCollection(_impls, sup, cls, false); updateImpls(cls, leastDerived, sup); } // allow users to query on any implemented interfaces unless defaults // say the user must implement persistent interfaces explicitly in meta if (!_factory.getDefaults().isDeclaredInterfacePersistent()) return; Class<?>[] ints = check.getInterfaces(); for (int i = 0; i < ints.length; i++) { // don't map java-standard interfaces if (ints[i].getName().startsWith("java.")) continue; // only map least-derived interface implementors if (leastDerived == cls || isLeastDerivedImpl(ints[i], cls)) { addToCollection(_impls, ints[i], cls, false); updateImpls(cls, leastDerived, ints[i]); } } }
/** * Update the list of implementations of base classes and interfaces. */ private void updateImpls(Class<?> cls, Class<?> leastDerived, Class<?> check) { // allow users to query on common non-pc superclasses Class<?> sup = check.getSuperclass(); if (leastDerived == cls && sup != null && sup != Object.class) { addToCollection(_impls, sup, cls, false); updateImpls(cls, leastDerived, sup); } // allow users to query on any implemented interfaces unless defaults // say the user must implement persistent interfaces explicitly in meta if (!_factory.getDefaults().isDeclaredInterfacePersistent()) return; Class<?>[] ints = check.getInterfaces(); for (int i = 0; i < ints.length; i++) { // don't map java-standard interfaces if (ints[i].getName().startsWith("java.")) continue; // only map least-derived interface implementors if (leastDerived == cls || isLeastDerivedImpl(ints[i], cls)) { addToCollection(_impls, ints[i], cls, false); updateImpls(cls, leastDerived, ints[i]); } } }
/** * Update the list of implementations of base classes and interfaces. */ private void updateImpls(Class<?> cls, Class<?> leastDerived, Class<?> check) { // allow users to query on common non-pc superclasses Class<?> sup = check.getSuperclass(); if (leastDerived == cls && sup != null && sup != Object.class) { addToCollection(_impls, sup, cls, false); updateImpls(cls, leastDerived, sup); } // allow users to query on any implemented interfaces unless defaults // say the user must implement persistent interfaces explicitly in meta if (!_factory.getDefaults().isDeclaredInterfacePersistent()) return; Class<?>[] ints = check.getInterfaces(); for (int i = 0; i < ints.length; i++) { // don't map java-standard interfaces if (ints[i].getName().startsWith("java.")) continue; // only map least-derived interface implementors if (leastDerived == cls || isLeastDerivedImpl(ints[i], cls)) { addToCollection(_impls, ints[i], cls, false); updateImpls(cls, leastDerived, ints[i]); } } }
/** * Update the list of implementations of base classes and interfaces. */ private void updateImpls(Class<?> cls, Class<?> leastDerived, Class<?> check) { // allow users to query on common non-pc superclasses Class<?> sup = check.getSuperclass(); if (leastDerived == cls && sup != null && sup != Object.class) { addToCollection(_impls, sup, cls, false); updateImpls(cls, leastDerived, sup); } // allow users to query on any implemented interfaces unless defaults // say the user must implement persistent interfaces explicitly in meta if (!_factory.getDefaults().isDeclaredInterfacePersistent()) return; Class<?>[] ints = check.getInterfaces(); for (int i = 0; i < ints.length; i++) { // don't map java-standard interfaces if (ints[i].getName().startsWith("java.")) continue; // only map least-derived interface implementors if (leastDerived == cls || isLeastDerivedImpl(ints[i], cls)) { addToCollection(_impls, ints[i], cls, false); updateImpls(cls, leastDerived, ints[i]); } } }
/** * Update the list of implementations of base classes and interfaces. */ private void updateImpls(Class cls, Class leastDerived, Class check) { // allow users to query on common non-pc superclasses Class sup = check.getSuperclass(); if (leastDerived == cls && sup != null && sup != Object.class) { addToCollection(_impls, sup, cls, false); updateImpls(cls, leastDerived, sup); } // allow users to query on any implemented interfaces unless defaults // say the user must implement persistent interfaces explicitly in meta if (!_factory.getDefaults().isDeclaredInterfacePersistent()) return; Class[] ints = check.getInterfaces(); for (int i = 0; i < ints.length; i++) { // don't map java-standard interfaces if (ints[i].getName().startsWith("java.")) continue; // only map least-derived interface implementors if (leastDerived == cls || isLeastDerivedImpl(ints[i], cls)) { addToCollection(_impls, ints[i], cls, false); updateImpls(cls, leastDerived, ints[i]); } } }