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());
trans.initialize();
s.setTransaction(trans);
QueryBuilderFactory bfactory = createQueryBuilderFactory();
bfactory.setValueFactory(vf);
bfactory.setUsingHashTable(hashManager != null);
s.setQueryBuilderFactory(bfactory);