public void doForget () throws IllegalStateException { try { SubordinateAtomicAction subAct = (SubordinateAtomicAction) super._theTransaction; subAct.doForget(); } catch (ClassCastException ex) { throw new IllegalStateException(ex); } finally { TransactionImple.removeTransaction(this); } }
/** * * @throws IllegalStateException * * @deprecated Only called from a test */ public void doForget () throws IllegalStateException { try { SubordinateAtomicAction subAct = (SubordinateAtomicAction) super._theTransaction; subAct.doForget(); } catch (ClassCastException ex) { throw new IllegalStateException(ex); } finally { TransactionImple.removeTransaction(this); } }
/** * * @throws IllegalStateException * * @deprecated Only called from a test */ public void doForget () throws IllegalStateException { try { SubordinateAtomicAction subAct = (SubordinateAtomicAction) super._theTransaction; subAct.doForget(); } catch (ClassCastException ex) { throw new IllegalStateException(ex); } finally { TransactionImple.removeTransaction(this); } }
/** * * @throws IllegalStateException * * @deprecated Only called from a test */ public void doForget () throws IllegalStateException { try { SubordinateAtomicAction subAct = (SubordinateAtomicAction) super._theTransaction; subAct.doForget(); } catch (ClassCastException ex) { throw new IllegalStateException(ex); } finally { TransactionImple.removeTransaction(this); } }
/** * * @throws IllegalStateException * * @deprecated Only called from a test */ public void doForget () throws IllegalStateException { try { SubordinateAtomicAction subAct = (SubordinateAtomicAction) super._theTransaction; subAct.doForget(); } catch (ClassCastException ex) { throw new IllegalStateException(ex); } finally { TransactionImple.removeTransaction(this); } }
/** * * @throws IllegalStateException * * @deprecated Only called from a test */ public void doForget () throws IllegalStateException { try { SubordinateAtomicAction subAct = (SubordinateAtomicAction) super._theTransaction; subAct.doForget(); } catch (ClassCastException ex) { throw new IllegalStateException(ex); } finally { TransactionImple.removeTransaction(this); } }
/** * * @throws IllegalStateException * * @deprecated Only called from a test */ public void doForget () throws IllegalStateException { try { SubordinateAtomicAction subAct = (SubordinateAtomicAction) super._theTransaction; subAct.doForget(); } catch (ClassCastException ex) { throw new IllegalStateException(ex); } finally { TransactionImple.removeTransaction(this); } }
@Test public void testAtomicAction () throws Exception { SubordinateAtomicAction saa = new SubordinateAtomicAction(); AtomicAction A = new AtomicAction(); assertEquals(saa.commit(), ActionStatus.INVALID); assertEquals(saa.abort(), ActionStatus.INVALID); assertTrue(saa.type() != A.type()); assertTrue(saa.activated()); saa.doForget(); }