5758596061626364656667
TransactionLegacy txn = null; try { txn = TransactionLegacy.open(TransactionLegacy.AWSAPI_DB); remove(new Long(uploadId)); txn.commit(); } finally { txn.close(); } }
4041424344454647484950
TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.AWSAPI_DB); try { txn.start(); return listAll().size(); } finally { txn.commit(); txn.close(); } }
5960616263646566676869
txn.start(); SearchCriteria<OfferingBundleVO> sc = searchByAmazon.create(); sc.setParameters("AmazonEC2Offering", amazonEC2Offering); return findOneBy(sc).getCloudstackOffering(); } finally { txn.commit(); txn.close(); } } @Override
7778798081828384858687
txn.start(); SearchCriteria<OfferingBundleVO> sc = searchByAmazon.create(); sc.setParameters("CloudStackOffering", cloudStackOffering); return findOneBy(sc).getAmazonOffering(); } finally { txn.commit(); txn.close(); } } @Override
106107108109110111112113114115116
offering.setCloudstackOffering(cloudStackOffering); if (null == offering) offering = persist(offering); else update(offering.getID(), offering); txn.commit(); } finally { txn.close(); } }
124125126127128129130131132133134
try { txn.start(); SearchCriteria<OfferingBundleVO> sc = searchByAmazon.create(); sc.setParameters("AmazonEC2Offering", amazonEC2Offering); remove(sc); txn.commit(); } finally { txn.close(); } }
4243444546474849505152
txn.start(); SearchCriteria<SHostVO> sc = HostSearch.create(); sc.setParameters("Host", host); return findOneBy(sc); } finally { txn.commit(); txn.close(); } }
62636465666768697071
SearchCriteria<SHostVO> sc = LocalStorageHostSearch.create(); sc.setParameters("MHostID", mhostId); sc.setParameters("ExportRoot", storageRoot); return findOneBy(sc); } finally { txn.commit(); txn.close(); } } }
8283848586878889909192
if (entries != null) { for (S3MetaDataEntry entry : entries) save(target, targetId, entry); } txn.commit(); } finally { txn.close(); } } }
5859606162636465666768
stmt.setString(1, String.valueOf(i)); stmt.setLong(2, podId); stmt.addBatch(); } stmt.executeBatch(); txn.commit(); } catch (SQLException e) { throw new CloudRuntimeException("Exception caught adding vnet ", e); } }