use of org.openlca.core.database.FlowPropertyDao in project olca-modules by GreenDelta.
the class FlowDescriptorTest method tearDown.
@After
public void tearDown() {
flowDao.delete(flow);
new FlowPropertyDao(db).delete(property);
}
use of org.openlca.core.database.FlowPropertyDao in project olca-modules by GreenDelta.
the class FlowDescriptorTest method setUp.
@Before
public void setUp() {
property = new FlowProperty();
property = new FlowPropertyDao(db).insert(property);
flow = new Flow();
flow.referenceFlowProperty = property;
flow = flowDao.insert(flow);
}
use of org.openlca.core.database.FlowPropertyDao in project olca-modules by GreenDelta.
the class FlowPropertyFactorUseSearchTest method setup.
@Before
public void setup() {
flow = new Flow();
flow.name = "flow";
property = new FlowProperty();
property.name = "property";
factor = new FlowPropertyFactor();
factor.flowProperty = property;
flow.flowPropertyFactors.add(factor);
property = new FlowPropertyDao(database).insert(property);
flow = new FlowDao(database).insert(flow);
factor = flow.getFactor(property);
search = new FlowPropertyFactorUseSearch(flow, database);
}
use of org.openlca.core.database.FlowPropertyDao 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.FlowPropertyDao in project olca-modules by GreenDelta.
the class FlowPropertySheet method write.
private void write() {
Excel.trackSize(sheet, 0, 7);
writeHeader();
var dao = new FlowPropertyDao(config.database);
var properties = dao.getAll();
properties.sort(new EntitySorter());
for (FlowProperty property : properties) {
row++;
write(property);
}
Excel.autoSize(sheet, 0, 7);
}
Aggregations