18 package org.turro.financials.contract;
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.ContractDefinition;
24 import org.turro.jpa.Dao;
25 import org.turro.zkoss.input.GenericCombobox;
33 private boolean onlyStores;
40 this.onlyStores = onlyStores;
44 public void populateList(String value, LinkedList list,
int nRows) {
47 wc.
addClause(
"select contractDefinition from ContractDefinition as contractDefinition");
50 wc.
addClause(
"and (contractDefinition.stock = TRUE or contractDefinition.cash = TRUE)");
52 wc.
addLikeFields(
new String[] {
"contractDefinition.name" }, value);
53 wc.
addClause(
"order by contractDefinition.name");
54 list.addAll(dao.getResultList(wc, nRows));
void addClause(String clause)
void addLikeFields(String[] fields, String value)
void setOnlyStores(boolean onlyStores)
void populateList(String value, LinkedList list, int nRows)
String getTextFromObject(ContractDefinition value)