1 20 21 package org.cofax; 22 23 import java.util.*; 24 25 38 39 public class DummyDataStore extends DataStore { 40 41 44 public void init(String configFile) { 45 46 return; 47 48 } 49 50 53 public void init(Properties dbProps) { 54 55 return; 56 57 } 58 59 62 public void initPool() { 63 64 return; 65 66 } 67 68 71 public void setCache(Object cache, int whichCache) { 72 73 return; 74 75 } 76 77 public void clearCache(int whichCache) { 78 79 return; 80 81 } 82 83 public Object getCacheValue(Object key, int whichCache) { 84 85 return null; 86 87 } 88 89 92 public final boolean connect() { 93 94 setLastError(""); 95 96 return true; 97 98 } 99 100 103 public final boolean connectFromPool() { 104 105 setLastError(""); 106 107 return true; 108 109 } 110 111 114 public final String getPackageTag(String tag, HashMap params, String servPage, String servAddr) { 115 116 return ""; 117 118 } 119 120 123 public final List getPackageData(String tag, String tagStatement, String servPage, String servAddr) { 124 125 ArrayList articles = new ArrayList(); 126 127 return articles; 128 129 } 131 134 public final boolean disConnect() { 135 136 return true; 137 138 } 139 140 143 public void destroy() { 144 145 return; 146 147 } 148 149 public boolean insertArticle(HashMap article, String approvedBy, String xmlFileType, ArrayList mappings, ArrayList relatedLinks) { 150 return true; 151 } 152 153 public List getPackageData(HashMap data, String tagName, String tagData, boolean init) { 154 ArrayList list = new ArrayList(); 155 return (list); 156 } 157 158 public String getPoolConnectionStats(String name) { 159 160 return (""); 161 162 } 163 164 public String getURL() { 165 return ""; 166 } 167 168 public String getUser() { 169 return ""; 170 } 171 172 public String getPassword() { 173 return ""; 174 } 175 176 public int getMaxConns() { 177 return 0; 178 } 179 180 public int getInitConns() { 181 return 0; 182 } 183 184 public int getTimeOut() { 185 return 0; 186 } 187 188 public int getConUsageLimit() { 189 return 0; 190 } 191 192 public long getKillTime() { 193 return 0; 194 } 195 196 public void setURL(String in) { 197 } 198 199 public void setUser(String in) { 200 } 201 202 public void setPassword(String in) { 203 } 204 205 public void setMaxConns(int in) { 206 } 207 208 public void setInitConns(int in) { 209 } 210 211 public void setTimeOut(int in) { 212 } 213 214 public void setConUsageLimit(int in) { 215 } 216 217 public void setKillTime(long in) { 218 } 219 220 224 public HashMap dbPackageTags; 225 226 230 public HashMap dbPackageTagsCacheCommand; 231 232 235 public HashMap dbPackageTagsCache; 236 237 public HashMap searchArticles(HashMap htParams) { 238 HashMap htReturn = new HashMap(); 239 htReturn.put("SQLState", ""); 240 htReturn.put("thisSearch", ""); 241 return htReturn; 242 } 243 244 public String selectPackagetags() { 245 return ("select TAG_NAME, TAG_VALUE from goon.dbo.tbltoolspackagetags"); 246 } 247 248 public String selectPackagetagsCache() { 249 return ("select TAG_VALUE, CACHE from goon.dbo.tbltoolspackagetags"); 250 } 251 252 } 253 | Popular Tags |