@Override public Iterable<T> call() throws Exception { dao.updateInTx(entities); return entities; } });
@Override public Object[] call() throws Exception { dao.updateInTx(entities); return entities; } });
/** * Updates the given entities in the database using a transaction. * * @param entities The entities to update. */ public void updateInTx(T... entities) { updateInTx(Arrays.asList(entities)); }
updateInTx(toUpdate); insertInTx(toInsert); db.setTransactionSuccessful(); insertInTx(entities); } else if (updateCount > 0) { updateInTx(entities);
break; case UpdateInTxIterable: operation.dao.updateInTx((Iterable<Object>) operation.parameter); break; case UpdateInTxArray: operation.dao.updateInTx((Object[]) operation.parameter); break; case TransactionRunnable:
protected void runBatchTests(List<T> list) { startClock("insert"); dao.insertInTx(list); stopClock(); list = null; System.gc(); clearIdentityScopeIfAny(); list = runLoadAll("load-all-1"); accessAll(list, "access-all-1"); list = runLoadAll("load-all-2"); accessAll(list, "access-all-2"); startClock("update"); dao.updateInTx(list); stopClock(); }
@Override public Object[] call() throws Exception { dao.updateInTx(entities); return entities; } });
@Override public Iterable<T> call() throws Exception { dao.updateInTx(entities); return entities; } });
public void update(T... items) { mDao.updateInTx(items); }
public void update(List<T> items) { mDao.updateInTx(items); }
/** * Updates the given entities in the database using a transaction. * * @param entities The entities to update. */ public void updateInTx(T... entities) { updateInTx(Arrays.asList(entities)); }
updateInTx(toUpdate); insertInTx(toInsert); db.setTransactionSuccessful(); insertInTx(entities); } else if (updateCount > 0) { updateInTx(entities);
break; case UpdateInTxIterable: operation.dao.updateInTx((Iterable<Object>) operation.parameter); break; case UpdateInTxArray: operation.dao.updateInTx((Object[]) operation.parameter); break; case TransactionRunnable: