X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.impl%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fimpl%2Fquery%2FCacheEntryBase.java;h=dea5de5a78d791799a63ae9898fb48dfdee6c84f;hb=68ce0966a57f5153b133c6283fdbae10f683b745;hp=b17c066f380b5548562985d967cff6d33f5ed378;hpb=9fcf23f51b59d737a05178832760a8dab950eb8d;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/CacheEntryBase.java b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/CacheEntryBase.java index b17c066f3..dea5de5a7 100644 --- a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/CacheEntryBase.java +++ b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/CacheEntryBase.java @@ -70,7 +70,7 @@ abstract public class CacheEntryBase extends CacheEntry { abstract int makeHash(); // This can be tested to see if the result is finished - private Object result = NO_RESULT; + Object result = NO_RESULT; final public boolean isFresh() { return REQUIRES_COMPUTATION == statusOrException; @@ -108,7 +108,7 @@ abstract public class CacheEntryBase extends CacheEntry { } @Override - final public void except(Throwable t) { + public void except(Throwable t) { if(DebugPolicy.QUERY_STATE) System.out.println("[QUERY STATE]: excepted " + this); if(statusOrException != DISCARDED) { statusOrException = EXCEPTED; @@ -133,7 +133,7 @@ abstract public class CacheEntryBase extends CacheEntry { } @Override - final public void setPending() { + public void setPending() { statusOrException = PENDING; } @@ -460,6 +460,6 @@ abstract public class CacheEntryBase extends CacheEntry { public CacheEntryBase() { } - abstract public Object compute(ReadGraphImpl graph, Procedure procedure) throws DatabaseException; + //abstract public Object compute(ReadGraphImpl graph, Procedure procedure) throws DatabaseException; }