public synchronized void commit (boolean report_heuristics) throws SystemException, NoTransaction, HeuristicMixed, HeuristicHazard, WrongTransaction { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TopLevelTransaction::commit ( " + report_heuristics + " ) called for " + _originalTransaction); } if (validTransaction()) { try { super.commit(report_heuristics); } catch (WrongTransaction e1) { resumeTransaction(); throw e1; } catch (SystemException e2) { resumeTransaction(); throw e2; } resumeTransaction(); } else throw new WrongTransaction(); }
public synchronized void rollback () throws SystemException, NoTransaction, WrongTransaction { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TopLevelTransaction::rollback () called for " + _originalTransaction); } if (validTransaction()) { try { super.rollback(); } catch (WrongTransaction e1) { resumeTransaction(); throw e1; } catch (SystemException e2) { resumeTransaction(); throw e2; } resumeTransaction(); } else throw new WrongTransaction(); }
public synchronized void commit (boolean report_heuristics) throws SystemException, NoTransaction, HeuristicMixed, HeuristicHazard, WrongTransaction { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "TopLevelTransaction::commit ( "+report_heuristics+" ) called for "+_originalTransaction); } if (validTransaction()) { try { super.commit(report_heuristics); } catch (WrongTransaction e1) { resumeTransaction(); throw e1; } catch (SystemException e2) { resumeTransaction(); throw e2; } resumeTransaction(); } else throw new WrongTransaction(); }
public synchronized void rollback () throws SystemException, NoTransaction, WrongTransaction { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "TopLevelTransaction::rollback () called for "+_originalTransaction); } if (validTransaction()) { try { super.rollback(); } catch (WrongTransaction e1) { resumeTransaction(); throw e1; } catch (SystemException e2) { resumeTransaction(); throw e2; } resumeTransaction(); } else throw new WrongTransaction(); }