18 package org.turro.financials.document;
20 import java.util.LinkedList;
21 import org.turro.elephant.db.WhereClause;
22 import org.turro.financials.db.FinancialsPU;
23 import org.turro.financials.entity.DocumentDefinition;
24 import org.turro.jpa.Dao;
25 import org.turro.zkoss.input.GenericCombobox;
34 public void populateList(String value, LinkedList list,
int nRows) {
37 wc.
addClause(
"select documentDefinition from DocumentDefinition as documentDefinition");
39 wc.
addLikeFields(
new String[] {
"documentDefinition.name" }, value);
40 wc.
addClause(
"order by documentDefinition.name");
41 list.addAll(dao.getResultList(wc, nRows));
void addClause(String clause)
void addLikeFields(String[] fields, String value)
String getTextFromObject(DocumentDefinition value)
void populateList(String value, LinkedList list, int nRows)