use of com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx in project titan by thinkaurelius.
the class StandardTitanGraph method newTransaction.
public StandardTitanTx newTransaction(TransactionConfiguration configuration) {
if (!isOpen)
ExceptionFactory.graphShutdown();
try {
IndexSerializer.IndexInfoRetriever retriever = indexSerializer.getIndexInforRetriever();
StandardTitanTx tx = new StandardTitanTx(this, configuration, backend.beginTransaction(configuration, retriever));
retriever.setTransaction(tx);
return tx;
} catch (StorageException e) {
throw new TitanException("Could not start new transaction", e);
}
}
Aggregations