18 package org.turro.financials.product;
20 import java.util.Collection;
21 import java.util.Collections;
22 import java.util.List;
23 import org.turro.string.Strings;
24 import org.turro.elephant.db.WhereClause;
25 import org.turro.financials.db.FinancialsPU;
26 import org.turro.financials.entity.Product;
27 import org.turro.jpa.Dao;
28 import org.turro.plugin.filter.IFilterValue;
39 public Collection<Product>
getProducts(List<IFilterValue> values) {
44 return dao.getResultList(wc, 300);
46 return Collections.EMPTY_LIST;
71 private WhereClause createCriteria(List<IFilterValue> values) {
73 wc.
addClause(
"select prod from Product as prod");
78 wc.
addClause(
"order by prod.description, prod.productCode, prod.id");
void addClause(String clause)
Collection< Product > getProducts(List< IFilterValue > values)