]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/UnaryQueryHash.java
Generate parts of db client query code
[simantics/platform.git] / bundles / org.simantics.db.impl / src / org / simantics / db / impl / query / UnaryQueryHash.java
index f259090aa690448dd9ee604f87b1eef6b49d8081..fd1035a78eed6bf5722830f290536c82f6b39ba5 100644 (file)
@@ -15,6 +15,7 @@ import gnu.trove.impl.hash.THash;
 
 import java.lang.reflect.Array;
 
+import org.simantics.db.exception.DatabaseException;
 import org.simantics.db.impl.graph.ReadGraphImpl;
 
 
@@ -35,39 +36,29 @@ abstract public class UnaryQueryHash<Procedure> extends THash {
     protected final UnaryQuery<Procedure> REMOVED = new UnaryQuery<Procedure>(-1) {
 
         @Override
-        public Object computeForEach(ReadGraphImpl graph, QueryProcessor provider, Object procedure, boolean store) {
-            throw new Error("Not possible.");
-        }
-
-        @Override
-        public UnaryQuery<Procedure> getEntry(QueryProcessor provider) {
-            throw new Error("Not possible.");
-        }
-
-        @Override
-        public void putEntry(QueryProcessor provider) {
+        public void removeEntry(QueryProcessor provider) {
             throw new Error("Not possible.");
         }
 
         @Override
-        public Object performFromCache(ReadGraphImpl graph, QueryProcessor provider, Procedure procedure) {
+        public int type() {
             throw new Error("Not possible.");
         }
 
-        @Override
-        public void recompute(ReadGraphImpl graph, QueryProcessor provider) {
+               @Override
+               public void recompute(ReadGraphImpl graph) throws DatabaseException {
             throw new Error("Not possible.");
-        }
+               }
 
-        @Override
-        public void removeEntry(QueryProcessor provider) {
+               @Override
+               public Object compute(ReadGraphImpl graph, Procedure procedure) throws DatabaseException {
             throw new Error("Not possible.");
-        }
+               }
 
-        @Override
-        public int type() {
+               @Override
+               Object performFromCache(ReadGraphImpl graph, Procedure procedure) throws DatabaseException {
             throw new Error("Not possible.");
-        }
+               }
         
     };