public void open(WriteConfiguration config) { graph = (StandardTitanGraph) TitanFactory.open(config); features = graph.getConfiguration().getStoreFeatures(); tx = graph.newTransaction(); mgmt = graph.openManagement(); }
public void newTx() { if (null != tx && tx.isOpen()) tx.commit(); // tx = graph.newThreadBoundTransaction(); tx = graph.newTransaction(); }