public void nontransactionalAll(Collection objs, OpCallbacks call) { beginOperation(true); try { List<Exception> exceps = null; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { nontransactional(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void releaseAll(Collection objs, OpCallbacks call) { beginOperation(false); try { List<Exception> exceps = null; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { release(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void nontransactionalAll(Collection objs, OpCallbacks call) { beginOperation(true); try { List<Exception> exceps = null; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { nontransactional(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void releaseAll(Collection objs, OpCallbacks call) { beginOperation(false); try { List<Exception> exceps = null; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { release(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void evictAll(Collection objs, OpCallbacks call) { List<Exception> exceps = null; beginOperation(false); try { for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { evict(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } } finally { endOperation(); } throwNestedExceptions(exceps, false); }
public void releaseAll(Collection objs, OpCallbacks call) { beginOperation(false); try { List<Exception> exceps = null; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { release(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void releaseAll(Collection objs, OpCallbacks call) { beginOperation(false); try { List exceps = null; for (Iterator itr = objs.iterator(); itr.hasNext();) { try { release(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
/** * Transition the given state managers to transactional. */ private void transactionalStatesAll(Collection sms, Collection failed, List exceps) { // make instances transactional and make sure they are loaded StateManagerImpl sm; for (Iterator itr = sms.iterator(); itr.hasNext();) { sm = (StateManagerImpl) itr.next(); if (failed != null && failed.contains(sm.getId())) continue; try { sm.transactional(); sm.load(_fc, StateManagerImpl.LOAD_FGS, null, null, false); } catch (OpenJPAException ke) { exceps = add(exceps, ke); } } throwNestedExceptions(exceps, false); }
/** * Transition the given state managers to transactional. */ private void transactionalStatesAll(Collection sms, Collection failed, List<Exception> exceps) { // make instances transactional and make sure they are loaded StateManagerImpl sm; for (Iterator<?> itr = sms.iterator(); itr.hasNext();) { sm = (StateManagerImpl) itr.next(); if (failed != null && failed.contains(sm.getId())) continue; try { sm.transactional(); sm.load(_fc, StateManagerImpl.LOAD_FGS, null, null, false); } catch (OpenJPAException ke) { exceps = add(exceps, ke); } } throwNestedExceptions(exceps, false); }
public void releaseAll(Collection objs, OpCallbacks call) { beginOperation(false); try { List<Exception> exceps = null; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { release(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void nontransactionalAll(Collection objs, OpCallbacks call) { beginOperation(true); try { List<Exception> exceps = null; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { nontransactional(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void evictAll(Collection objs, OpCallbacks call) { List<Exception> exceps = null; beginOperation(false); try { for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { evict(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } } finally { endOperation(); } throwNestedExceptions(exceps, false); }
public void evictAll(Collection objs, OpCallbacks call) { List exceps = null; beginOperation(false); try { for (Iterator itr = objs.iterator(); itr.hasNext();) { try { evict(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } } finally { endOperation(); } throwNestedExceptions(exceps, false); }
public void nontransactionalAll(Collection objs, OpCallbacks call) { beginOperation(true); try { List exceps = null; for (Iterator itr = objs.iterator(); itr.hasNext();) { try { nontransactional(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void evictAll(Collection objs, OpCallbacks call) { List<Exception> exceps = null; beginOperation(false); try { for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { evict(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } } finally { endOperation(); } throwNestedExceptions(exceps, false); }
public void evictAll(Collection objs, OpCallbacks call) { List<Exception> exceps = null; beginOperation(false); try { for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { evict(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } } finally { endOperation(); } throwNestedExceptions(exceps, false); }
public void nontransactionalAll(Collection objs, OpCallbacks call) { beginOperation(true); try { List<Exception> exceps = null; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { nontransactional(itr.next(), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
/** * Transition the given state managers to transactional. */ private void transactionalStatesAll(Collection sms, Collection failed, List<Exception> exceps) { // make instances transactional and make sure they are loaded StateManagerImpl sm; for (Iterator<?> itr = sms.iterator(); itr.hasNext();) { sm = (StateManagerImpl) itr.next(); if (failed != null && failed.contains(sm.getId())) continue; try { sm.transactional(); sm.load(_fc, StateManagerImpl.LOAD_FGS, null, null, false); } catch (OpenJPAException ke) { exceps = add(exceps, ke); } } throwNestedExceptions(exceps, false); }
public void deleteAll(Collection objs, OpCallbacks call) { beginOperation(true); try { assertWriteOperation(); List<Exception> exceps = null; Object obj; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { obj = itr.next(); if (obj != null) delete(obj, getStateManagerImpl(obj, true), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }
public void deleteAll(Collection objs, OpCallbacks call) { beginOperation(true); try { assertWriteOperation(); List<Exception> exceps = null; Object obj; for (Iterator<?> itr = objs.iterator(); itr.hasNext();) { try { obj = itr.next(); if (obj != null) delete(obj, getStateManagerImpl(obj, true), call); } catch (UserException ue) { exceps = add(exceps, ue); } } throwNestedExceptions(exceps, false); } finally { endOperation(); } }