/** * @return the org.omg.CosTransactions.Control reference to this * transaction. */ public Control control () throws NoTransaction, SystemException { if (_theAction == null) { throw new NoTransaction(); } else { try { return _theAction.get_control(); } catch (Unavailable ex) { throw new NoTransaction(); } } }
public static org.omg.CosTransactions.NoTransaction read (org.omg.CORBA.portable.InputStream istream) { org.omg.CosTransactions.NoTransaction value = new org.omg.CosTransactions.NoTransaction (); // read and discard the repository ID istream.read_string (); return value; }
/** * @return the org.omg.CosTransactions.Control reference to this * transaction. */ public Control control () throws NoTransaction, SystemException { if (_theAction == null) { throw new NoTransaction(); } else { try { return _theAction.get_control(); } catch (Unavailable ex) { throw new NoTransaction(); } } }
public static org.omg.CosTransactions.NoTransaction read (org.omg.CORBA.portable.InputStream istream) { org.omg.CosTransactions.NoTransaction value = new org.omg.CosTransactions.NoTransaction (); // read and discard the repository ID istream.read_string (); return value; }
/** * Allow action commit to be supressed. Although the OTS would require an InactiveException * if the transaction is not active, we ignore that via this route. */ public void rollbackOnly () throws SystemException, NoTransaction { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::rollbackOnly called for " + _theAction); } synchronized (_theStatus) { if (_theAction == null) throw new NoTransaction(); } _theAction.preventCommit(); }
public static org.omg.CosTransactions.NoTransaction read (final org.omg.CORBA.portable.InputStream in) { org.omg.CosTransactions.NoTransaction result = new org.omg.CosTransactions.NoTransaction(); if (!in.read_string().equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id"); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CosTransactions.NoTransaction s)
public static org.omg.CosTransactions.NoTransaction read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); final org.omg.CosTransactions.NoTransaction result = new org.omg.CosTransactions.NoTransaction(id); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CosTransactions.NoTransaction s)
public void rollback() throws NoTransaction { Thread current = Thread.currentThread(); if (! contexts.containsKey(current)) throw new NoTransaction(); try { Control control = (Control) contexts.get(current); control.get_terminator().rollback(); control._release(); removeContext(current); } catch (Exception e) { if (logger.isDebugEnabled()) logger.debug("Exception: ", e); } }
public static org.omg.CosTransactions.NoTransaction read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); final org.omg.CosTransactions.NoTransaction result = new org.omg.CosTransactions.NoTransaction(id); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.CosTransactions.NoTransaction s)
public void rollback_only() throws NoTransaction { Thread current = Thread.currentThread(); if (! contexts.containsKey(current)) throw new NoTransaction(); try { Control control = (Control) contexts.get(current); control.get_coordinator().rollback_only(); control._release(); removeContext(current); } catch (Exception e){ if (logger.isDebugEnabled()) logger.debug("Exception: ", e); } }
throw new NoTransaction(); throw new NoTransaction();
/**Marks the current transaction such that is cannot be committed and only * rolled back. * * @param * * @return * * @exception NoTransaction There is no current transaction to mark rollback- * only. * * @see */ public void rollback_only() throws NoTransaction { // Get the reference of the current Coordinator. If there is none, raise the // NoTransaction exception. try { Coordinator coord = CurrentTransaction.getCurrentCoordinator(); // Tell the Coordinator to mark itself rollback-only. coord.rollback_only(); } catch( Throwable exc ) { throw new NoTransaction(); } }
throw new NoTransaction(); else
throw new NoTransaction(); throw new NoTransaction();
public void commit(boolean report_heuristics) throws NoTransaction, HeuristicMixed, HeuristicHazard { Thread current = Thread.currentThread(); if (! contexts.containsKey(current)) throw new NoTransaction(); Control control = null; try { control = (Control) contexts.get(current); control.get_terminator().commit(report_heuristics); control._release(); removeContext(current); } catch (org.omg.CORBA.TRANSACTION_ROLLEDBACK tr) { // Transaction was rolledback. if (logger.isDebugEnabled()) logger.debug("TRANSACTION_ROLLEDBACK: ", tr); control._release(); removeContext(current); throw tr; // re-throw the exception } catch (Exception e) { if (logger.isDebugEnabled()) logger.debug("Exception: ", e); } }
/** * Allow action commit to be supressed. Although the OTS would require an InactiveException * if the transaction is not active, we ignore that via this route. */ public void rollbackOnly () throws SystemException, NoTransaction { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::rollbackOnly called for " + _theAction); } synchronized (_theStatus) { if (_theAction == null) throw new NoTransaction(); } _theAction.preventCommit(); }
return ctx.getControl(); else throw new NoTransaction();
throw new NoTransaction(); throw new NoTransaction();
throw new NoTransaction(); else
return ctx.getControl(); else throw new NoTransaction();