1 package org.simantics.db.testing.common;
3 import org.simantics.db.ReadGraph;
4 import org.simantics.db.common.request.ReadRequest;
5 import org.simantics.db.exception.DatabaseException;
7 abstract public class ReadCommand<T extends CommandSequenceEnvironment> extends Command<T> {
10 public void run(final T environment) throws Exception {
11 environment.getSession().sync(new ReadRequest() {
14 public void run(ReadGraph graph) throws DatabaseException {
15 ReadCommand.this.run(graph, environment);
21 protected void run(ReadGraph graph, T environment) throws DatabaseException {