/** * Returns true if the {@code typeClass} was not lazily created. */ public static boolean isRegistered(Class<?> typeClass, IdStrategy strategy) { return strategy.isRegistered(typeClass); }
/** * Returns true if the {@code typeClass} was not lazily created. */ public static boolean isRegistered(Class<?> typeClass, IdStrategy strategy) { return strategy.isRegistered(typeClass); }
static boolean pojo(Class<?> clazz, Morph morph, IdStrategy strategy) { if (Modifier.isFinal(clazz.getModifiers())) return true; // check if user mapped an impl to this class if (Modifier.isAbstract(clazz.getModifiers())) return strategy.isRegistered(clazz); // the user can annotate fields with @Morph to have full control if // he knows a certain field will be set with a subtype. // To reverse the behavior (no subtype will be set), annotate with // @Morph(false) // This is an optimization that requires the user's full knowledge of // his dataset. if (morph != null) return !morph.value(); return 0 == (IdStrategy.MORPH_NON_FINAL_POJOS & strategy.flags); }
static boolean pojo(Class<?> clazz, Morph morph, IdStrategy strategy) { if (Modifier.isFinal(clazz.getModifiers())) return true; // check if user mapped an impl to this class if (Modifier.isAbstract(clazz.getModifiers())) return strategy.isRegistered(clazz); // the user can annotate fields with @Morph to have full control if // he knows a certain field will be set with a subtype. // To reverse the behavior (no subtype will be set), annotate with // @Morph(false) // This is an optimization that requires the user's full knowledge of // his dataset. if (morph != null) return !morph.value(); return 0 == (IdStrategy.MORPH_NON_FINAL_POJOS & strategy.flags); }
if (strategy.isRegistered(clazz)) return clazz.isInterface() ? POJO : POLYMORPHIC_POJO;
if (strategy.isRegistered(clazz)) return clazz.isInterface() ? POJO : POLYMORPHIC_POJO;
if (genericType == null || ((Map.class.isAssignableFrom(genericType) || Collection.class.isAssignableFrom(genericType)) && !strategy.isRegistered(genericType)))
if (genericType == null || ((Map.class.isAssignableFrom(genericType) || Collection.class.isAssignableFrom(genericType)) && !strategy.isRegistered(genericType)))
if (genericType == null || ((Map.class.isAssignableFrom(genericType) || Collection.class.isAssignableFrom(genericType)) && !strategy.isRegistered(genericType)))
if (genericType == null || ((Map.class.isAssignableFrom(genericType) || Collection.class.isAssignableFrom(genericType)) && !strategy.isRegistered(genericType)))
if (clazzK == null || ((Map.class.isAssignableFrom(clazzK) || Collection.class.isAssignableFrom(clazzK)) && !strategy.isRegistered(clazzK))) if (clazzV == null || ((Map.class.isAssignableFrom(clazzV) || Collection.class.isAssignableFrom(clazzV)) && !strategy.isRegistered(clazzV)))
if (clazzK == null || ((Map.class.isAssignableFrom(clazzK) || Collection.class.isAssignableFrom(clazzK)) && !strategy.isRegistered(clazzK))) if (clazzV == null || ((Map.class.isAssignableFrom(clazzV) || Collection.class.isAssignableFrom(clazzV)) && !strategy.isRegistered(clazzV)))
strategy.isRegistered(componentType)) if (strategy.isRegistered(clazz))
strategy.isRegistered(componentType)) if (strategy.isRegistered(clazz))