@Test(expected = IllegalStateException.class) public void must_lock_entity_before_update() { transactionTemplate.execute(status -> { EntityUpdateBatch<String, String, JEntityVersion<String>> update = entityStore.updateBatch(randomId()); update.addVersion(randomId(), ObjectVersionGraph.init(ObjectVersion.<String>builder().build()).getTip()); update.execute(); return null; }); }
@Override public EntityUpdateBatch<Id, M, V> updateBatch(Id id) { return updateBatch(singleton(id)); }
EntityVersionStoreJdbc extends AbstractVersionStoreJdbc<Id, M, V, EntityUpdateBatch<Id, M, V>, EntityStoreOptions<Id, M, V>> { @Override public EntityUpdateBatch<Id, M, V> updateBatch(Id id) { return updateBatch(singleton(id)); } }
EntityVersionStoreJdbc extends AbstractVersionStoreJdbc<Id, M, V, EntityUpdateBatch<Id, M, V>, EntityStoreOptions<Id, M, V>> { @Override public EntityUpdateBatch<Id, M, V> updateBatch(Id id) { return updateBatch(singleton(id)); } @SuppressWarnings("unused") protected  EntityVersionStoreJdbc();  EntityVersionStoreJdbc(EntityStoreOptions<Id, M, V> options); }
EntityVersionStoreJdbc extends AbstractVersionStoreJdbc<Id, M, V, EntityUpdateBatch<Id, M, V>, EntityStoreOptions<Id, M, V>> { @Override public EntityUpdateBatch<Id, M, V> updateBatch(Id id) { return updateBatch(singleton(id)); } @SuppressWarnings("unused") protected  EntityVersionStoreJdbc();  EntityVersionStoreJdbc(EntityStoreOptions<Id, M, V> options); @Override EntityUpdateBatch<Id, M, V> updateBatch(Id id); @Override EntityUpdateBatch<Id, M, V> updateBatch(Collection<Id> docIds); }
EntityVersionStoreJdbc extends AbstractVersionStoreJdbc<Id, M, V, EntityUpdateBatch<Id, M, V>, EntityStoreOptions<Id, M, V>> { @Override public EntityUpdateBatch<Id, M, V> updateBatch(Id id) { return updateBatch(singleton(id)); } @SuppressWarnings("unused") protected  EntityVersionStoreJdbc();  EntityVersionStoreJdbc(EntityStoreOptions<Id, M, V> options); @Override EntityUpdateBatch<Id, M, V> updateBatch(Id id); @Override EntityUpdateBatch<Id, M, V> updateBatch(Collection<Id> docIds);  }