5455565758596061
super.begin(); ut.begin(); } catch(Exception ex) { throw new TransactionException("eroror in begin()", ex); } }
8081828384858687
bTransactionHasEnded = true; releaseResources(); } catch(Exception ex) { throw new TransactionException("eroror in commit()", ex); } }
103104105106107108109110
ut.rollback(); releaseResources(); } catch(Exception ex) { throw new TransactionException("eroror in rollback()", ex); } }
5960616263646566
nameConnMap.clear(); bAllResourcesReleased = true; } catch(Exception ex) { throw new TransactionException("eroror in releaseResources()", ex); } }
7576777879808182838485
/** * Commit a transaction. */ public void commit() { if (bTransactionHasCommitted) { throw new TransactionException("Transaciton has already been committed."); } else { bTransactionHasCommitted = true; } }
8788899091929394959697
/** * Rollback a transaction. */ public void rollback() { if (bTransactionHasRollbacked) { throw new TransactionException("Transaciton has already been rollbacked."); } else { bTransactionHasRollbacked = true; } }
3132333435363738
public void begin() { try { super.begin(); } catch(Exception ex) { throw new TransactionException("eroror in begin()", ex); } }
4748495051525354
for (UserDatabaseConnection udc : connList) { DAOUtil.commit(udc.getConnection()); } } catch(Exception ex) { throw new TransactionException("eroror in commit()", ex); } }
6364656667686970
for (UserDatabaseConnection udc : connList) { DAOUtil.rollback(udc.getConnection()); } } catch(Exception ex) { throw new TransactionException("eroror in rollback()", ex); } }
75767778798081828384
} else if (type.equalsIgnoreCase(Transaction.CMT_TRANSACTION_TYPE)) { ts = new CmtTransaction(); } else { throw new TransactionException("TransactionFactory:createTransaction() failed. Type: " + type + "."); } return ts; }