-package org.simantics.charts.query;\r
-\r
-import org.simantics.databoard.binding.Binding;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.WriteGraph;\r
-import org.simantics.db.common.request.WriteRequest;\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class SetProperty extends WriteRequest {\r
-\r
- private Resource entity;\r
- private Resource property;\r
- private Object value;\r
- private Binding binding;\r
-\r
- public SetProperty(Resource entity, Resource property, Object value, Binding binding) {\r
- this.entity = entity;\r
- this.property = property;\r
- this.value = value;\r
- this.binding = binding;\r
- }\r
-\r
- @Override\r
- public void perform(WriteGraph graph) throws DatabaseException {\r
- graph.claimLiteral(entity, property, value, binding);\r
- }\r
-\r
-}\r
+package org.simantics.charts.query;
+
+import org.simantics.databoard.binding.Binding;
+import org.simantics.db.Resource;
+import org.simantics.db.WriteGraph;
+import org.simantics.db.common.request.WriteRequest;
+import org.simantics.db.exception.DatabaseException;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class SetProperty extends WriteRequest {
+
+ private Resource entity;
+ private Resource property;
+ private Object value;
+ private Binding binding;
+
+ public SetProperty(Resource entity, Resource property, Object value, Binding binding) {
+ this.entity = entity;
+ this.property = property;
+ this.value = value;
+ this.binding = binding;
+ }
+
+ @Override
+ public void perform(WriteGraph graph) throws DatabaseException {
+ graph.claimLiteral(entity, property, value, binding);
+ }
+
+}