18 package org.turro.dossier.dossier;
20 import java.util.LinkedList;
21 import org.turro.dossier.db.DossierPU;
22 import org.turro.dossier.entity.Dossier;
23 import org.turro.elephant.db.WhereClause;
24 import org.turro.jpa.Dao;
25 import org.turro.zkoss.input.GenericCombobox;
36 this.dossier = dossier;
45 public void populateList(String value, LinkedList list,
int nRows) {
48 wc.
addClause(
"select distinct dossier.description from Dossier as dossier");
51 wc.
addClause(
"and dossier.category = :category");
54 wc.
addLikeFields(
new String[] {
"dossier.description"}, value);
55 wc.
addClause(
"order by dossier.description");
56 list.addAll(dao.getResultList(wc, nRows));
void setDossier(Dossier dossier)
void populateList(String value, LinkedList list, int nRows)
String getTextFromObject(String value)
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void addNamedValue(String name, Object value)