예제 #1
0
 public void setDict(String sql, String value, String detail) {
   if (value == null) return;
   if (sql == null || sql.length() < 1) return;
   String key = sql;
   key = StringBaseService.replace(sql, "?", "'" + value + "'");
   hashCache.put(key, detail);
 }
예제 #2
0
 public String getDictDetail(String sql, String value) {
   if (value == null) return null;
   if (sql == null || sql.length() < 1) return null;
   String key = sql;
   key = StringBaseService.replace(sql, "?", "'" + value + "'");
   if (hashCache.containsKey(key)) {
     return (String) hashCache.get(key);
   } else {
     return null;
   }
 }