1 2 12 package com.versant.core.storagemanager; 13 14 import com.versant.core.common.State; 15 import com.versant.core.metadata.FetchGroup; 16 import com.versant.core.metadata.ClassMetaData; 17 import com.versant.core.metadata.ModelMetaData; 18 import com.versant.core.common.OID; 19 import com.versant.core.common.*; 20 import com.versant.core.server.CachedQueryResult; 21 import com.versant.core.server.CompiledQuery; 22 23 26 public final class NOPStorageCache implements StorageCache { 27 28 public NOPStorageCache() { 29 } 30 31 public boolean isEnabled() { 32 return false; 33 } 34 35 public boolean isQueryCacheEnabled() { 36 return false; 37 } 38 39 public Object beginTx() { 40 return "NOPStorageCache"; 41 } 42 43 public void endTx(Object tx) { 44 } 45 46 public State getState(OID oid, FetchGroup fetchGroup) { 47 return null; 48 } 49 50 public boolean contains(OID oid) { 51 return false; 52 } 53 54 public CachedQueryResult getQueryResult(CompiledQuery cq, Object [] params) { 55 return null; 56 } 57 58 public int getQueryResultCount(CompiledQuery cq, Object [] params) { 59 return 0; 60 } 61 62 public void add(Object tx, StatesReturned container) { 63 } 64 65 public void add(Object tx, 66 CompiledQuery cq, Object [] params, CachedQueryResult queryData) { 67 } 68 69 public void add(Object tx, CompiledQuery cq, Object [] params, int count) { 70 } 71 72 public void evict(Object tx, OID[] oids, int offset, int length, 73 int expected) { 74 } 75 76 public void evict(Object tx, ClassMetaData[] classes, int classCount) { 77 } 78 79 public void evictAll(Object tx) { 80 } 81 82 public void evict(Object tx, CompiledQuery cq, Object [] params) { 83 } 84 85 public void setJDOMetaData(ModelMetaData jmd) { 86 } 87 88 } 89 90 | Popular Tags |