18 package org.turro.financials.batchof;
20 import java.util.Collection;
21 import java.util.List;
22 import org.turro.elephant.db.WhereClause;
23 import org.turro.financials.db.FinancialsPU;
24 import org.turro.financials.entity.BatchOf;
25 import org.turro.jpa.Dao;
26 import org.turro.plugin.filter.IFilterValue;
37 public Collection<BatchOf>
getBatchOfs(List<IFilterValue> values) {
40 return dao.getResultList(wc);
43 private WhereClause createCriteria(List<IFilterValue> values) {
45 wc.
addClause(
"select batch from BatchOf as batch");
50 wc.
addClause(
"order by batch.batch.documentDate, batch.batch.documentNumber");
void addClause(String clause)
Collection< BatchOf > getBatchOfs(List< IFilterValue > values)