@Override public Batch startBatch() { return new BatchImpl(this); }
public void commit() { try { onBeforeCommit(); for (Map.Entry<String,String> entry : updates.entrySet()) { String key = entry.getKey(), data = entry.getValue(); if (data == null) removeImpl(key); else setImpl(key, data); } onAfterCommit(); } finally { updates = null; // prevent further use } }
public void commit() { try { onBeforeCommit(); for (Map.Entry<String,String> entry : updates.entrySet()) { String key = entry.getKey(), data = entry.getValue(); if (data == null) removeImpl(key); else setImpl(key, data); } onAfterCommit(); } finally { updates = null; // prevent further use } }
@Override public Batch startBatch() { // TODO: we could bundle it all into one SQL command (or batches of them), but the individual // SQL commands are already pretty fast, so it might not be necessary return new BatchImpl(this); } }
public void commit() { try { onBeforeCommit(); for (Map.Entry<String,String> entry : updates.entrySet()) { String key = entry.getKey(), data = entry.getValue(); if (data == null) removeImpl(key); else setImpl(key, data); } onAfterCommit(); } finally { updates = null; // prevent further use } }
@Override public Batch startBatch() { return new BatchImpl(this); }
@Override public Batch startBatch() { // TODO: we could bundle it all into one SQL command (or batches of them), but the individual // SQL commands are already pretty fast, so it might not be necessary return new BatchImpl(this); } }
@Override public Batch startBatch() { return new BatchImpl(this); } @Override public Iterable<String> keys() {
@Override public Batch startBatch() { return new BatchImpl(this); }
@Override public Batch startBatch () { return new BatchImpl(this); } @Override public Iterable<String> keys () {
@Override public Batch startBatch () { return new BatchImpl(this); } @Override public Iterable<String> keys () {