/** * Call before invoking {@link Collection#remove} on super. */ public static void beforeRemove(ProxyCollection coll, Object o) { // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#remove} on super. */ public static void beforeRemove(ProxyCollection coll, Object o) { // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#remove} on super. */ public static void beforeRemove(ProxyCollection coll, Object o) { // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#remove} on super. */ public static void beforeRemove(ProxyCollection coll, Object o) { // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call before invoking {@link Collection#add(Object)} on super. */ public static void beforeAdd(ProxyCollection coll, Object value) { assertAllowedType(value, coll.getElementType()); // Must only dirty the collection outside of a delayed load if (!isDirectAccess(coll)) { dirty(coll, false); } }
/** * Call after invoking {@link Collection#add(Object)} on super. * * @param added whether the object was added * @return <code>added</code>, for convenience */ public static boolean afterAdd(ProxyCollection coll, Object value, boolean added) { if (!isDirectAccess(coll) && added && coll.getChangeTracker() != null) { setDirectAccess(coll,true); ((CollectionChangeTracker) coll.getChangeTracker()).added(value); setDirectAccess(coll,false); } return added; }
/** * Call after invoking {@link Collection#add(Object)} on super. * * @param added whether the object was added * @return <code>added</code>, for convenience */ public static boolean afterAdd(ProxyCollection coll, Object value, boolean added) { if (!isDirectAccess(coll) && added && coll.getChangeTracker() != null) { setDirectAccess(coll,true); ((CollectionChangeTracker) coll.getChangeTracker()).added(value); setDirectAccess(coll,false); } return added; }
/** * Call after invoking {@link Collection#add(Object)} on super. * * @param added whether the object was added * @return <code>added</code>, for convenience */ public static boolean afterAdd(ProxyCollection coll, Object value, boolean added) { if (!isDirectAccess(coll) && added && coll.getChangeTracker() != null) { setDirectAccess(coll,true); ((CollectionChangeTracker) coll.getChangeTracker()).added(value); setDirectAccess(coll,false); } return added; }
/** * Call after invoking {@link Collection#add(Object)} on super. * * @param added whether the object was added * @return <code>added</code>, for convenience */ public static boolean afterAdd(ProxyCollection coll, Object value, boolean added) { if (!isDirectAccess(coll) && added && coll.getChangeTracker() != null) { setDirectAccess(coll,true); ((CollectionChangeTracker) coll.getChangeTracker()).added(value); setDirectAccess(coll,false); } return added; }
/** * Call after invoking {@link Collection#remove} on super. * * @param removed whether the object was removed * @return whether the object was removed, for convenience */ public static boolean afterRemove(ProxyCollection coll, Object o, boolean removed){ boolean isDelayed = isDelayed(coll); boolean direct = isDirectAccess(coll); if (!isDelayed) { if (!removed) return false; } if (!direct && coll.getChangeTracker() != null) { // switch on direct access to prevent the removed op from // inadvertently loading the collection setDirectAccess(coll, true); ((CollectionChangeTracker) coll.getChangeTracker()).removed(o); setDirectAccess(coll, false); } if (!isDelayed) { removed(coll, o, false); } return true; }
/** * Call after invoking {@link Collection#remove} on super. * * @param removed whether the object was removed * @return whether the object was removed, for convenience */ public static boolean afterRemove(ProxyCollection coll, Object o, boolean removed){ boolean isDelayed = isDelayed(coll); boolean direct = isDirectAccess(coll); if (!isDelayed) { if (!removed) return false; } if (!direct && coll.getChangeTracker() != null) { // switch on direct access to prevent the removed op from // inadvertently loading the collection setDirectAccess(coll, true); ((CollectionChangeTracker) coll.getChangeTracker()).removed(o); setDirectAccess(coll, false); } if (!isDelayed) { removed(coll, o, false); } return true; }
/** * Call after invoking {@link Collection#remove} on super. * * @param removed whether the object was removed * @return whether the object was removed, for convenience */ public static boolean afterRemove(ProxyCollection coll, Object o, boolean removed){ boolean isDelayed = isDelayed(coll); boolean direct = isDirectAccess(coll); if (!isDelayed) { if (!removed) return false; } if (!direct && coll.getChangeTracker() != null) { // switch on direct access to prevent the removed op from // inadvertently loading the collection setDirectAccess(coll, true); ((CollectionChangeTracker) coll.getChangeTracker()).removed(o); setDirectAccess(coll, false); } if (!isDelayed) { removed(coll, o, false); } return true; }
/** * Call after invoking {@link Collection#remove} on super. * * @param removed whether the object was removed * @return whether the object was removed, for convenience */ public static boolean afterRemove(ProxyCollection coll, Object o, boolean removed){ boolean isDelayed = isDelayed(coll); boolean direct = isDirectAccess(coll); if (!isDelayed) { if (!removed) return false; } if (!direct && coll.getChangeTracker() != null) { // switch on direct access to prevent the removed op from // inadvertently loading the collection setDirectAccess(coll, true); ((CollectionChangeTracker) coll.getChangeTracker()).removed(o); setDirectAccess(coll, false); } if (!isDelayed) { removed(coll, o, false); } return true; }