9899100101102103104105106107108
txn.commit(); } public void rollbackTransaction() { Transaction txn = ds.getCurrentTransaction(); txn.rollback(); } public void delete(Object obj){ List<Key> keys = new ArrayList<Key>();
125126127128129130131132133134135
try { key = datastore.put(entity); txn.commit(); } finally { if (txn.isActive()) txn.rollback(); else { addToCache(key, entity); } } return key;
285286287288289290291292293294295
//{ //tx.rollback(); if (!suc) try{ trans.rollback(); }catch (Exception e2){ tools.util.LogMgr.err("JGU.put TABLE.rollback " + e2.toString()); } //}
515516517518519520521522523524525
//if (tx.isActive()) //{ //tx.rollback(); if (!suc)try{ trans.rollback(); }catch (Exception e){ tools.util.LogMgr.err("JGU.delete TABLE.rollback " + e.toString()); } //}
179180181182183184185186187188189
} //trans.commit(); }catch (Exception e){ if (trans != null) trans.rollback(); e.printStackTrace(); ///(e); throw new SQLException(e.toString()); }
745746747748749750751752753754755
try{ removeTableInfo(t,trans); trans.commit(); }catch (Exception e){ trans.rollback(); throw new SQLException(e.toString()); } } StringBuffer itb = new StringBuffer( "jiqlAutoIncrementInt_").append(t);
113114115116117118119120121122123
try { this.datastoreService.put(txn, featureEntity); txn.commit(); } finally { if (txn.isActive()) { txn.rollback(); } } } /**
131132133134135136137138139140141
try { featureEntity = this.datastoreService.get(txn, key); txn.commit(); } finally { if (txn.isActive()) { txn.rollback(); } } return featureEntity; }
7980818283848586878889
entity.setProperty(DEVICE_REG_ID_PROPERTY, regId); datastore.put(entity); txn.commit(); } finally { if (txn.isActive()) { txn.rollback(); } } } /**
103104105106107108109110111112113
datastore.delete(key); } txn.commit(); } finally { if (txn.isActive()) { txn.rollback(); } } } /**