]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/PropertyVariableMapRequest.java
Merge "Fixed ProfileObserver.update race with multiple query threads"
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / PropertyVariableMapRequest.java
1 package org.simantics.db.layer0.variable;
2
3 import org.simantics.db.ReadGraph;
4 import org.simantics.db.Resource;
5 import org.simantics.db.common.request.ResourceRead;
6 import org.simantics.db.exception.DatabaseException;
7 import org.simantics.layer0.Layer0;
8
9 public class PropertyVariableMapRequest extends ResourceRead<VariableMap> {
10
11         public PropertyVariableMapRequest(Resource context) {
12                 super(context);
13         }
14
15         @Override
16         public VariableMap perform(ReadGraph graph) throws DatabaseException {
17                 return graph.getPossibleRelatedValue2(resource, Layer0.getInstance(graph).domainProperties, resource);
18         }
19
20 }