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(); } }
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(); } }
public void deleteAll(Collection objs, OpCallbacks call) { beginOperation(true); try { assertWriteOperation(); List 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(); } }
/** * Persist the given object. Indicate whether this was an explicit persist * (PNEW) or a provisonal persist (PNEWPROVISIONAL). * See {@link Broker} for details on this method. */ public OpenJPAStateManager persist(Object obj, Object id, boolean explicit, OpCallbacks call, boolean fireEvent) { if (obj == null) return null; beginOperation(true); try { assertWriteOperation(); return persistInternal(obj, id, explicit, call, fireEvent); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
/** * Persist the given object. Indicate whether this was an explicit persist * (PNEW) or a provisonal persist (PNEWPROVISIONAL). * See {@link Broker} for details on this method. */ public OpenJPAStateManager persist(Object obj, Object id, boolean explicit, OpCallbacks call, boolean fireEvent) { if (obj == null) return null; beginOperation(true); try { assertWriteOperation(); return persistInternal(obj, id, explicit, call, fireEvent); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
/** * Persist the given object. Indicate whether this was an explicit persist * (PNEW) or a provisonal persist (PNEWPROVISIONAL). * See {@link Broker} for details on this method. */ public OpenJPAStateManager persist(Object obj, Object id, boolean explicit, OpCallbacks call, boolean fireEvent) { if (obj == null) return null; beginOperation(true); try { assertWriteOperation(); return persistInternal(obj, id, explicit, call, fireEvent); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void delete(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(true); try { assertWriteOperation(); delete(obj, getStateManagerImpl(obj, true), call); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
/** * Persist the given object. Indicate whether this was an explicit persist * (PNEW) or a provisonal persist (PNEWPROVISIONAL). * See {@link Broker} for details on this method. */ public OpenJPAStateManager persist(Object obj, Object id, boolean explicit, OpCallbacks call, boolean fireEvent) { if (obj == null) return null; beginOperation(true); try { assertWriteOperation(); return persistInternal(obj, id, explicit, call, fireEvent); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void delete(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(true); try { assertWriteOperation(); delete(obj, getStateManagerImpl(obj, true), call); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void delete(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(true); try { assertWriteOperation(); delete(obj, getStateManagerImpl(obj, true), call); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void delete(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(true); try { assertWriteOperation(); delete(obj, getStateManagerImpl(obj, true), call); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void delete(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(true); try { assertWriteOperation(); delete(obj, getStateManagerImpl(obj, true), call); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public Object[] attachAll(Collection objs, boolean copyNew, OpCallbacks call) { if (objs == null) return null; if (objs.isEmpty()) return EMPTY_OBJECTS; beginOperation(true); try { // make sure not to try to set rollback only if this fails assertWriteOperation(); try { return new AttachManager(this, copyNew, call).attachAll(objs); } catch (OptimisticException oe) { setRollbackOnly(oe); throw oe.setFatal(true); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } } finally { endOperation(); } }
public Object[] attachAll(Collection objs, boolean copyNew, OpCallbacks call) { if (objs == null) return null; if (objs.isEmpty()) return EMPTY_OBJECTS; beginOperation(true); try { // make sure not to try to set rollback only if this fails assertWriteOperation(); try { return new AttachManager(this, copyNew, call).attachAll(objs); } catch (OptimisticException oe) { setRollbackOnly(oe); throw oe.setFatal(true); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } } finally { endOperation(); } }
public Object[] attachAll(Collection objs, boolean copyNew, OpCallbacks call) { if (objs == null) return null; if (objs.isEmpty()) return EMPTY_OBJECTS; beginOperation(true); try { // make sure not to try to set rollback only if this fails assertWriteOperation(); try { return new AttachManager(this, copyNew, call).attachAll(objs); } catch (OptimisticException oe) { setRollbackOnly(oe); throw oe.setFatal(true); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } } finally { endOperation(); } }
public Object attach(Object obj, boolean copyNew, OpCallbacks call) { if (obj == null) return null; beginOperation(true); try { // make sure not to try to set rollback only if this fails assertWriteOperation(); try { return new AttachManager(this, copyNew, call).attach(obj); } catch (OptimisticException oe) { setRollbackOnly(oe); throw oe.setFatal(true); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } } finally { endOperation(); } }
public Object attach(Object obj, boolean copyNew, OpCallbacks call) { if (obj == null) return null; beginOperation(true); try { // make sure not to try to set rollback only if this fails assertWriteOperation(); try { return new AttachManager(this, copyNew, call).attach(obj); } catch (OptimisticException oe) { setRollbackOnly(oe); throw oe.setFatal(true); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } } finally { endOperation(); } }
public Object attach(Object obj, boolean copyNew, OpCallbacks call) { if (obj == null) return null; beginOperation(true); try { // make sure not to try to set rollback only if this fails assertWriteOperation(); try { return new AttachManager(this, copyNew, call).attach(obj); } catch (OptimisticException oe) { setRollbackOnly(oe); throw oe.setFatal(true); } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } } finally { endOperation(); } }