/** * Make sure the object store is set up, if required. The root of the object * store is assumed to be <code>null</code>. */ protected final void setupStore () { setupStore(null); }
/** * Commit the transaction, and have heuristic reporting. Heuristic reporting * via the return code is enabled. * * @return <code>ActionStatus</code> indicating outcome. * * @deprecated Only used by tests */ public int commit () { return commit(true); }
protected void updateState () { if (_previous == null) super.savedIntentionList = false; super.updateState(); }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. No timeout is associated with the transaction. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin () { return begin(AtomicAction.NO_TIMEOUT); }
/** * This operation deactivates a persistent object. It behaves in a similar * manner to the activate operation, but has an extra argument which defines * whether the object's state should be commited now or not. It is assumed * that this is being called during a transaction commit. * * @return <code>true</code> on success, <code>false</code> otherwise. */ public boolean deactivate (String rootName) { return deactivate(rootName, true); }
protected void updateState () { if (_previous == null) super.savedIntentionList = false; super.updateState(); }
/** * Force this transaction to try to recover itself again. */ public void recover() { _theTransaction.activate(); }
public java.util.Map<Uid, String> getSynchronizations() { if (_theTransaction != null) return _theTransaction.getSynchronizations(); return Collections.EMPTY_MAP; }
/** * Make sure the object store is set up, if required. The root of the object * store is assumed to be <code>null</code>. */ protected final void setupStore () { setupStore(null); }
/** * Commit the transaction, and have heuristic reporting. Heuristic reporting * via the return code is enabled. * * @return <code>ActionStatus</code> indicating outcome. */ public int commit () { return commit(true); }
/** * This operation deactivates a persistent object. It behaves in a similar * manner to the activate operation, but has an extra argument which defines * whether the object's state should be commited now or not. It is assumed * that this is being called during a transaction commit. * * @return <code>true</code> on success, <code>false</code> otherwise. */ public boolean deactivate (String rootName) { return deactivate(rootName, true); }
protected void updateState () { if (_previous == null) super.savedIntentionList = false; super.updateState(); }
/** * Force this transaction to try to recover itself again. */ public void recover() { _theTransaction.activate(); }
/** * Make sure the object store is set up, if required. The root of the object * store is assumed to be <code>null</code>. */ protected final void setupStore () { setupStore(null); }
/** * This operation deactivates a persistent object. It behaves in a similar * manner to the activate operation, but has an extra argument which defines * whether the object's state should be commited now or not. It is assumed * that this is being called during a transaction commit. * * @return <code>true</code> on success, <code>false</code> otherwise. */ public boolean deactivate (String rootName) { return deactivate(rootName, true); }
protected void updateState () { if (_previous == null) super.savedIntentionList = false; super.updateState(); }
/** * Force this transaction to try to recover itself again. */ public void recover() { _theTransaction.activate(); }
/** * This operation deactivates a persistent object. It behaves in a similar * manner to the activate operation, but has an extra argument which defines * whether the object's state should be commited now or not. It is assumed * that this is being called during a transaction commit. * * @return <code>true</code> on success, <code>false</code> otherwise. */ public boolean deactivate (String rootName) { return deactivate(rootName, true); }
protected void updateState () { if (_previous == null) super.savedIntentionList = false; super.updateState(); }
protected void updateState () { if (_previous == null) super.savedIntentionList = false; super.updateState(); }