1 20 package org.enhydra.dods.cache; 21 22 import java.util.Vector ; 23 24 33 public abstract class TransactionQueryCache extends DOCache { 34 35 41 public abstract QueryCacheItem newQueryCacheItemInstance(String dbName); 42 43 51 public abstract QueryCacheItem getSimpleQueryCacheItem(String dbName, String query); 52 53 61 public abstract QueryCacheItem getComplexQueryCacheItem(String dbName, String query); 62 63 69 public abstract QueryCacheItem addSimpleQuery(QueryCacheItem queryItem); 70 71 77 public abstract QueryCacheItem removeSimpleQuery(QueryCacheItem queryItem); 78 79 85 public abstract QueryCacheItem addComplexQuery(QueryCacheItem queryItem); 86 87 93 public abstract QueryCacheItem removeComplexQuery(QueryCacheItem queryItem); 94 95 103 public abstract QueryResult getSimpleQueryResults(String dbName, String query); 104 105 115 public abstract QueryResult getSimpleQueryResults(String dbName, String query, int limit, int maxdb); 116 117 128 public abstract QueryResult getSimpleQueryResults(String dbName, String query, int limit, int maxdb, boolean unique); 129 130 138 public abstract QueryResult getComplexQueryResults(String dbName, String query); 139 140 150 public abstract QueryResult getComplexQueryResults(String dbName, String query, int limit, int maxdb); 151 152 163 public abstract QueryResult getComplexQueryResults(String dbName, String query, int limit, int maxdb, boolean unique); 164 165 174 public abstract QueryResult getQueryResults(String dbName, String query); 175 176 179 public abstract void removeEntries(Vector vec); 180 181 185 public abstract void removeEntries(Class tableClass); 186 187 190 public abstract void emptyEntries(Vector vec, boolean incrementVersion); 191 192 198 public abstract void emptyEntries(Class tableClass) ; 199 200 } 201 | Popular Tags |