public void release(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(false); try { StateManagerImpl sm = getStateManagerImpl(obj, true); int action = processArgument(OpCallbacks.OP_RELEASE, obj, sm, call); if (sm == null) return; if ((action & OpCallbacks.ACT_RUN) != 0 && sm.isPersistent()) { boolean pending = sm.isPendingTransactional(); sm.release(true); if (pending) removeFromPendingTransaction(sm); } } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void release(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(false); try { StateManagerImpl sm = getStateManagerImpl(obj, true); int action = processArgument(OpCallbacks.OP_RELEASE, obj, sm, call); if (sm == null) return; if ((action & OpCallbacks.ACT_RUN) != 0 && sm.isPersistent()) { boolean pending = sm.isPendingTransactional(); sm.release(true); if (pending) removeFromPendingTransaction(sm); } } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void release(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(false); try { StateManagerImpl sm = getStateManagerImpl(obj, true); int action = processArgument(OpCallbacks.OP_RELEASE, obj, sm, call); if (sm == null) return; if ((action & OpCallbacks.ACT_RUN) != 0 && sm.isPersistent()) { boolean pending = sm.isPendingTransactional(); sm.release(true); if (pending) removeFromPendingTransaction(sm); } } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void release(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(false); try { StateManagerImpl sm = getStateManagerImpl(obj, true); int action = processArgument(OpCallbacks.OP_RELEASE, obj, sm, call); if (sm == null) return; if ((action & OpCallbacks.ACT_RUN) != 0 && sm.isPersistent()) { boolean pending = sm.isPendingTransactional(); sm.release(true); if (pending) removeFromPendingTransaction(sm); } } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
public void release(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(false); try { StateManagerImpl sm = getStateManagerImpl(obj, true); int action = processArgument(OpCallbacks.OP_RELEASE, obj, sm, call); if (sm == null) return; if ((action & OpCallbacks.ACT_RUN) != 0 && sm.isPersistent()) { boolean pending = sm.isPendingTransactional(); sm.release(true); if (pending) removeFromPendingTransaction(sm); } } catch (OpenJPAException ke) { throw ke; } catch (RuntimeException re) { throw new GeneralException(re); } finally { endOperation(); } }
_broker.addToPendingTransaction(this); else if (wasPending && !_state.isPendingTransactional()) _broker.removeFromPendingTransaction(this); else _broker.removeFromTransaction(this);
_broker.addToPendingTransaction(this); else if (wasPending && !_state.isPendingTransactional()) _broker.removeFromPendingTransaction(this); else _broker.removeFromTransaction(this);
_broker.addToPendingTransaction(this); else if (wasPending && !_state.isPendingTransactional()) _broker.removeFromPendingTransaction(this); else _broker.removeFromTransaction(this);
_broker.addToPendingTransaction(this); else if (wasPending && !_state.isPendingTransactional()) _broker.removeFromPendingTransaction(this); else _broker.removeFromTransaction(this);
_broker.addToPendingTransaction(this); else if (wasPending && !_state.isPendingTransactional()) _broker.removeFromPendingTransaction(this); else _broker.removeFromTransaction(this);