/** * Removes a collection of elements from an ObjectStoreBag, delegate to internal * ObjectStoreWriter. * * @param osb an ObjectStoreBag * @param coll a Collection of Integers * @throws ObjectStoreException if an error occurs */ public void removeAllFromBag(ObjectStoreBag osb, Collection<Integer> coll) throws ObjectStoreException { osw.removeAllFromBag(osb, coll); }
/** * Removes a collection of elements from an ObjectStoreBag, delegate to internal * ObjectStoreWriter. * * @param osb an ObjectStoreBag * @param coll a Collection of Integers * @throws ObjectStoreException if an error occurs */ public void removeAllFromBag(ObjectStoreBag osb, Collection<Integer> coll) throws ObjectStoreException { osw.removeAllFromBag(osb, coll); }
/** * Remove the given ids from the bag, this updates the bag contents in the database * @param ids the ids to remove * @param updateBagValues whether or not to update the values * @throws ObjectStoreException if problem storing */ public void removeIdsFromBag(Collection<Integer> ids, boolean updateBagValues) throws ObjectStoreException { ObjectStoreWriter oswProduction = null; try { oswProduction = os.getNewWriter(); oswProduction.removeAllFromBag(osb, ids); } finally { if (oswProduction != null) { oswProduction.close(); } } if (profileId != null && updateBagValues) { updateBagValues(); } }
/** * Remove the given ids from the bag, this updates the bag contents in the database * @param ids the ids to remove * @param updateBagValues whether or not to update the values * @throws ObjectStoreException if problem storing */ public void removeIdsFromBag(Collection<Integer> ids, boolean updateBagValues) throws ObjectStoreException { ObjectStoreWriter oswProduction = null; try { oswProduction = os.getNewWriter(); oswProduction.removeAllFromBag(osb, ids); } finally { if (oswProduction != null) { oswProduction.close(); } } if (profileId != null && updateBagValues) { updateBagValues(); } }