19 package org.turro.contacts.profile;
21 import java.util.LinkedList;
22 import org.turro.contacts.ContactType;
23 import org.turro.contacts.db.ContactsPU;
24 import org.turro.elephant.db.WhereClause;
25 import org.turro.jpa.Dao;
26 import org.turro.zkoss.input.GenericCombobox;
41 public void populateList(String value, LinkedList list,
int nRows) {
44 wc.
addClause(
"select r.description from BusinessRelation r");
45 wc.
addClause(
"where r.business.type = :type");
49 for(String desc : dao.getResultList(String.class, wc, nRows)) {
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void addNamedValue(String name, Object value)