19 package org.turro.jpa.input;
21 import java.util.LinkedList;
22 import org.turro.elephant.db.SQLHelper;
23 import org.turro.elephant.db.WhereClause;
24 import org.turro.jpa.Dao;
25 import org.turro.zkoss.input.GenericCombobox;
70 public void populateList(String value, LinkedList list,
int nRows) {
73 list.addAll(dao.getResultList(wc, nRows));
75 if(query.contains(
"?")) {
76 list.addAll(dao.getResultList(query,
new Object[] { SQLHelper.convertToPartialLike(value) }, nRows));
78 list.addAll(dao.getResultList(query));
static String convertToPartialLike(String value)
void addNamedValue(String name, Object value)