18 package org.turro.contacts.proposal;
20 import java.util.HashMap;
21 import java.util.List;
23 import org.turro.contacts.db.ContactsPU;
24 import org.turro.elephant.db.WhereClause;
25 import org.turro.jpa.Dao;
33 private Map<String, String> names =
new HashMap<String, String>();
40 Map<String, NameEntry> map =
new HashMap<String, NameEntry>();
41 for(Map.Entry<String, String> e : names.entrySet()) {
44 map.put(e.getKey(),
new NameEntry(soundex, e.getValue()));
53 wc.
addClause(
"select contact.id, contact.name");
55 for(Object[] obj : (List<Object[]>) dao.getResultList(wc)) {
56 names.put((String) obj[1], (String) obj[0]);
void addClause(String clause)