1 2 12 package com.versant.core.storagemanager; 13 14 import com.versant.core.server.CachedQueryResult; 15 import com.versant.core.server.CompiledQuery; 16 import com.versant.core.metadata.FetchGroup; 17 import com.versant.core.metadata.ClassMetaData; 18 import com.versant.core.metadata.ModelMetaData; 19 import com.versant.core.common.OID; 20 import com.versant.core.common.State; 21 import com.versant.core.common.*; 22 23 30 public interface StorageCache { 31 32 35 public void setJDOMetaData(ModelMetaData jmd); 36 37 40 public boolean isEnabled(); 41 42 45 public boolean isQueryCacheEnabled(); 46 47 51 public Object beginTx(); 52 53 56 public void endTx(Object tx); 57 58 64 public State getState(OID oid, FetchGroup fetchGroup); 65 66 70 public boolean contains(OID oid); 71 72 77 public CachedQueryResult getQueryResult(CompiledQuery cq, Object [] params); 78 79 84 public int getQueryResultCount(CompiledQuery cq, Object [] params); 85 86 89 public void add(Object tx, StatesReturned container); 90 91 94 public void add(Object tx, CompiledQuery cq, Object [] params, 95 CachedQueryResult queryData); 96 97 100 public void add(Object tx, CompiledQuery cq, Object [] params, int count); 101 102 107 public void evict(Object tx, OID[] oids, int offset, int length, 108 int expected); 109 110 113 public void evict(Object tx, ClassMetaData[] classes, int classCount); 114 115 118 public void evictAll(Object tx); 119 120 123 public void evict(Object tx, CompiledQuery cq, Object [] params); 124 } 125 126 | Popular Tags |