19 package org.turro.crm.zul.sale;
21 import java.util.Collection;
22 import java.util.List;
23 import org.turro.crm.db.CrmPU;
24 import org.turro.crm.entity.Campaign;
25 import org.turro.elephant.db.WhereClause;
26 import org.turro.jpa.Dao;
27 import org.turro.plugin.filter.IFilterValue;
38 public Collection<Campaign>
getCampaigns(List<IFilterValue> values) {
41 return dao.getResultList(wc);
44 private WhereClause createCriteria(List<IFilterValue> values) {
46 wc.
addClause(
"select campaign from Campaign as campaign");
51 wc.
addClause(
"order by campaign.campaignDate");
Collection< Campaign > getCampaigns(List< IFilterValue > values)
void addClause(String clause)