]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/ValueAccessor.java
Initial support for concurrency in databoard, bindings and serializers
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / ValueAccessor.java
1 package org.simantics.db.layer0.variable;
2
3 import org.simantics.databoard.binding.Binding;
4 import org.simantics.databoard.type.Datatype;
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.WriteGraph;
7 import org.simantics.db.exception.DatabaseException;
8
9 public interface ValueAccessor {
10     Object getValue(ReadGraph graph, Variable context) throws DatabaseException;
11     Object getValue(ReadGraph graph, Variable context, Binding binding) throws DatabaseException;
12     void setValue(WriteGraph graph, Variable context, Object value) throws DatabaseException;
13     void setValue(WriteGraph graph, Variable context, Object value, Binding binding) throws DatabaseException;
14     Datatype getDatatype(ReadGraph graph, Variable context) throws DatabaseException;
15 }