Connection db = getConnection();
db.setAutoCommit(true);
if (db.getTransactionIsolation() != TRANSACTION_READ_COMMITTED) {
db.setTransactionIsolation(TRANSACTION_READ_COMMITTED);
}
TripleManager tripleManager = new TripleManager();
RdbmsTripleRepository s = new RdbmsTripleRepository();
s.setTripleManager(tripleManager);
s.setValueFactory(vf);
s.setConnection(db);
s.setBNodeTable(bnodeTable);
s.setURITable(uriTable);
s.setLiteralTable(literalTable);
s.setIdSequence(ids);
DefaultSailChangedEvent sailChangedEvent = new DefaultSailChangedEvent(sail);
s.setSailChangedEvent(sailChangedEvent);
TableFactory tables = createTableFactory();
TransTableManager trans = createTransTableManager();
trans.setIdSequence(ids);
tripleManager.setTransTableManager(trans);
trans.setBatchQueue(tripleManager.getQueue());
trans.setSailChangedEvent(sailChangedEvent);
trans.setConnection(db);
trans.setTemporaryTableFactory(tables);
trans.setStatementsTable(tripleTableManager);
trans.setFromDummyTable(getFromDummyTable());