@Override public void setProperty(long tid, String prop, Serializable val) { store.setProperty(tid, prop, val); }
public void seedTransaction(long tid, Repo<T> repo, boolean autoCleanUp) { store.reserve(tid); try { if (store.getStatus(tid) == TStatus.NEW) { if (store.top(tid) == null) { try { store.push(tid, repo); } catch (StackOverflowException e) { // this should not happen throw new RuntimeException(e); } } if (autoCleanUp) store.setProperty(tid, AUTO_CLEAN_PROP, autoCleanUp); store.setProperty(tid, DEBUG_PROP, repo.getDescription()); store.setStatus(tid, TStatus.IN_PROGRESS); } } finally { store.unreserve(tid, 0); } }
@Override public void setProperty(long tid, String prop, Serializable val) { store.setProperty(tid, prop, val); }
public void seedTransaction(long tid, Repo<T> repo, boolean autoCleanUp) { store.reserve(tid); try { if (store.getStatus(tid) == TStatus.NEW) { if (store.top(tid) == null) { try { store.push(tid, repo); } catch (StackOverflowException e) { // this should not happen throw new RuntimeException(e); } } if (autoCleanUp) store.setProperty(tid, AUTO_CLEAN_PROP, Boolean.valueOf(autoCleanUp)); store.setProperty(tid, DEBUG_PROP, repo.getDescription()); store.setStatus(tid, TStatus.IN_PROGRESS); } } finally { store.unreserve(tid, 0); } }