/** * Used by proxy types to check if the given owners and field names * are equivalent. */ public static boolean isOwner(Proxy proxy, OpenJPAStateManager sm, int field) { return proxy.getOwner() == sm && proxy.getOwnerField() == field; }
/** * If the current field is a usable proxy, return it; else return null. */ private Proxy checkProxy() { if (!(objval instanceof Proxy)) return null; Proxy proxy = (Proxy) objval; if (proxy.getOwner() == null || Proxies.isOwner(proxy, _sm, field)) return proxy; return null; }
/** * Used by proxy types to check if the given owners and field names * are equivalent. */ public static boolean isOwner(Proxy proxy, OpenJPAStateManager sm, int field) { return proxy.getOwner() == sm && proxy.getOwnerField() == field; }
/** * Used by proxy types to check if the given owners and field names * are equivalent. */ public static boolean isOwner(Proxy proxy, OpenJPAStateManager sm, int field) { return proxy.getOwner() == sm && proxy.getOwnerField() == field; }
/** * If the current field is a usable proxy and it should be a proxy, return it; else return null. * * This method will skim out Calendar instances that were proxied before we knew if they need to be proxied. */ private Proxy checkProxy(FieldMetaData fmd) { if (!(objval instanceof Proxy)) return null; Proxy proxy = (Proxy) objval; if (proxy.getOwner() == null || Proxies.isOwner(proxy, _sm, field)) { if (fmd.getProxyType().isAssignableFrom(proxy.getClass()) || (fmd.isLRS() && (objval instanceof LRSProxy))) { return proxy; } } return null; }
/** * Used by proxy types to check if the given owners and field names * are equivalent. */ public static boolean isOwner(Proxy proxy, OpenJPAStateManager sm, int field) { return proxy.getOwner() == sm && proxy.getOwnerField() == field; }
/** * If the current field is a usable proxy and it should be a proxy, return it; else return null. * * This method will skim out Calendar instances that were proxied before we knew if they need to be proxied. */ private Proxy checkProxy(FieldMetaData fmd) { if (!(objval instanceof Proxy)) return null; Proxy proxy = (Proxy) objval; if (proxy.getOwner() == null || Proxies.isOwner(proxy, _sm, field)) { if (fmd.getProxyType().isAssignableFrom(proxy.getClass()) || (fmd.isLRS() && (objval instanceof LRSProxy))) { return proxy; } } return null; }
/** * Used by proxy types to check if the given owners and field names * are equivalent. */ public static boolean isOwner(Proxy proxy, OpenJPAStateManager sm, int field) { return proxy.getOwner() == sm && proxy.getOwnerField() == field; }
/** * If the current field is a usable proxy and it should be a proxy, return it; else return null. * * This method will skim out Calendar instances that were proxied before we knew if they need to be proxied. */ private Proxy checkProxy(FieldMetaData fmd) { if (!(objval instanceof Proxy)) return null; Proxy proxy = (Proxy) objval; if (proxy.getOwner() == null || Proxies.isOwner(proxy, _sm, field)) { if (fmd.getProxyType().isAssignableFrom(proxy.getClass()) || (fmd.isLRS() && (objval instanceof LRSProxy))) { return proxy; } } return null; }