1 20 package org.enhydra.dods.cache; 21 22 import java.util.ArrayList ; 23 import java.util.Collection ; 24 import com.lutris.dods.builder.generator.dataobject.GenericDO; 25 import com.lutris.appserver.server.sql.CoreDataStruct; 26 27 36 public interface QueryCacheItem { 37 38 44 public String getQueryId(); 45 46 52 public void setQueryId(String queryId); 53 54 59 public Collection getOIds(); 60 61 66 public int getResultNum(); 67 68 73 public boolean isCompleteResult(); 74 75 82 public void setCompleteResult(boolean newCompleteRes); 83 84 91 public boolean isModifiedQuery(); 92 93 99 public void setModifiedQuery(boolean mod); 100 101 106 public int getTime(); 107 108 113 public void setTime(int time); 114 115 120 public ArrayList getConds(); 121 122 127 public void setConds(ArrayList conds); 128 129 134 public void addCond(Condition cond); 135 136 142 public String getOriginDatabase(); 143 144 149 public String get_OriginDatabase(); 150 151 158 public boolean checkConditions(GenericDO obj); 159 160 168 public boolean checkConditions(CoreDataStruct obj); 169 170 176 public void update(GenericDO obj); 177 178 185 public void update(CoreDataStruct obj); 186 187 192 public void delete(GenericDO obj); 193 194 199 public void delete(CoreDataStruct obj); 200 201 206 public void add(GenericDO obj); 207 208 213 public void add(CoreDataStruct obj); 214 } 215 | Popular Tags |