use of org.openlca.core.database.NwSetDao in project olca-modules by GreenDelta.
the class Sequence method init.
private void init(IDatabase db) {
index(CATEGORY, new CategoryDao(db));
index(LOCATION, new LocationDao(db));
index(ACTOR, new ActorDao(db));
index(SOURCE, new SourceDao(db));
index(UNIT, new UnitDao(db));
index(UNIT_GROUP, new UnitGroupDao(db));
index(FLOW_PROPERTY, new FlowPropertyDao(db));
index(FLOW, new FlowDao(db));
index(CURRENCY, new CurrencyDao(db));
index(PROCESS, new ProcessDao(db));
index(PRODUCT_SYSTEM, new ProductSystemDao(db));
index(IMPACT_CATEGORY, new ImpactCategoryDao(db));
index(IMPACT_METHOD, new ImpactMethodDao(db));
index(NW_SET, new NwSetDao(db));
index(PROJECT, new ProjectDao(db));
index(DQ_SYSTEM, new DQSystemDao(db));
index(SOCIAL_INDICATOR, new SocialIndicatorDao(db));
}
use of org.openlca.core.database.NwSetDao in project olca-modules by GreenDelta.
the class NwSetSyncTest method before.
@Before
public void before() throws IOException {
db.clear();
dao = new NwSetDao(db);
allData = SyncTestUtils.copyToTemp("nw_set_sync-all.zip");
nwSetData = SyncTestUtils.copyToTemp("nw_set_sync-impact_method.zip");
}
use of org.openlca.core.database.NwSetDao in project olca-app by GreenDelta.
the class CalculationSetupSection method addListeners.
private void addListeners() {
methodCombo.addSelectionChangedListener(this::onMethodChange);
nwSetCombo.addSelectionChangedListener(d -> {
var project = editor.getModel();
project.nwSet = d == null ? null : new NwSetDao(db).getForId(d.id);
editor.setDirty(true);
});
}
Aggregations